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 SHOULD it show, if every line did what its comment says?
line 1: let stars = 44; // start at 44
line 2: stars = stars + 4; // add 4
line 3: stars = stars + 1; // take away 1
line 4: show(stars); // show it - 2.💡 Does an app idea like a bill splitter solve a real problem? (a) No (b) Yes
-
3.🧪 What is the ACTUAL result of Test 1?
🚚 Rule: delivery is free (0) when the order is 500 or more; otherwise it costs 40.
function delivery(total) {
if (total > 500) {
return 0;
}
return 40;
}
Test 1: delivery(600) → expected 0
Test 2: delivery(550) → expected 0
Test 3: delivery(450) → expected 40 -
4.🧪 One test case fails. Which one?
🎟️ Rule: a ticket costs 50 for children under 8, and 100 for everyone else.
function price(age) {
if (age <= 8) {
return 50;
}
return 100;
}
Test 1: price(7) → expected 50
Test 2: price(8) → expected 100
Test 3: price(11) → expected 100 (a) Test 2 (b) Test 1 (c) Test 3 -
5.🔀 What number does this shop app show?
let total = 660;
if (total > 500) {
total = total - 50;
}
show(total); - 6.Which of these is data? (a) tap to Save (b) your saved notes (c) the game-over page (d) a switch for dark mode
-
7.🐞 Each comment says what its line SHOULD do. Which line has the bug?
line 1: let score = 34; // start at 34
line 2: score = score - 1; // take away 1
line 3: score = score + 2; // double it
line 4: show(score); // show it (a) line 1 (b) line 3 (c) line 2 - 8.Which of these makes the app harder to use? (a) captions on videos (b) text that can grow (c) labels on every icon (d) tiny tap areas
- 9.🗒️ You are planning version 1 of a homework planner. Which feature is a MUST-HAVE? (a) pick a theme colour (b) share tasks to friends (c) earn stickers (d) add a homework task
-
10.🧰 What number does this code show?
function points(stars) {
return stars * 10 + 5;
}
show(points(2) + points(0)); -
11.🐞 Each comment says what its line SHOULD do. Which line has the bug?
line 1: let stars = 40; // start at 40
line 2: stars = stars - 3; // take away 3
line 3: stars = stars + 3; // take away 3
line 4: stars = stars - 3; // take away 3
line 5: show(stars); // show it (a) line 3 (b) line 1 (c) line 2 (d) line 4 -
12.♿ Our rule: text is at least 16 px. Which text on this screen is too small?
Title: 16 px
Label: 25 px
Body text: 28 px
Menu: 9 px (a) Label (b) Title (c) Menu (d) Body text - 13.🗂️ What kind of app is a calculator? (a) a learning app (b) a health app (c) a tool app (d) a game
- 14.🧪 Who else should try an app before release? (a) the app icon (b) only the coder (c) real users (d) nobody
- 15.🔐 Is this permission request fair or too much: voice notes → microphone? (a) fair (b) too much
- 16.💾 Where should the app save a shared to-do list: on the phone or in the cloud? (a) on the phone (b) in the cloud
-
17.🧰 What does this code show?
function greet(name) {
return "Hi, " + name + "!";
}
show(greet("Riya")); (a) Hi, Riya! (b) Hi, name! (c) Riya (d) greet - 18.💾 Where should the app save a class leaderboard: on the phone or in the cloud? (a) in the cloud (b) on the phone
- 19.🗒️ You are planning version 1 of a homework planner. Which feature can WAIT for a later version? (a) set a due date (b) add a homework task (c) earn stickers (d) see tasks by day
- 20.🧩 In an app, what is your friends list? (a) a screen (b) a button (c) an input (d) data
- 21.True or false: a homework planner is the best fit for a reader who finds small print hard. (a) True (b) False
- 22.👥 A school app has 115 students, 185 teachers and 300 parents as users. How many more parents than teachers are there?
-
23.🔘 Our rule: buttons are at least 48 px tall. Which button is too small?
Cancel button: 72 px tall
Help button: 48 px tall
Done button: 44 px tall
Next button: 48 px tall (a) Cancel (b) Done (c) Help (d) Next - 24.🗂️ What kind of app is an alarm clock? (a) a health app (b) a learning app (c) a tool app (d) a game
- 25.🔐 Which permission does a walking map really need? (a) contacts (b) the camera (c) location (d) the microphone
-
26.🧰 What number does this code show?
function total(price, qty) {
return price * qty;
}
show(total(55, 5)); - 27.♿ What does a screen reader do? (a) makes text tiny (b) takes photos (c) reads the screen aloud (d) plays music
- 28.🧩 Which input is best for choosing a volume level? (a) a slider (b) a text box (c) a title (d) a switch
- 29.♿ A screen has 10 icon buttons. Only 4 of them have a text label for screen readers. How many still need a label?
-
30.👆 The user taps the button 6 times. What number does the label show now?
let points = 4;
button.onTap = function () {
points = points + 1;
label.text = points;
}; -
31.🧪 What is the ACTUAL result of Test 2?
🎟️ 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(19) → expected 100
Test 2: price(13) → expected 100
Test 3: price(10) → expected 50 - 32.🧰 What is a function? (a) a screen size (b) a list of colours (c) a named block of code (d) a type of phone
- 33.Which of these is true of an app? (a) has a web address (b) needs no installing (c) opens from a link (d) updates from the store
- 34.🎯 Which app would help this user most: a child saving up for a cycle? (a) a recipe finder (b) a big-text reader (c) a water reminder (d) a pocket-money tracker
-
35.👆 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) OFF (b) ON - 36.🔐 Which permission does a weather-near-me app really need? (a) the camera (b) contacts (c) location (d) the microphone
-
37.🔁 What is the LAST line this code shows?
let names = ["Riya", "Aman", "Kabir"];
for (let i = 0; i < names.length; i++) {
show("Hi, " + names[i]);
} (a) Hi, Riya (b) Hi, Kabir (c) Hi, Aman - 38.🚀 Which version is newer: 3.5.0 or 3.11.2? (a) 3.11.2 (b) 3.5.0
- 39.🎨 UI stands for user ___. (a) idea (b) input (c) interface (d) internet
- 40.🎯 Why learn about users before you build? (a) to slow it down (b) to make it longer (c) to pick a logo (d) to build what they need
Answer key
- 47
- Yes
- 0
- Test 2
- 610
- your saved notes
- line 3
- tiny tap areas
- add a homework task
- 30
- line 3
- Menu
- a tool app
- real users
- fair
- in the cloud
- Hi, Riya!
- in the cloud
- earn stickers
- data
- False
- 115
- Done
- a tool app
- location
- 275
- reads the screen aloud
- a slider
- 6
- 10
- 100
- a named block of code
- updates from the store
- a pocket-money tracker
- OFF
- location
- Hi, Kabir
- 3.11.2
- interface
- to build what they need
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students