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.🧪 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(14) → expected 100
Test 2: price(11) → expected 50
Test 3: price(17) → expected 100 - 2.True or false: one second passes is a timer event. (a) False (b) True
- 3.True or false: a result on screen is processing. (a) True (b) False
- 4.🗒️ A to-do app with no “add a task” feature is ___. (a) ready to release (b) a nice extra (c) missing a must-have (d) well planned
- 5.💾 Where should the app save a draft you are typing: on the phone or in the cloud? (a) in the cloud (b) on the phone
- 6.🚀 What should an app ask for only when it really needs it? (a) its name (b) a permission (c) a font (d) its icon
-
7.♿ Our rule: text is at least 16 px. Which text on this screen is too small?
Caption: 22 px
Menu: 9 px
Title: 16 px (a) Caption (b) Menu (c) Title - 8.🗂️ What kind of app is a water reminder? (a) a tool app (b) a health app (c) a learning app (d) a game
-
9.🧰 What number does this code show?
function total(price, qty) {
return price * qty;
}
show(total(50, 5)); -
10.🔀 Which badge does this quiz app show?
let marks = 26;
if (marks >= 80) {
show("Gold");
} else if (marks >= 50) {
show("Silver");
} else {
show("Bronze");
} (a) Bronze (b) Gold (c) Silver - 11.🐞 A comment in code (after //) is for ___. (a) the phone screen (b) people reading the code (c) the app store (d) the battery
-
12.🧭 The app has tabs Lessons, Quiz, Me. You start on Lessons, then:
1. open “Friend list”
2. open “Edit photo”
3. open “Help page”
How many times must you tap Back to reach the main screen of this tab? - 13.🔍 Which is the odd one out? (a) write the store text (b) talk to possible users (c) spot a problem to solve (d) list what users need
-
14.🐞 Each comment says what its line SHOULD do. Which line has the bug?
line 1: let coins = 31; // start at 31
line 2: coins = coins - 4; // take away 4
line 3: coins = coins * 2; // double it
line 4: coins = coins * 3; // double it
line 5: show(coins); // show it (a) line 1 (b) line 3 (c) line 4 (d) line 2 - 15.Which of these requests is fair? (a) quiz app → microphone (b) voice notes → microphone (c) timer → your photos (d) calculator → location
- 16.💡 Does an app idea like a medicine reminder solve a real problem? (a) No (b) Yes
- 17.🗂️ What kind of app is a sleep tracker? (a) a tool app (b) a health app (c) a learning app (d) a game
-
18.👆 The user taps the button 1 times. What does the label show now?
let on = false;
button.onTap = function () {
on = !on;
if (on) {
label.text = "ON";
} else {
label.text = "OFF";
}
}; (a) OFF (b) ON - 19.True or false: the game-over page is a button. (a) False (b) True
- 20.🧩 In an app, what is your saved notes? (a) a button (b) a screen (c) an input (d) data
- 21.🔢 When you make an app, which comes first: “plan the screens” or “release it”? (a) release it (b) plan the screens
- 22.📱 Which one comes from an app store: an app or a website? (a) an app (b) a website
- 23.🗒️ You are planning version 1 of a water reminder. Which feature is a MUST-HAVE? (a) water animations (b) custom alert sounds (c) share your streak (d) set a reminder time
-
24.🔀 What does this battery rule show?
let battery = 48;
if (battery < 20) {
show("Low battery");
} else {
show("Battery OK");
} (a) Battery OK (b) Low battery - 25.👥 A clinic app has 170 patients, 215 doctors and 220 nurses as users. How many users does it have in all?
- 26.Which of these app ideas solves no real problem? (a) a blank grey screen (b) a free study-room finder (c) a library due-date alert (d) a medicine reminder
- 27.True or false: a final design is a quick sketch. (a) False (b) True
- 28.💾 Saving data in the cloud lets you ___. (a) shrink the app (b) never need a password (c) skip the internet (d) use it on any device
-
29.🧪 How many of these test cases pass?
🎟️ Rule: a ticket costs 50 for children under 11, and 100 for everyone else.
function price(age) {
if (age <= 11) {
return 50;
}
return 100;
}
Test 1: price(7) → expected 50
Test 2: price(12) → expected 100
Test 3: price(11) → expected 100 - 30.🔢 In a food-order flow, which comes LAST? (a) pick a dish (b) track the order (c) pay for the order (d) open the menu
- 31.🚀 In version 2.5.1, which number is the major version? (a) 1 (b) 251 (c) 5 (d) 2
-
32.🔁 What number does this code show?
let scores = [15, 1, 10];
let total = 0;
for (let i = 0; i < scores.length; i++) {
total = total + scores[i];
}
show(total); - 33.True or false: a result on screen is an input. (a) True (b) False
-
34.🧩 Which of these is a button on this screen?
[title] Order Snacks
[text box] Email
[slider] Volume
[button] Help
[button] Cancel
[switch] Dark mode (a) Help (b) Volume (c) Dark mode (d) Email - 35.Which of these is a feature? (a) “I keep missing the bus” (b) “What should I cook?” (c) “Small text is hard” (d) a share button
-
36.💾 What number does this code show?
let songs = ["Sunrise", "Stars"];
songs.push("Ocean");
show(songs.length); -
37.🧩 Which of these is a button on this screen?
[title] Settings
[slider] Brightness
[switch] Dark mode
[text box] Email
[button] Save (a) Save (b) Brightness (c) Email (d) Dark mode -
38.🧪 What is the ACTUAL result of Test 1?
🚚 Rule: delivery is free (0) when the order is 800 or more; otherwise it costs 40.
function delivery(total) {
if (total > 800) {
return 0;
}
return 40;
}
Test 1: delivery(650) → expected 40
Test 2: delivery(850) → expected 0
Test 3: delivery(800) → expected 0 - 39.🔐 Is this permission request fair or too much: calling app → contacts? (a) fair (b) too much
- 40.True or false: a pocket-money tracker is the best fit for a pupil juggling five projects. (a) True (b) False
Answer key
- 3
- True
- False
- missing a must-have
- on the phone
- a permission
- Menu
- a health app
- 250
- Bronze
- people reading the code
- 3
- write the store text
- line 4
- voice notes → microphone
- Yes
- a health app
- ON
- False
- data
- plan the screens
- an app
- set a reminder time
- Battery OK
- 605
- a blank grey screen
- False
- use it on any device
- 2
- track the order
- 2
- 26
- False
- Help
- a share button
- 3
- Save
- 40
- fair
- False
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students