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.🐞 This code has a bug. What number does it ACTUALLY show?
line 1: let points = 43; // start at 43
line 2: points = points * 3; // double it
line 3: points = points - 1; // take away 1
line 4: show(points); // show it -
2.🗒️ Version 1 of a quiz app must be ready in 13 days. How many days are left for extras after the must-haves?
show a question: 1 days
check the answer: 4 days
show the score: 4 days - 3.🧪 A test case is an input together with its ___. (a) expected result (b) app icon (c) font size (d) screen colour
- 4.📴 Which of these can often still work with no internet? (a) an online search (b) an installed app (c) a new website (d) a video call
-
5.💾 What number does this code show?
let songs = ["Kites", "Sunrise", "Rain", "Monsoon"];
songs.push("Stars");
songs.push("Ocean");
show(songs.length); - 6.True or false: photos on two devices fits saving on the phone. (a) False (b) True
-
7.🧰 What number does this code show?
function points(stars) {
return stars * 10 + 5;
}
show(points(2) + points(4)); - 8.True or false: a website is installed on a phone. (a) True (b) False
-
9.💾 What number does this code show?
let stars = 3;
stars = stars - 3;
stars = stars + 5;
show(stars); -
10.🧪 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(10) → expected 50
Test 2: price(13) → expected 100
Test 3: price(15) → expected 100 - 11.Which colour pair is easy to read? (a) pale pink on white (b) light grey on white (c) red on green (d) white on black
- 12.🧰 Why write a function? (a) to reuse code (b) to hide errors (c) to slow the app (d) to make code longer
- 13.🎯 Is this a user need or a feature: “Small text is hard”? (a) a user need (b) a feature
- 14.Which of these fits saving in the cloud? (a) notes to read offline (b) a draft you are typing (c) photos on two devices (d) the sound on/off setting
- 15.🔢 In a sign-up flow, which comes FIRST? (a) type name and email (b) open the app (c) tap “Sign up” (d) see the home screen
-
16.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
line 1: let lives = 53; // start at 50
line 2: lives = lives - 5; // take away 5
line 3: lives = lives * 2; // double it
line 4: lives = lives - 3; // take away 3
line 5: show(lives); // show it -
17.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
line 1: let score = 45; // start at 43
line 2: score = score * 2; // double it
line 3: score = score + 2; // add 2
line 4: score = score + 5; // add 5
line 5: show(score); // show it -
18.🗒️ Version 1 of a homework planner must be ready in 11 days. How many days are left for extras after the must-haves?
add a homework task: 1 days
set a due date: 1 days
see tasks by day: 4 days -
19.🧪 How many of these test cases pass?
🎟️ 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(16) → expected 100
Test 2: price(18) → expected 100
Test 3: price(7) → expected 50 - 20.💡 Which app idea solves this problem: nobody knows whose bag it is? (a) a homework planner (b) a study-room finder (c) a lost-and-found board (d) a bill splitter
- 21.🛠️ At which stage do you draw the user flow? (a) the release stage (b) the build stage (c) the test stage (d) the plan stage
- 22.🔁 What does a loop do? (a) draws icons (b) saves photos (c) repeats code (d) deletes code
-
23.🧰 What number does this code show?
function triple(n) {
return n * 3;
}
show(triple(30)); -
24.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
line 1: let stars = 35; // start at 35
line 2: stars = stars + 4; // add 3
line 3: stars = stars * 2; // double it
line 4: show(stars); // show it -
25.🔀 What number does this shop app show?
let total = 520;
if (total > 500) {
total = total - 50;
}
show(total); - 26.🔍 Which is the odd one out? (a) a racing challenge (b) a calculator (c) a torch (d) a unit converter
- 27.Which of these is a user need? (a) a reminder alarm (b) “Small text is hard” (c) a search bar (d) a share button
-
28.🔁 What number does this code show?
let scores = [10, 7, 1];
let best = 0;
for (let i = 0; i < scores.length; i++) {
if (scores[i] > best) {
best = scores[i];
}
}
show(best); -
29.🧰 What number does this code show?
function points(stars) {
return stars * 10 + 5;
}
show(points(2) + points(1)); -
30.🧪 One test case fails. Which one?
🎟️ Rule: a ticket costs 50 for children under 10, and 100 for everyone else.
function price(age) {
if (age <= 10) {
return 50;
}
return 100;
}
Test 1: price(10) → expected 100
Test 2: price(8) → expected 50
Test 3: price(14) → expected 100 (a) Test 2 (b) Test 1 (c) Test 3 - 31.True or false: a puzzle with levels is a tool app. (a) False (b) True
-
32.🧪 What is the ACTUAL result of Test 1?
🎟️ Rule: a ticket costs 50 for children under 10, and 100 for everyone else.
function price(age) {
if (age <= 10) {
return 50;
}
return 100;
}
Test 1: price(6) → expected 50
Test 2: price(14) → expected 100
Test 3: price(15) → expected 100 -
33.🐞 This code has a bug. What number does it ACTUALLY show?
line 1: let stars = 39; // start at 39
line 2: stars = stars * 2; // double it
line 3: stars = stars * 2; // double it
line 4: stars = stars + 2; // double it
line 5: show(stars); // show it -
34.🧭 The app has tabs Home, Search, Profile. You start on Home, then:
1. open “Edit photo”
2. open “Help page”
3. open “Score card”
4. tap the Home tab
How many times must you tap Back to reach the main screen of this tab? - 35.🔢 In a quiz-app flow, which comes first: “pick an answer” or “see the final score”? (a) see the final score (b) pick an answer
- 36.🧩 Which input is best for turning something ON or OFF? (a) a text box (b) a title (c) a switch (d) a slider
-
37.📊 Survey: which problem bugs you most? Which problem should your app solve first?
missing the bus: 14 votes
forgetting homework: 23 votes
wasting pocket money: 15 votes (a) forgetting homework (b) wasting pocket money (c) missing the bus - 38.True or false: tap to go Next is a button. (a) False (b) True
-
39.♿ Our rule: text is at least 16 px. How many texts on this screen are too small?
Menu: 10 px
Caption: 17 px
Footer: 23 px
Hint: 19 px
Label: 18 px - 40.🔍 Which is the odd one out? (a) list what users need (b) spot a problem to solve (c) write the code (d) talk to possible users
Answer key
- 128
- 4
- expected result
- an installed app
- 6
- False
- 70
- False
- 5
- 3
- white on black
- to reuse code
- a user need
- photos on two devices
- open the app
- 87
- 93
- 5
- 3
- a lost-and-found board
- the plan stage
- repeats code
- 90
- 76
- 470
- a racing challenge
- “Small text is hard”
- 10
- 40
- Test 1
- False
- 50
- 158
- 0
- pick an answer
- a switch
- forgetting homework
- True
- 1
- write the code
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students