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.🧪 How many of these test cases pass?
🚚 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(950) → expected 0
Test 2: delivery(750) → expected 40
Test 3: delivery(800) → expected 0 -
2.📊 Survey: which problem bugs you most? Which problem should your app solve first?
forgetting birthdays: 17 votes
no quiet study place: 9 votes
losing water bottles: 18 votes (a) forgetting birthdays (b) losing water bottles (c) no quiet study place - 3.True or false: a wireframe shows the real fonts. (a) True (b) False
- 4.💡 Which app idea solves this problem: projects pile up at once? (a) a lost-and-found board (b) a study-room finder (c) a medicine reminder (d) a homework planner
- 5.✏️ Is this true of a wireframe or of a final design: uses the final pictures? (a) a final design (b) a wireframe
- 6.🔢 In a sign-up flow, what comes right after “type name and email”? (a) tap “Sign up” (b) see the home screen (c) enter the code sent (d) make a password
- 7.📅 An app team plans for 2 days, builds for 5 days, tests for 3 days and releases on 1 more day. Planning starts on day 1. On which day does building finish?
-
8.🧪 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(9) → expected 50
Test 2: price(10) → expected 100
Test 3: price(14) → expected 100 (a) Test 3 (b) Test 2 (c) Test 1 - 9.👆 “On tap → do this” links an event to ___. (a) a font (b) an action (c) a charger (d) a web address
-
10.🧪 How many of these test cases pass?
🎟️ Rule: a ticket costs 50 for children under 13, and 100 for everyone else.
function price(age) {
if (age <= 13) {
return 50;
}
return 100;
}
Test 1: price(17) → expected 100
Test 2: price(16) → expected 100
Test 3: price(11) → expected 50 -
11.👆 The user types Riya in nameBox and taps the button 1 time. What does the label show?
button.onTap = function () {
label.text = "Hi, " + nameBox.text + "!";
}; (a) Hi! (b) Hi, nameBox.text! (c) Hi, Riya! (d) Riya -
12.👆 The user taps the button 4 times. What number does the label show now?
let lives = 9;
button.onTap = function () {
lives = lives + 5;
label.text = lives;
}; - 13.True or false: a unit converter is a health app. (a) True (b) False
- 14.🔁 Why use a loop to show 100 messages? (a) it is slower (b) less code to write (c) it hides them (d) it uses more lines
-
15.🧪 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(11) → expected Pass
Test 2: result(10) → expected Pass
Test 3: result(6) → expected Try again - 16.🐞 Finding and fixing bugs is called ___. (a) debugging (b) downloading (c) designing (d) decorating
-
17.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
line 1: let lives = 41; // start at 41
line 2: lives = lives * 3; // double it
line 3: lives = lives - 1; // take away 1
line 4: show(lives); // show it - 18.🔍 Which is the odd one out? (a) tiny tap areas (b) labels on every icon (c) text that can grow (d) captions on videos
- 19.💡 How can you check that people really have the problem? (a) copy another app (b) ask possible users (c) just guess (d) pick a colour
- 20.True or false: “captions on videos” makes the app harder to use. (a) False (b) True
- 21.True or false: a library due-date alert solves no real problem. (a) True (b) False
- 22.🔢 In a sign-up flow, which comes first: “see the home screen” or “type name and email”? (a) type name and email (b) see the home screen
- 23.📱 The word “app” is short for ___. (a) appetite (b) appointment (c) application (d) apparatus
- 24.🔢 In a food-order flow, what comes right after “add it to the cart”? (a) open the menu (b) check the cart (c) pay for the order (d) pick a dish
-
25.🧪 One test case fails. Which one?
🎟️ 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(11) → expected 100
Test 3: price(10) → expected 50 (a) Test 3 (b) Test 1 (c) Test 2 - 26.🔢 After an app is released, what comes right after “list what to fix”? (a) read user reviews (b) test it again (c) fix and improve (d) release an update
- 27.🔍 Which is the odd one out? (a) checking a password (b) a result on screen (c) working out a tip (d) adding up a bill
- 28.True or false: a big, easy tap area is good button design. (a) False (b) True
-
29.🔁 What number does this code show?
let scores = [18, 7, 20, 16, 12];
let best = 0;
for (let i = 0; i < scores.length; i++) {
if (scores[i] > best) {
best = scores[i];
}
}
show(best); -
30.🧰 A museum app works out the entry fee. What number does this code show?
function fee(age) {
if (age < 5) {
return 0;
}
return 30;
}
show(fee(3) + fee(7)); - 31.💡 Which app idea solves this problem: pupils forget due dates? (a) a study-room finder (b) a homework planner (c) a medicine reminder (d) a bill splitter
-
32.🔁 What number does this code show?
let steps = [15, 20, 2, 3, 18];
let total = 0;
for (let i = 0; i < steps.length; i++) {
total = total + steps[i];
}
show(total); - 33.🧰 Why write a function? (a) to make code longer (b) to slow the app (c) to reuse code (d) to hide errors
-
34.🔀 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! - 35.🔔 What is a message an app shows on your lock screen called? (a) a variable (b) a notification (c) a web address (d) a wireframe
-
36.📊 Survey: which problem bugs you most? How many more votes did “losing water bottles” get than “no quiet study place”?
losing water bottles: 15 votes
forgetting birthdays: 13 votes
no quiet study place: 12 votes -
37.🔀 What number does this shop app show?
let total = 540;
if (total > 500) {
total = total - 50;
}
show(total); -
38.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
line 1: let points = 40; // start at 40
line 2: points = points + 4; // add 4
line 3: points = points - 3; // take away 3
line 4: points = points * 3; // double it
line 5: show(points); // show it - 39.🗒️ You are planning version 1 of a homework planner. Which feature is a MUST-HAVE? (a) earn stickers (b) add a homework task (c) share tasks to friends (d) pick a theme colour
-
40.⚙️ Which line does the processing (works out the answer)?
line 1: let km = 13; // typed by the user
line 2: let metres = km * 1000;
line 3: show(metres); (a) line 1 (b) line 2 (c) line 3
Answer key
- 3
- losing water bottles
- False
- a homework planner
- a final design
- make a password
- 7
- Test 2
- an action
- 3
- Hi, Riya!
- 29
- False
- less code to write
- 3
- debugging
- 81
- tiny tap areas
- ask possible users
- False
- False
- type name and email
- application
- check the cart
- Test 2
- fix and improve
- a result on screen
- True
- 20
- 30
- a homework planner
- 58
- to reuse code
- Welcome!
- a notification
- 3
- 490
- 82
- add a homework task
- line 2
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students