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.🧰 What number does this code show?
function double(n) {
return n * 2;
}
show(double(20)); -
2.🧪 One test case fails. Which one?
📝 Rule: a quiz is passed with 5 or more right answers.
function result(right) {
if (right > 5) {
return "Pass";
}
return "Try again";
}
Test 1: result(7) → expected Pass
Test 2: result(3) → expected Try again
Test 3: result(5) → expected Pass (a) Test 2 (b) Test 1 (c) Test 3 -
3.🧪 One test case fails. Which one?
🎟️ Rule: a ticket costs 50 for children under 12, and 100 for everyone else.
function price(age) {
if (age <= 12) {
return 50;
}
return 100;
}
Test 1: price(12) → expected 100
Test 2: price(17) → expected 100
Test 3: price(9) → expected 50 (a) Test 2 (b) Test 1 (c) Test 3 - 4.🚀 Which version is newer: 3.1.8 or 3.1.18? (a) 3.1.8 (b) 3.1.18
-
5.📊 Survey: which problem bugs you most? Which problem should your app solve first?
forgetting homework: 20 votes
no quiet study place: 22 votes
missing the bus: 15 votes (a) missing the bus (b) no quiet study place (c) forgetting homework - 6.Which of these requests asks for too much? (a) camera app → camera (b) quiz app → microphone (c) map app → location (d) calling app → contacts
-
7.🔀 What does this battery rule show?
let battery = 10;
if (battery < 20) {
show("Low battery");
} else {
show("Battery OK");
} (a) Low battery (b) Battery OK - 8.🧭 Which part of navigation opens a list of pages? (a) the back button (b) a menu button (c) a tab bar
- 9.👥 A cricket club app has 135 players, 235 coaches and 120 fans as users. Which user group is the biggest? (a) coaches (b) fans (c) players
- 10.🧩 Which input is best for typing your name? (a) a text box (b) a switch (c) a picture (d) a slider
- 11.👆 What kind of event is this: the user presses Save? (a) a load event (b) a timer event (c) a text event (d) a tap event
- 12.♿ A screen has 11 icon buttons. Only 7 of them have a text label for screen readers. How many still need a label?
- 13.♿ A screen has 12 icon buttons. Only 11 of them have a text label for screen readers. How many still need a label?
-
14.🧪 What is the ACTUAL result of Test 2?
🎟️ Rule: a ticket costs 50 for children under 14, and 100 for everyone else.
function price(age) {
if (age <= 14) {
return 50;
}
return 100;
}
Test 1: price(16) → expected 100
Test 2: price(11) → expected 50
Test 3: price(18) → expected 100 - 15.🔁 In for (let i = 0; i < 3; i++), which values does i take? (a) 3 (b) 1, 2, 3 (c) 0, 1, 2, 3 (d) 0, 1, 2
- 16.🎨 UI stands for user ___. (a) input (b) idea (c) internet (d) interface
- 17.Which of these helps everyone use the app? (a) colour as the only clue (b) sudden loud sounds (c) tiny tap areas (d) text that can grow
-
18.🧰 A museum app works out the entry fee. What number does this code show?
function fee(age) {
if (age < 5) {
return 0;
}
return 20;
}
show(fee(1) + fee(2)); - 19.Which of these is data? (a) tap to Save (b) the home page of an app (c) your high score (d) the game-over page
- 20.🔢 In a food-order flow, which comes first: “open the menu” or “track the order”? (a) open the menu (b) track the order
-
21.🔁 What number does this code show?
let scores = [13, 11, 2, 17, 10];
let best = 0;
for (let i = 0; i < scores.length; i++) {
if (scores[i] > best) {
best = scores[i];
}
}
show(best); - 22.True or false: a big, easy tap area is good button design. (a) True (b) False
-
23.🧭 The app has tabs Home, Search, Profile. You start on Home, then:
1. tap the Profile tab
2. open “Match report”
3. tap the Profile tab
How many times must you tap Back to reach the main screen of this tab? - 24.Which of these fits saving on the phone? (a) chat messages to friends (b) your last game level (c) a class leaderboard (d) photos on two devices
- 25.True or false: an app opens in a web browser. (a) True (b) False
- 26.🔢 In a quiz-app flow, which comes first: “tap “Start quiz”” or “see if it is right”? (a) tap “Start quiz” (b) see if it is right
- 27.🔍 Which is the odd one out? (a) checking a password (b) sorting the scores (c) adding up a bill (d) a beep sound
- 28.🔢 After an app is released, which comes FIRST? (a) read user reviews (b) list what to fix (c) release an update (d) test it again
-
29.🧪 One test case fails. Which one?
📝 Rule: a quiz is passed with 7 or more right answers.
function result(right) {
if (right > 7) {
return "Pass";
}
return "Try again";
}
Test 1: result(9) → expected Pass
Test 2: result(4) → expected Try again
Test 3: result(7) → expected Pass (a) Test 2 (b) Test 1 (c) Test 3 -
30.🖼️ How many parts (boxes) does this wireframe have?
[ title text ]
[ top bar ]
[ Save button ]
[ search box ]
[ filter buttons ] - 31.🗒️ You are planning version 1 of a water reminder. Which feature can WAIT for a later version? (a) log a glass of water (b) set a reminder time (c) see today’s total (d) water animations
-
32.🐞 This code has a bug. What number does it ACTUALLY show?
line 1: let score = 37; // start at 37
line 2: score = score * 3; // double it
line 3: score = score * 2; // double it
line 4: show(score); // show it -
33.🧪 How many of these test cases pass?
🎟️ Rule: a ticket costs 50 for children under 14, and 100 for everyone else.
function price(age) {
if (age < 14) {
return 50;
}
return 100;
}
Test 1: price(17) → expected 100
Test 2: price(11) → expected 50
Test 3: price(16) → expected 100 - 34.🧰 In function tip(bill), what is bill? (a) an event (b) a parameter (c) a screen (d) a loop
-
35.🗒️ Version 1 of a bus tracker must be ready in 13 days. How many days are left for extras after the must-haves?
see where the bus is: 1 days
show arrival time: 3 days
pick your bus stop: 3 days -
36.🔘 Our rule: buttons are at least 48 px tall. How many of these buttons follow the rule?
Done button: 44 px tall
Cancel button: 40 px tall
Next button: 36 px tall - 37.🔢 In a photo-post flow, what comes right after “add a filter”? (a) open the camera screen (b) take the photo (c) post the photo (d) write a caption
- 38.🔍 Which is the odd one out? (a) connect the data (b) sketch the screens (c) draw the user flow (d) pick the features
-
39.🧪 What is the ACTUAL result of Test 3?
🎟️ Rule: a ticket costs 50 for children under 10, and 100 for everyone else.
function price(age) {
if (age <= 10) {
return 50;
}
return 100;
}
Test 1: price(11) → expected 100
Test 2: price(7) → expected 50
Test 3: price(10) → expected 100 - 40.🔍 Which is the odd one out? (a) speaking a command (b) tapping a button (c) adding up a bill (d) taking a photo
Answer key
- 40
- Test 3
- Test 1
- 3.1.18
- no quiet study place
- quiz app → microphone
- Low battery
- a menu button
- coaches
- a text box
- a tap event
- 4
- 1
- 50
- 0, 1, 2
- interface
- text that can grow
- 0
- your high score
- open the menu
- 17
- True
- 0
- your last game level
- False
- tap “Start quiz”
- a beep sound
- read user reviews
- Test 3
- 5
- water animations
- 222
- 3
- a parameter
- 6
- 0
- write a caption
- connect the data
- 50
- adding up a bill
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students