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.📊 Survey: which problem bugs you most? How many students voted in all?
forgetting homework: 9 votes
missing the bus: 25 votes
wasting pocket money: 23 votes -
2.⚙️ Which line does the processing (works out the answer)?
line 1: let price = 240; // typed by the user
line 2: let off = 20; // typed by the user
line 3: let pay = price - off;
line 4: show(pay); (a) line 4 (b) line 3 (c) line 2 (d) line 1 -
3.🔀 What does this battery rule show?
let battery = 34;
if (battery < 20) {
show("Low battery");
} else {
show("Battery OK");
} (a) Low battery (b) Battery OK - 4.🔍 Which is the odd one out? (a) try every button (b) spot a problem to solve (c) let friends try it (d) write down the bugs
- 5.Which of these is about UX (the experience)? (a) the button colours (b) how users feel after (c) the screen layout (d) the theme colours
-
6.🔀 What does this battery rule show?
let battery = 87;
if (battery < 20) {
show("Low battery");
} else {
show("Battery OK");
} (a) Battery OK (b) Low battery - 7.🧰 In function tip(bill), what is bill? (a) a loop (b) an event (c) a screen (d) a parameter
- 8.🔘 Is this good or poor button design: space between buttons? (a) good design (b) poor design
-
9.🔁 What number does this code show?
let steps = [1, 20, 9, 20, 8];
let total = 0;
for (let i = 0; i < steps.length; i++) {
total = total + steps[i];
}
show(total); -
10.🔀 What does this battery rule show?
let battery = 9;
if (battery < 20) {
show("Low battery");
} else {
show("Battery OK");
} (a) Battery OK (b) Low battery -
11.🐞 Each comment says what its line SHOULD do. Which line has the bug?
line 1: let lives = 32; // start at 32
line 2: lives = lives + 2; // add 2
line 3: lives = lives - 4; // add 4
line 4: show(lives); // show it (a) line 3 (b) line 1 (c) line 2 - 12.🛠️ At which stage do you talk to possible users? (a) the idea stage (b) the test stage (c) the build stage (d) the plan stage
- 13.💡 Which app idea solves this problem: Grandpa forgets his tablets? (a) a medicine reminder (b) a study-room finder (c) a bill splitter (d) a lost-and-found board
-
14.🧪 How many of these test cases pass?
🎟️ 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(8) → expected 50
Test 2: price(12) → expected 100
Test 3: price(18) → expected 100 - 15.True or false: a class leaderboard fits saving on the phone. (a) True (b) False
- 16.True or false: you list what users need at the idea stage. (a) False (b) True
- 17.Which of these is true of a tab bar? (a) goes to the last screen (b) hides extra links (c) switches main sections (d) undoes one move
-
18.🔁 What number does this code show?
let steps = [45, 68, 73, 74, 18];
let count = 0;
for (let i = 0; i < steps.length; i++) {
if (steps[i] >= 60) {
count = count + 1;
}
}
show(count); - 19.🔢 In a quiz-app flow, which comes first: “tap “Start quiz”” or “read a question”? (a) read a question (b) tap “Start quiz”
-
20.🔘 Our rule: buttons are at least 48 px tall. How many of these buttons follow the rule?
Help button: 32 px tall
Start button: 56 px tall
Next button: 64 px tall - 21.Which of these is processing? (a) sorting the scores (b) tapping a button (c) a pop-up message (d) taking a photo
- 22.👆 A tap handler runs how many times if the user taps 4 times? (a) 1 (b) 8 (c) 0 (d) 4
-
23.💾 What number does this code show?
let points = 8;
points = points - 2;
points = points + 3;
show(points); - 24.🔢 After an app is released, what comes right after “test it again”? (a) release an update (b) list what to fix (c) fix and improve (d) read user reviews
-
25.👆 The user taps the button 6 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) ON (b) OFF - 26.🗒️ You are planning version 1 of a homework planner. Which feature can WAIT for a later version? (a) see tasks by day (b) set a due date (c) add a homework task (d) share tasks to friends
-
27.👆 The user taps the button 2 times. What number does the label show now?
let lives = 6;
button.onTap = function () {
lives = lives + 2;
label.text = lives;
}; - 28.Which of these is true of a tab bar? (a) opens a list of pages (b) shows 3 to 5 icons (c) goes to the last screen (d) hides extra links
-
29.🧪 One test case fails. Which one?
🚚 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(850) → expected 0
Test 2: delivery(800) → expected 0
Test 3: delivery(600) → expected 40 (a) Test 3 (b) Test 1 (c) Test 2 - 30.🔘 Our rule: buttons are at least 48 px tall. The Send button is 36 px tall. How many px taller must it be?
-
31.🔘 Our rule: buttons are at least 48 px tall. Which button is too small?
Back button: 48 px tall
Done button: 36 px tall
Cancel button: 60 px tall (a) Cancel (b) Done (c) Back -
32.🔁 What is the LAST line this code shows?
let names = ["Zoya", "Riya", "Kabir", "Aman"];
for (let i = 0; i < names.length; i++) {
show("Hi, " + names[i]);
} (a) Hi, Riya (b) Hi, Kabir (c) Hi, Aman (d) Hi, Zoya - 33.True or false: a medicine reminder solves a real problem. (a) False (b) True
- 34.True or false: how users feel after is about UX (the experience). (a) True (b) False
-
35.🗒️ Version 1 of a pocket-money tracker must be ready in 9 days. How many days are left for extras after the must-haves?
add money received: 1 days
add money spent: 1 days
show the balance: 2 days -
36.🐞 This code has a bug. What number does it ACTUALLY show?
line 1: let coins = 43; // start at 43
line 2: coins = coins + 4; // add 4
line 3: coins = coins + 2; // double it
line 4: show(coins); // show it -
37.⚙️ What number does this app show?
let price = 430; // typed by the user
let off = 20; // typed by the user
let pay = price - off;
show(pay); - 38.True or false: how easy sign-up is is about UX (the experience). (a) False (b) True
- 39.🗒️ You are planning version 1 of a pocket-money tracker. Which feature is a MUST-HAVE? (a) add money received (b) savings stickers (c) export to a file (d) pie-chart colours
- 40.Which of these makes the app harder to use? (a) icons with no labels (b) strong colour contrast (c) labels on every icon (d) text that can grow
Answer key
- 57
- line 3
- Battery OK
- spot a problem to solve
- how users feel after
- Battery OK
- a parameter
- good design
- 58
- Low battery
- line 3
- the idea stage
- a medicine reminder
- 3
- False
- True
- switches main sections
- 3
- tap “Start quiz”
- 2
- sorting the scores
- 4
- 9
- release an update
- OFF
- share tasks to friends
- 10
- shows 3 to 5 icons
- Test 2
- 12
- Done
- Hi, Aman
- True
- True
- 5
- 49
- 410
- True
- add money received
- icons with no labels
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students