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.👆 The user taps the button 2 times. What number does the label show now?
let coins = 3;
button.onTap = function () {
coins = coins + 5;
label.text = coins;
}; -
2.🖼️ In this wireframe (top to bottom), what is right above the big picture?
[ menu icon ]
[ search box ]
[ big picture ]
[ filter buttons ]
[ list of items ]
[ Save button ] (a) list of items (b) menu icon (c) search box (d) Save button -
3.🔀 What does this PIN rule show?
let pin = "468";
if (pin.length === 4) {
show("PIN saved");
} else {
show("Use 4 digits");
} (a) PIN saved (b) Use 4 digits - 4.🔢 In a quiz-app flow, which comes first: “pick an answer” or “see the final score”? (a) see the final score (b) pick an answer
- 5.🔐 Is this permission request fair or too much: map app → location? (a) fair (b) too much
-
6.👆 The user taps the button 4 times. What number does the label show now?
let likes = 0;
button.onTap = function () {
if (likes < 5) {
likes = likes + 1;
}
label.text = likes;
}; - 7.👥 A school app has 250 students, 30 teachers and 125 parents as users. How many more parents than teachers are there?
-
8.🧰 A museum app works out the entry fee. What number does this code show?
function fee(age) {
if (age < 5) {
return 0;
}
return 40;
}
show(fee(7) + fee(10)); -
9.🐞 This code has a bug. What number does it ACTUALLY show?
line 1: let points = 50; // start at 50
line 2: points = points + 6; // add 6
line 3: points = points - 5; // take away 4
line 4: show(points); // show it - 10.True or false: how easy sign-up is is about UX (the experience). (a) False (b) True
- 11.🗒️ You are planning version 1 of a quiz app. Which feature is a MUST-HAVE? (a) confetti effects (b) an avatar shop (c) check the answer (d) background music
- 12.🔍 Which is the odd one out? (a) strong colour contrast (b) colour as the only clue (c) captions on videos (d) big touch targets
- 13.🔐 A torch app asks for your contacts. What should you do? (a) post them online (b) allow it (c) share them all (d) deny it
- 14.True or false: you talk to possible users at the idea stage. (a) False (b) True
-
15.⚙️ Which line does the processing (works out the answer)?
line 1: let price = 15; // typed by the user
line 2: let qty = 6; // typed by the user
line 3: let total = price * qty;
line 4: show(total); (a) line 1 (b) line 4 (c) line 3 (d) line 2 - 16.Which of these is a user need? (a) “Small text is hard” (b) a dark mode switch (c) a share button (d) a search bar
- 17.🔀 With if / else if / else, how many parts run? (a) two (b) none (c) only one (d) all of them
- 18.🔐 Which permission does a weather-near-me app really need? (a) the microphone (b) contacts (c) the camera (d) location
- 19.🔢 In a food-order flow, what comes right after “add it to the cart”? (a) check the cart (b) pay for the order (c) track the order (d) open the menu
-
20.🧪 One test case fails. Which one?
📝 Rule: a quiz is passed with 8 or more right answers.
function result(right) {
if (right > 8) {
return "Pass";
}
return "Try again";
}
Test 1: result(10) → expected Pass
Test 2: result(8) → expected Pass
Test 3: result(7) → expected Try again (a) Test 2 (b) Test 1 (c) Test 3 -
21.🖼️ In this wireframe (top to bottom), which part is at the very bottom?
[ big picture ]
[ menu icon ]
[ tab bar ]
[ filter buttons ]
[ Save button ] (a) tab bar (b) Save button (c) menu icon (d) big picture - 22.True or false: an app comes from an app store. (a) False (b) True
- 23.🧭 Why should every screen show where you are? (a) to hide the menu (b) to use more battery (c) so users do not get lost (d) to look busy
- 24.🎯 Which app would help this user most: a parent waiting at the bus stop? (a) a bus tracker (b) a big-text reader (c) a pocket-money tracker (d) a water reminder
- 25.🌗 Is pale pink on white easy or hard to read on a button? (a) hard to read (b) easy to read
- 26.💾 Where should the app save photos on two devices: on the phone or in the cloud? (a) on the phone (b) in the cloud
-
27.📊 Survey: which problem bugs you most? How many more votes did “losing water bottles” get than “no quiet study place”?
no quiet study place: 4 votes
forgetting homework: 19 votes
losing water bottles: 23 votes -
28.🔁 What number does this code show?
let steps = [17, 3, 14, 11, 5];
let total = 0;
for (let i = 0; i < steps.length; i++) {
total = total + steps[i];
}
show(total); - 29.True or false: a medicine reminder solves no real problem. (a) True (b) False
-
30.🧩 How many buttons does this app screen have?
[title] Sign Up
[switch] Show hints
[text box] Subject
[text box] Due date
[text box] Phone
[button] Start -
31.⚙️ Which line does the processing (works out the answer)?
line 1: let price = 410; // typed by the user
line 2: let off = 30; // typed by the user
line 3: let pay = price - off;
line 4: show(pay); (a) line 3 (b) line 4 (c) line 1 (d) line 2 - 32.🧪 Who else should try an app before release? (a) only the coder (b) real users (c) nobody (d) the app icon
- 33.🔍 Which is the odd one out? (a) the theme colours (b) how users feel after (c) the button colours (d) the icon shapes
- 34.True or false: you spot a problem to solve at the idea stage. (a) True (b) False
- 35.👥 A cricket club app has 250 players, 280 coaches and 115 fans as users. How many more players than fans are there?
- 36.Which of these fits saving in the cloud? (a) your last game level (b) a draft you are typing (c) notes to read offline (d) a shared to-do list
- 37.Which of these happens at the release stage? (a) talk to possible users (b) try every button (c) draw the user flow (d) put it on an app store
-
38.🔁 What number does this code show?
let scores = [17, 3, 19, 9];
let best = 0;
for (let i = 0; i < scores.length; i++) {
if (scores[i] > best) {
best = scores[i];
}
}
show(best); -
39.📊 Survey: which problem bugs you most? Which problem should your app solve first?
no quiet study place: 14 votes
wasting pocket money: 25 votes
losing water bottles: 16 votes (a) losing water bottles (b) no quiet study place (c) wasting pocket money -
40.🧪 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(7) → expected Pass
Test 3: result(4) → expected Try again (a) Test 1 (b) Test 3 (c) Test 2
Answer key
- 13
- search box
- Use 4 digits
- pick an answer
- fair
- 4
- 95
- 80
- 51
- True
- check the answer
- colour as the only clue
- deny it
- True
- line 3
- “Small text is hard”
- only one
- location
- check the cart
- Test 2
- Save button
- True
- so users do not get lost
- a bus tracker
- hard to read
- in the cloud
- 19
- 50
- False
- 1
- line 3
- real users
- how users feel after
- True
- 135
- a shared to-do list
- put it on an app store
- 19
- wasting pocket money
- Test 2
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students