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 parts (boxes) does this wireframe have?
[ list of items ]
[ title text ]
[ filter buttons ]
[ search box ]
[ Save button ] -
2.📊 Survey: which problem bugs you most? Which problem should your app solve first?
missing the bus: 16 votes
losing water bottles: 18 votes
forgetting homework: 11 votes (a) losing water bottles (b) missing the bus (c) forgetting homework - 3.Which of these happens at the build stage? (a) talk to possible users (b) spot a problem to solve (c) write down the bugs (d) write the code
-
4.🔀 What does this battery rule show?
let battery = 1;
if (battery < 20) {
show("Low battery");
} else {
show("Battery OK");
} (a) Low battery (b) Battery OK - 5.🎯 Which app would help this user most: a student who keeps forgetting due dates? (a) a water reminder (b) a recipe finder (c) a homework planner (d) a big-text reader
- 6.🧩 In an app, what is your friends list? (a) an input (b) a button (c) data (d) a screen
- 7.True or false: an app is installed on a phone. (a) False (b) True
-
8.🧪 What is the ACTUAL result of Test 2?
🎟️ 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(8) → expected 50
Test 2: price(17) → expected 100
Test 3: price(11) → expected 100 -
9.🔀 What does this sign-up rule show?
let age = 13;
if (age >= 13) {
show("Welcome!");
} else {
show("Ask a parent");
} (a) Welcome! (b) Ask a parent -
10.🔁 What number does this code show?
let marks = [99, 85, 71, 39];
let count = 0;
for (let i = 0; i < marks.length; i++) {
if (marks[i] >= 50) {
count = count + 1;
}
}
show(count); - 11.🧩 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
- 12.🔀 When does the else part run? (a) when the test is false (b) never (c) when the test is true (d) always
-
13.🔀 What does this battery rule show?
let battery = 27;
if (battery < 20) {
show("Low battery");
} else {
show("Battery OK");
} (a) Battery OK (b) Low battery - 14.💾 Saving data in the cloud lets you ___. (a) use it on any device (b) shrink the app (c) skip the internet (d) never need a password
-
15.🧪 How many of these test cases pass?
🎟️ Rule: a ticket costs 50 for children under 9, and 100 for everyone else.
function price(age) {
if (age < 9) {
return 50;
}
return 100;
}
Test 1: price(15) → expected 100
Test 2: price(8) → expected 50
Test 3: price(14) → expected 100 -
16.🔁 What number does this code show?
let runs = [76, 39, 70, 66];
let count = 0;
for (let i = 0; i < runs.length; i++) {
if (runs[i] >= 70) {
count = count + 1;
}
}
show(count); - 17.👆 An event in an app is ___. (a) a kind of list (b) something that happens (c) an app store (d) a colour theme
-
18.🔀 What does this sign-up rule show?
let age = 12;
if (age >= 13) {
show("Welcome!");
} else {
show("Ask a parent");
} (a) Welcome! (b) Ask a parent - 19.True or false: a box to type a name is an input. (a) True (b) False
-
20.👆 Two designs for the same task (each arrow is one tap). Which needs FEWER taps?
Design A: Home → Offers → Pay → Shop → Confirm → Search
Design B: Home → Item → Pay → Offers → Shop (a) Design A (b) Design B -
21.🔁 What number does this code show?
let steps = [27, 13, 81];
let count = 0;
for (let i = 0; i < steps.length; i++) {
if (steps[i] >= 50) {
count = count + 1;
}
}
show(count); - 22.Which of these fits saving on the phone? (a) notes to read offline (b) chat messages to friends (c) a shared to-do list (d) photos on two devices
- 23.🔢 When you make an app, which comes first: “release it” or “plan the screens”? (a) plan the screens (b) release it
- 24.🔘 Is this good or poor button design: a clear word like Save? (a) poor design (b) good design
- 25.⚙️ In an app, is checking a password an input, processing or an output? (a) processing (b) input (c) output
- 26.Which of these is an output? (a) a buzz (vibration) (b) working out a tip (c) speaking a command (d) typing your age
-
27.👆 Two designs for the same task (each arrow is one tap). How many taps does the shorter design save?
Design A: Home → Menu → Search → Cart → Offers
Design B: Home → Offers → Item → Cart → Size → Address → Pay - 28.🎯 Is this a user need or a feature: “I forget my homework”? (a) a feature (b) a user need
- 29.True or false: buttons almost touching is poor button design. (a) False (b) True
-
30.🔘 Our rule: buttons are at least 48 px tall. Which button is too small?
Back button: 72 px tall
Send button: 56 px tall
Help button: 60 px tall
Next button: 24 px tall (a) Help (b) Send (c) Next (d) Back -
31.💾 What number does this code show?
let stars = 7;
stars = stars - 7;
stars = stars + 5;
show(stars); - 32.🎯 Which app would help this user most: a runner who forgets to sip water? (a) a pocket-money tracker (b) a bus tracker (c) a water reminder (d) a big-text reader
-
33.🐞 Each comment says what its line SHOULD do. Which line has the bug?
line 1: let score = 38; // start at 38
line 2: score = score * 3; // double it
line 3: score = score - 2; // take away 2
line 4: show(score); // show it (a) line 1 (b) line 2 (c) line 3 -
34.🔁 What number does this code show?
let marks = [4, 6, 15, 19];
let total = 0;
for (let i = 0; i < marks.length; i++) {
total = total + marks[i];
}
show(total); - 35.🧰 What is a function? (a) a list of colours (b) a named block of code (c) a type of phone (d) a screen size
- 36.♿ A screen has 6 icon buttons. Only 2 of them have a text label for screen readers. How many still need a label?
-
37.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
line 1: let stars = 33; // start at 30
line 2: stars = stars - 3; // take away 3
line 3: stars = stars * 2; // double it
line 4: stars = stars + 6; // add 6
line 5: show(stars); // show it - 38.🧭 Why should every screen show where you are? (a) to use more battery (b) to look busy (c) to hide the menu (d) so users do not get lost
- 39.💾 Where should the app save a shared to-do list: on the phone or in the cloud? (a) on the phone (b) in the cloud
- 40.True or false: a unit converter is a tool app. (a) False (b) True
Answer key
- 5
- losing water bottles
- write the code
- Low battery
- a homework planner
- data
- True
- 100
- Welcome!
- 3
- starts an action
- when the test is false
- Battery OK
- use it on any device
- 3
- 2
- something that happens
- Ask a parent
- True
- Design B
- 1
- notes to read offline
- plan the screens
- good design
- processing
- a buzz (vibration)
- 2
- a user need
- True
- Next
- 5
- a water reminder
- line 2
- 44
- a named block of code
- 4
- 60
- so users do not get lost
- in the cloud
- True
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students