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.🐞 After fixing a bug you should ___. (a) release at once (b) test it again (c) delete the test (d) never test
- 2.👆 What kind of event is this: the user taps Play? (a) a timer event (b) a load event (c) a tap event (d) a text event
-
3.🗒️ Version 1 of a bus tracker must be ready in 7 days. How many days are left for extras after the must-haves?
see where the bus is: 1 days
show arrival time: 3 days
pick your bus stop: 3 days - 4.👥 A clinic app has 95 patients, 280 doctors and 115 nurses as users. How many users does it have in all?
- 5.Which of these is a feature? (a) “What should I cook?” (b) a reminder alarm (c) “I keep missing the bus” (d) “Small text is hard”
-
6.🧰 What number does this code show?
function total(price, qty) {
return price * qty;
}
show(total(35, 4)); - 7.🧩 Which part lets the user give the app information? (a) a title (b) an input (c) an icon (d) a logo
-
8.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
line 1: let coins = 32; // start at 31
line 2: coins = coins + 3; // add 3
line 3: coins = coins * 2; // double it
line 4: show(coins); // show it - 9.🎯 Is this a user need or a feature: “I forget my homework”? (a) a feature (b) a user need
-
10.🧰 What number does this code show?
function double(n) {
return n * 2;
}
show(double(5)); - 11.🌗 Is black on pale grey easy or hard to read on a button? (a) hard to read (b) easy to read
- 12.🗒️ You are planning version 1 of a homework planner. Which feature can WAIT for a later version? (a) add a homework task (b) earn stickers (c) set a due date (d) see tasks by day
-
13.👆 The user taps the button 2 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 -
14.🚀 Which of these versions is the NEWEST?
2.9.7, 1.28.3, 2.3.2, 2.8.9 (a) 2.3.2 (b) 1.28.3 (c) 2.8.9 (d) 2.9.7 -
15.🧩 How many buttons does this app screen have?
[title] New Note
[button] Help
[text box] Name
[switch] Remind me
[text box] Due date
[text box] Phone
[button] Back
[slider] Text size - 16.🗒️ You are planning version 1 of a pocket-money tracker. Which feature is a MUST-HAVE? (a) savings stickers (b) show the balance (c) pie-chart colours (d) export to a file
-
17.🧪 What is the ACTUAL result of Test 1?
🎟️ 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(19) → expected 100
Test 2: price(14) → expected 100
Test 3: price(11) → expected 50 - 18.♿ A screen has 5 icon buttons. Only 3 of them have a text label for screen readers. How many still need a label?
- 19.🔀 When does the else part run? (a) when the test is true (b) when the test is false (c) never (d) always
- 20.🧪 A test fails when ___. (a) both are the same (b) the app is new (c) the font is big (d) actual is not expected
-
21.🗒️ Version 1 of a bus tracker must be ready in 10 days. How many days are left for extras after the must-haves?
see where the bus is: 4 days
show arrival time: 3 days
pick your bus stop: 2 days - 22.🗒️ You are planning version 1 of a quiz app. Which feature is a MUST-HAVE? (a) background music (b) show a question (c) an avatar shop (d) confetti effects
-
23.🚀 Which of these versions is the OLDEST?
0.26.8, 1.3.0, 1.4.4, 1.6.7 (a) 0.26.8 (b) 1.3.0 (c) 1.6.7 (d) 1.4.4 - 24.🧩 In an app, what is the game-over page? (a) a button (b) an input (c) data (d) a screen
-
25.🔁 What number does this code show?
let scores = [49, 24, 88, 98];
let count = 0;
for (let i = 0; i < scores.length; i++) {
if (scores[i] >= 50) {
count = count + 1;
}
}
show(count); -
26.🔀 What number does this shop app show?
let total = 340;
if (total > 500) {
total = total - 50;
}
show(total); -
27.🔁 What number does this code show?
let scores = [15, 20, 13];
let best = 0;
for (let i = 0; i < scores.length; i++) {
if (scores[i] > best) {
best = scores[i];
}
}
show(best); -
28.🔀 What does this battery rule show?
let battery = 10;
if (battery < 20) {
show("Low battery");
} else {
show("Battery OK");
} (a) Battery OK (b) Low battery -
29.👆 Two designs for the same task (each arrow is one tap). How many taps does Design A need?
Design A: Home → Pens → Shop
Design B: Home → Offers → Confirm → Menu → Item → Cart → Search - 30.🔘 Is this good or poor button design: grey text on grey? (a) poor design (b) good design
-
31.🧰 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(8) + fee(7)); - 32.🗒️ In MVP, the M stands for ___. (a) maximum (b) music (c) mobile (d) minimum
- 33.True or false: a puzzle with levels is a tool app. (a) True (b) False
-
34.🧪 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(600) → expected 40
Test 2: delivery(850) → expected 0
Test 3: delivery(800) → expected 0 (a) Test 2 (b) Test 1 (c) Test 3 -
35.🔀 What does this sign-up rule show?
let age = 14;
if (age >= 13) {
show("Welcome!");
} else {
show("Ask a parent");
} (a) Ask a parent (b) Welcome! - 36.📅 An app team plans for 5 days, builds for 5 days, tests for 2 days and releases on 1 more day. How many more days does building take than testing?
- 37.📱 Which one needs no installing: an app or a website? (a) an app (b) a website
-
38.🔀 Which badge does this quiz app show?
let marks = 60;
if (marks >= 80) {
show("Gold");
} else if (marks >= 50) {
show("Silver");
} else {
show("Bronze");
} (a) Bronze (b) Gold (c) Silver - 39.🗒️ You are planning version 1 of a pocket-money tracker. Which feature is a MUST-HAVE? (a) savings stickers (b) pie-chart colours (c) add money received (d) export to a file
-
40.🔁 What number does this code show?
let scores = [40, 18, 13];
let count = 0;
for (let i = 0; i < scores.length; i++) {
if (scores[i] >= 50) {
count = count + 1;
}
}
show(count);
Answer key
- test it again
- a tap event
- 0
- 490
- a reminder alarm
- 140
- an input
- 68
- a user need
- 10
- easy to read
- earn stickers
- OFF
- 2.9.7
- 2
- show the balance
- 100
- 2
- when the test is false
- actual is not expected
- 1
- show a question
- 0.26.8
- a screen
- 2
- 340
- 20
- Low battery
- 2
- poor design
- 80
- minimum
- False
- Test 3
- Welcome!
- 3
- a website
- Silver
- add money received
- 0
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students