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 an app, what is the home page of an app? (a) an input (b) data (c) a button (d) a screen
- 2.🗒️ You are planning version 1 of a pocket-money tracker. Which feature is a MUST-HAVE? (a) add money spent (b) export to a file (c) pie-chart colours (d) savings stickers
-
3.👆 The user taps the button 5 times. What number does the label show now?
let coins = 4;
button.onTap = function () {
coins = coins + 3;
label.text = coins;
}; - 4.Which of these happens at the test stage? (a) draw the user flow (b) connect the data (c) try every button (d) sketch the screens
- 5.🌗 Is pale pink on white easy or hard to read on a button? (a) hard to read (b) easy to read
- 6.True or false: a weather-near-me app needs your contacts. (a) True (b) False
-
7.🔁 What number does this code show?
let marks = [14, 2, 19];
let total = 0;
for (let i = 0; i < marks.length; i++) {
total = total + marks[i];
}
show(total); - 8.🔘 Our rule: buttons are at least 48 px tall. The Next button is 24 px tall. How many px taller must it be?
- 9.🗂️ What kind of app is a puzzle with levels? (a) a health app (b) a learning app (c) a tool app (d) a game
- 10.Which colour pair is easy to read? (a) white on black (b) yellow on white (c) pale pink on white (d) dark blue on black
-
11.🧩 How many buttons does this app screen have?
[title] Order Snacks
[text box] Email
[text box] Age
[button] Cancel
[button] Help
[text box] Phone
[slider] Text size -
12.🔁 What number does this code show?
let scores = [54, 59, 27, 90];
let count = 0;
for (let i = 0; i < scores.length; i++) {
if (scores[i] >= 70) {
count = count + 1;
}
}
show(count); -
13.⚙️ What number does this app show?
let bill = 108; // typed by the user
let friends = 2; // typed by the user
let share = bill / friends;
show(share); - 14.🔍 Which is the odd one out? (a) how users feel after (b) how easy sign-up is (c) how fast a task is done (d) the screen layout
- 15.✏️ Do wireframes usually show the final colours? (a) Yes (b) No
- 16.True or false: a recipe finder is the best fit for a teen learning to make snacks. (a) True (b) False
-
17.⚙️ What number does this app show?
let price = 110; // typed by the user
let off = 30; // typed by the user
let pay = price - off;
show(pay); - 18.True or false: photos on two devices fits saving on the phone. (a) False (b) True
-
19.🧪 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(8) → expected Pass
Test 2: result(7) → expected Pass
Test 3: result(5) → expected Try again (a) Test 3 (b) Test 2 (c) Test 1 - 20.💾 What is a variable? (a) a phone setting (b) a type of screen (c) a named box for a value (d) a picture
-
21.⚙️ Which line does the processing (works out the answer)?
line 1: let price = 30; // 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 4 (b) line 1 (c) line 3 (d) line 2 - 22.🔍 Which is the odd one out? (a) colour as the only clue (b) labels on every icon (c) icons with no labels (d) tiny tap areas
- 23.🔀 When does the else part run? (a) when the test is false (b) never (c) when the test is true (d) always
-
24.🔀 What number does this shop app show?
let total = 350;
if (total > 500) {
total = total - 50;
}
show(total); - 25.🗒️ Why keep version 1 small? (a) to learn from users soon (b) to look bigger (c) to use up storage (d) to confuse users
- 26.True or false: a bus tracker needs your location. (a) True (b) False
- 27.🔍 Which is the odd one out? (a) speaking a command (b) adding up a bill (c) taking a photo (d) typing your age
- 28.Which of these is true of a wireframe? (a) uses plain grey boxes (b) shows the real fonts (c) uses the final pictures (d) has the real colours
-
29.🧪 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(8) → expected Pass
Test 2: result(6) → expected Try again
Test 3: result(10) → expected Pass (a) Test 2 (b) Test 1 (c) Test 3 -
30.🐞 Each comment says what its line SHOULD do. Which line has the bug?
line 1: let stars = 38; // start at 35
line 2: stars = stars + 5; // add 5
line 3: stars = stars * 2; // double it
line 4: show(stars); // show it (a) line 2 (b) line 3 (c) line 1 -
31.🧪 One test case fails. Which one?
🚚 Rule: delivery is free (0) when the order is 700 or more; otherwise it costs 40.
function delivery(total) {
if (total > 700) {
return 0;
}
return 40;
}
Test 1: delivery(650) → expected 40
Test 2: delivery(700) → expected 0
Test 3: delivery(900) → expected 0 (a) Test 1 (b) Test 2 (c) Test 3 -
32.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
line 1: let lives = 50; // start at 50
line 2: lives = lives - 5; // take away 2
line 3: lives = lives + 5; // add 5
line 4: show(lives); // show it -
33.👆 Two designs for the same task (each arrow is one tap). How many taps does Design B need?
Design A: Home → Menu → Size → Item → Shop
Design B: Home → Search → Confirm → Menu -
34.🧭 The app has tabs Lessons, Quiz, Me. You start on Lessons, then:
1. open “Video”
2. tap Back
3. open “Map”
Which screen are you on now? (a) Quiz (b) Lessons (c) Video (d) Map - 35.🧰 What is a function? (a) a list of colours (b) a type of phone (c) a screen size (d) a named block of code
-
36.⚙️ What number does this app show?
let km = 5; // typed by the user
let metres = km * 1000;
show(metres); - 37.👥 A clinic app has 210 patients, 25 doctors and 275 nurses as users. Which user group is the biggest? (a) patients (b) doctors (c) nurses
-
38.📊 Survey: which problem bugs you most? How many more votes did “forgetting homework” get than “losing water bottles”?
no quiet study place: 3 votes
losing water bottles: 10 votes
forgetting homework: 20 votes -
39.🧰 What number does this code show?
function total(price, qty) {
return price * qty;
}
show(total(90, 5)); -
40.🔀 What does this battery rule show?
let battery = 35;
if (battery < 20) {
show("Low battery");
} else {
show("Battery OK");
} (a) Battery OK (b) Low battery
Answer key
- a screen
- add money spent
- 19
- try every button
- hard to read
- False
- 35
- 24
- a game
- white on black
- 2
- 1
- 54
- the screen layout
- No
- True
- 80
- False
- Test 2
- a named box for a value
- line 3
- labels on every icon
- when the test is false
- 350
- to learn from users soon
- True
- adding up a bill
- uses plain grey boxes
- Test 1
- line 1
- Test 2
- 53
- 3
- Map
- a named block of code
- 5000
- nurses
- 10
- 450
- Battery OK
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students