App Dev Worksheet: Final Test
Developer's tip (Plan, design, build, check): Find the topic: what apps are, designing apps, or logic and building. Read every screen, list or code line carefully, top to bottom. For code, write each value down step by step and check it again.
NameDateTime takenScore ___ / 40
-
1.🖼️ In this wireframe (top to bottom), what is right below the list of items?
[ Save button ]
[ tab bar ]
[ list of items ]
[ title text ] (a) title text (b) Save button (c) tab bar - 2.🔐 Which permission does a speak-to-type notes app really need? (a) the camera (b) contacts (c) location (d) the microphone
-
3.🔁 What number does this code show?
let scores = [96, 21, 82];
let count = 0;
for (let i = 0; i < scores.length; i++) {
if (scores[i] >= 40) {
count = count + 1;
}
}
show(count); -
4.👆 The user types Meera in nameBox and taps the button 1 time. What does the label show?
button.onTap = function () {
label.text = "Welcome, " + nameBox.text + "!";
}; (a) Welcome, nameBox.text! (b) Welcome, Meera! (c) Meera (d) Welcome! - 5.🧪 What is the actual result of a test? (a) the test’s number (b) what the app really does (c) the app’s name (d) what we hope for
- 6.🔢 When you make an app, which comes first: “plan the screens” or “release it”? (a) release it (b) plan the screens
- 7.📱 Which one opens from a link: an app or a website? (a) a website (b) an app
- 8.🔢 In a quiz-app flow, which comes first: “read a question” or “tap “Start quiz””? (a) read a question (b) tap “Start quiz”
- 9.🧩 What does a button do when you tap it? (a) changes the phone (b) saves the battery (c) starts an action (d) shows the time
-
10.🔁 What is the LAST line this code shows?
let names = ["Kabir", "Meera", "Zoya", "Aman", "Riya"];
for (let i = 0; i < names.length; i++) {
show("Hi, " + names[i]);
} (a) Hi, Kabir (b) Hi, Meera (c) Hi, Riya (d) Hi, Zoya - 11.🎯 Which app would help this user most: a student who keeps forgetting due dates? (a) a homework planner (b) a bus tracker (c) a recipe finder (d) a pocket-money tracker
-
12.🔀 What does this PIN rule show?
let pin = "7623";
if (pin.length === 4) {
show("PIN saved");
} else {
show("Use 4 digits");
} (a) Use 4 digits (b) PIN saved -
13.🗒️ Version 1 of a homework planner must be ready in 13 days. How many days are left for extras after the must-haves?
add a homework task: 3 days
set a due date: 4 days
see tasks by day: 4 days - 14.👥 A cricket club app has 225 players, 115 coaches and 75 fans as users. How many more coaches than fans are there?
-
15.🧭 The app has tabs Home, Search, Profile. You start on Home, then:
1. open “Score card”
2. open “Match report”
3. open “Match report”
4. tap the Search tab
5. open “Score card”
Which screen are you on now? (a) Score card (b) Home (c) Match report (d) Search -
16.🧪 What is the ACTUAL result of Test 1?
🚚 Rule: delivery is free (0) when the order is 600 or more; otherwise it costs 40.
function delivery(total) {
if (total > 600) {
return 0;
}
return 40;
}
Test 1: delivery(600) → expected 0
Test 2: delivery(850) → expected 0
Test 3: delivery(550) → expected 40 - 17.👆 What kind of event is this: the user types a letter? (a) a tap event (b) a timer event (c) a text event (d) a load event
- 18.🧩 Scores, notes and settings that an app keeps are called ___. (a) data (b) buttons (c) tabs (d) screens
- 19.🌗 Is black on pale grey easy or hard to read on a button? (a) easy to read (b) hard to read
- 20.♿ What should every icon-only button have for screen readers? (a) a text label (b) a long animation (c) a sound (d) a bright colour
- 21.🧩 In an app, what is your high score? (a) a button (b) a screen (c) data (d) an input
-
22.👆 The user taps the button 2 times. What number does the label show now?
let likes = 0;
button.onTap = function () {
if (likes < 4) {
likes = likes + 1;
}
label.text = likes;
}; - 23.🧰 In function tip(bill), what is bill? (a) a parameter (b) a screen (c) a loop (d) an event
- 24.Which of these is true of a wireframe? (a) uses the final pictures (b) shows the real fonts (c) has the real colours (d) shows where things go
-
25.🔁 What number does this code show?
let steps = [16, 5, 5];
let total = 0;
for (let i = 0; i < steps.length; i++) {
total = total + steps[i];
}
show(total); -
26.🔁 What number does this code show?
let scores = [12, 19, 17, 6, 14];
let total = 0;
for (let i = 0; i < scores.length; i++) {
total = total + scores[i];
}
show(total); - 27.👆 What kind of event is this: the screen first opens? (a) a tap event (b) a timer event (c) a text event (d) a load event
- 28.Which colour pair is easy to read? (a) light grey on white (b) black on yellow (c) pale pink on white (d) yellow on white
- 29.🐞 A comment in code (after //) is for ___. (a) the phone screen (b) the app store (c) the battery (d) people reading the code
-
30.🔘 Our rule: buttons are at least 48 px tall. How many of these buttons follow the rule?
Cancel button: 40 px tall
Help button: 48 px tall
Done button: 52 px tall - 31.🧪 A test case is an input together with its ___. (a) app icon (b) screen colour (c) expected result (d) font size
-
32.🧰 What number does this code show?
function points(stars) {
return stars * 10 + 5;
}
show(points(3) + points(3)); - 33.True or false: a blank grey screen solves no real problem. (a) True (b) False
-
34.🧪 How many of these test cases pass?
🚚 Rule: delivery is free (0) when the order is 300 or more; otherwise it costs 40.
function delivery(total) {
if (total >= 300) {
return 0;
}
return 40;
}
Test 1: delivery(650) → expected 0
Test 2: delivery(100) → expected 40
Test 3: delivery(500) → expected 0 - 35.True or false: a wireframe has no real colours. (a) True (b) False
- 36.🔍 Which is the odd one out? (a) typing your age (b) tapping a button (c) taking a photo (d) sorting the scores
- 37.🧭 Where is a tab bar usually placed in a phone app? (a) in the middle (b) nowhere (c) at the bottom (d) inside a button
- 38.👥 A school app has 155 students, 60 teachers and 55 parents as users. Which user group is the biggest? (a) parents (b) students (c) teachers
- 39.🌐 Which program do you need to open a website? (a) a camera app (b) a web browser (c) an app store (d) a calculator
-
40.🧰 What number does this code show?
function double(n) {
return n * 2;
}
show(double(12));
Answer key
- title text
- the microphone
- 2
- Welcome, Meera!
- what the app really does
- plan the screens
- a website
- tap “Start quiz”
- starts an action
- Hi, Riya
- a homework planner
- PIN saved
- 2
- 40
- Score card
- 40
- a text event
- data
- easy to read
- a text label
- data
- 2
- a parameter
- shows where things go
- 26
- 68
- a load event
- black on yellow
- people reading the code
- 2
- expected result
- 70
- True
- 3
- True
- sorting the scores
- at the bottom
- students
- a web browser
- 24
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students