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.🔁 Why use a loop to show 100 messages? (a) less code to write (b) it hides them (c) it is slower (d) it uses more lines
- 2.💡 Does an app idea like a bill splitter solve a real problem? (a) Yes (b) No
- 3.🔢 After an app is released, what comes right after “test it again”? (a) fix and improve (b) release an update (c) list what to fix (d) read user reviews
-
4.🐞 Each comment says what its line SHOULD do. Which line has the bug?
line 1: let stars = 31; // start at 31
line 2: stars = stars * 2; // double it
line 3: stars = stars - 6; // take away 5
line 4: show(stars); // show it (a) line 3 (b) line 1 (c) line 2 - 5.🔢 After an app is released, what comes right after “fix and improve”? (a) read user reviews (b) release an update (c) list what to fix (d) test it again
- 6.🚀 In version 2.5.1, which number is the major version? (a) 251 (b) 5 (c) 1 (d) 2
-
7.🧰 What number does this code show?
function points(stars) {
return stars * 10 + 5;
}
show(points(3) + points(5)); -
8.🧪 How many of these test cases pass?
📝 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(7) → expected Try again
Test 2: result(8) → expected Pass
Test 3: result(9) → expected Pass -
9.🧪 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(10) → expected Pass
Test 2: result(8) → expected Pass
Test 3: result(6) → expected Try again (a) Test 3 (b) Test 1 (c) Test 2 -
10.🔀 What does this sign-up rule show?
let age = 15;
if (age >= 13) {
show("Welcome!");
} else {
show("Ask a parent");
} (a) Ask a parent (b) Welcome! - 11.🐞 A comment in code (after //) is for ___. (a) the battery (b) the app store (c) the phone screen (d) people reading the code
- 12.🗂️ What kind of app is a times-table quiz? (a) a game (b) a tool app (c) a learning app (d) a health app
-
13.📊 Survey: which problem bugs you most? How many students voted in all?
no quiet study place: 8 votes
forgetting birthdays: 19 votes
losing water bottles: 3 votes -
14.🧪 What is the ACTUAL result of Test 3?
🚚 Rule: delivery is free (0) when the order is 300 or more; otherwise it costs 40.
function delivery(total) {
if (total >= 300) {
return 0;
}
return 40;
}
Test 1: delivery(400) → expected 0
Test 2: delivery(100) → expected 40
Test 3: delivery(300) → expected 0 - 15.Which of these is an output? (a) a pop-up message (b) tapping a button (c) working out a tip (d) sorting the scores
- 16.🗒️ You are planning version 1 of a homework planner. Which feature is a MUST-HAVE? (a) share tasks to friends (b) pick a theme colour (c) earn stickers (d) add a homework task
- 17.Which of these is data? (a) tap to go Next (b) the home page of an app (c) your high score (d) a box to type a name
-
18.👆 Two designs for the same task (each arrow is one tap). Which needs FEWER taps?
Design A: Home → Menu → Address → Size → Confirm → Item → Pens
Design B: Home → Pay → Results → Confirm (a) Design B (b) Design A - 19.🔍 Which is the odd one out? (a) big touch targets (b) labels on every icon (c) text that can grow (d) tiny tap areas
- 20.🛠️ At which stage do you list what users need? (a) the build stage (b) the plan stage (c) the idea stage (d) the release stage
- 21.🗒️ You are planning version 1 of a homework planner. Which feature can WAIT for a later version? (a) add a homework task (b) pick a theme colour (c) see tasks by day (d) set a due date
-
22.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
line 1: let lives = 34; // start at 34
line 2: lives = lives + 4; // add 4
line 3: lives = lives - 5; // add 5
line 4: show(lives); // show it - 23.🔐 Is this permission request fair or too much: calling app → contacts? (a) fair (b) too much
- 24.🗒️ You are planning version 1 of a bus tracker. Which feature can WAIT for a later version? (a) pick your bus stop (b) see where the bus is (c) show arrival time (d) a dark mode
- 25.🔍 Which is the odd one out? (a) typing your age (b) sorting the scores (c) speaking a command (d) taking a photo
- 26.True or false: a calculator is a tool app. (a) True (b) False
- 27.True or false: a bus tracker needs your contacts. (a) True (b) False
-
28.🔀 Which badge does this quiz app show?
let marks = 32;
if (marks >= 80) {
show("Gold");
} else if (marks >= 50) {
show("Silver");
} else {
show("Bronze");
} (a) Silver (b) Gold (c) Bronze - 29.🧪 A test fails when ___. (a) both are the same (b) the font is big (c) actual is not expected (d) the app is new
-
30.🔀 What does this PIN rule show?
let pin = "99889";
if (pin.length === 4) {
show("PIN saved");
} else {
show("Use 4 digits");
} (a) Use 4 digits (b) PIN saved -
31.🖼️ How many parts (boxes) does this wireframe have?
[ Save button ]
[ tab bar ]
[ Add button ]
[ filter buttons ] - 32.✏️ A box with a cross in a wireframe usually means ___. (a) an error (b) delete this (c) a picture goes here (d) a closed app
- 33.💡 Which app idea solves this problem: Grandpa forgets his tablets? (a) a lost-and-found board (b) a medicine reminder (c) a homework planner (d) a bill splitter
- 34.True or false: whether users get lost is about UX (the experience). (a) True (b) False
-
35.⚙️ What number does this app show?
let price = 95; // typed by the user
let qty = 6; // typed by the user
let total = price * qty;
show(total); -
36.🧰 A museum app works out the entry fee. What number does this code show?
function fee(age) {
if (age < 5) {
return 0;
}
return 20;
}
show(fee(6) + fee(11)); - 37.True or false: a lost-and-found board solves no real problem. (a) False (b) True
-
38.👆 The user taps the button 7 times. What number does the label show now?
let likes = 0;
button.onTap = function () {
if (likes < 3) {
likes = likes + 1;
}
label.text = likes;
}; - 39.True or false: the sound on/off setting fits saving on the phone. (a) True (b) False
- 40.🗒️ You are planning version 1 of a pocket-money tracker. Which feature is a MUST-HAVE? (a) pie-chart colours (b) savings stickers (c) add money spent (d) export to a file
Answer key
- less code to write
- Yes
- release an update
- line 3
- test it again
- 2
- 90
- 2
- Test 2
- Welcome!
- people reading the code
- a learning app
- 30
- 0
- a pop-up message
- add a homework task
- your high score
- Design B
- tiny tap areas
- the idea stage
- pick a theme colour
- 43
- fair
- a dark mode
- sorting the scores
- True
- False
- Bronze
- actual is not expected
- Use 4 digits
- 4
- a picture goes here
- a medicine reminder
- True
- 570
- 40
- False
- 3
- True
- add money spent
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students