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.💾 What number does this code show?
let notes = ["Sports", "Music", "Maths", "Art"];
notes.push("Hindi");
notes.push("Science");
show(notes.length); - 2.True or false: a draft you are typing fits saving on the phone. (a) False (b) True
-
3.🗒️ Version 1 of a pocket-money tracker must be ready in 9 days. How many days are left for extras after the must-haves?
add money received: 1 days
add money spent: 2 days
show the balance: 5 days -
4.💾 What number does this code show?
let lives = 8;
lives = lives - 4;
lives = lives + 3;
show(lives); - 5.True or false: a box to type a name is an input. (a) False (b) True
-
6.🧪 One test case fails. Which one?
📝 Rule: a quiz is passed with 7 or more right answers.
function result(right) {
if (right > 7) {
return "Pass";
}
return "Try again";
}
Test 1: result(9) → expected Pass
Test 2: result(6) → expected Try again
Test 3: result(7) → expected Pass (a) Test 1 (b) Test 2 (c) Test 3 -
7.🐞 This code has a bug. What number does it ACTUALLY show?
line 1: let lives = 33; // start at 32
line 2: lives = lives + 6; // add 6
line 3: lives = lives - 4; // take away 4
line 4: show(lives); // show it - 8.🗒️ You are planning version 1 of a water reminder. Which feature is a MUST-HAVE? (a) custom alert sounds (b) water animations (c) log a glass of water (d) share your streak
-
9.🔁 What number does this code show?
let marks = [95, 18, 17, 11, 64];
let count = 0;
for (let i = 0; i < marks.length; i++) {
if (marks[i] >= 50) {
count = count + 1;
}
}
show(count); - 10.Which of these is true of a final design? (a) uses plain grey boxes (b) shows the real fonts (c) shows where things go (d) has no real colours
-
11.🔘 Our rule: buttons are at least 48 px tall. Which button is too small?
Next button: 64 px tall
Done button: 52 px tall
Back button: 40 px tall (a) Back (b) Next (c) Done -
12.🔀 What does this battery rule show?
let battery = 65;
if (battery < 20) {
show("Low battery");
} else {
show("Battery OK");
} (a) Battery OK (b) Low battery - 13.🔘 Our rule: buttons are at least 48 px tall. The Save button is 32 px tall. How many px taller must it be?
-
14.🔁 What number does this code show?
let steps = [83, 70, 45, 19, 15];
let count = 0;
for (let i = 0; i < steps.length; i++) {
if (steps[i] >= 40) {
count = count + 1;
}
}
show(count); - 15.Which of these happens at the release stage? (a) draw the user flow (b) spot a problem to solve (c) let friends try it (d) put it on an app store
-
16.🧩 How many inputs (text boxes, switches and sliders) does this screen have?
[title] Sign Up
[text box] Age
[text box] Notes
[text box] Subject
[switch] Dark mode
[button] Next - 17.Which of these is true of an app? (a) needs no installing (b) opens from a link (c) is installed on a phone (d) opens in a web browser
-
18.🧭 The app has tabs Feed, Chat, Settings. You start on Feed, then:
1. open “Edit photo”
2. open “Score card”
3. open “Friend list”
4. open “Edit photo”
5. tap the Chat tab
Which screen are you on now? (a) Friend list (b) Score card (c) Chat (d) Edit photo - 19.✏️ Is this true of a wireframe or of a final design: is a quick sketch? (a) a wireframe (b) a final design
-
20.🧩 How many inputs (text boxes, switches and sliders) does this screen have?
[title] Settings
[button] Save
[text box] Email
[text box] Name
[text box] Notes - 21.🌗 Is pale pink on white easy or hard to read on a button? (a) easy to read (b) hard to read
- 22.🔘 Our rule: buttons are at least 48 px tall. The Done button is 28 px tall. How many px taller must it be?
-
23.🧰 A museum app works out the entry fee. What number does this code show?
function fee(age) {
if (age < 5) {
return 0;
}
return 50;
}
show(fee(12) + fee(12)); - 24.🔀 Why plan the user flow before building? (a) to hide the buttons (b) so each step is clear (c) to add more taps (d) to skip testing
- 25.True or false: a final design uses the final pictures. (a) False (b) True
- 26.🗒️ You are planning version 1 of a homework planner. Which feature is a MUST-HAVE? (a) pick a theme colour (b) earn stickers (c) see tasks by day (d) share tasks to friends
- 27.Which of these is data? (a) tap to go Next (b) a box to type a name (c) a slider for volume (d) your high score
- 28.✏️ Is this true of a wireframe or of a final design: shows where things go? (a) a final design (b) a wireframe
-
29.🧪 What is the ACTUAL result of Test 3?
🚚 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(1000) → expected 0
Test 2: delivery(700) → expected 40
Test 3: delivery(800) → expected 0 - 30.🗒️ The first small, working version of an app is often called an ___. (a) FAQ (b) CPU (c) MVP (d) URL
- 31.🧩 Which part lets the user give the app information? (a) a title (b) an icon (c) an input (d) a logo
-
32.🔘 Our rule: buttons are at least 48 px tall. How many of these buttons follow the rule?
Cancel button: 48 px tall
Next button: 36 px tall
Help button: 64 px tall
Start button: 36 px tall - 33.🗒️ You are planning version 1 of a pocket-money tracker. Which feature can WAIT for a later version? (a) savings stickers (b) add money spent (c) add money received (d) show the balance
-
34.📊 Survey: which problem bugs you most? How many students voted in all?
no quiet study place: 5 votes
missing the bus: 16 votes
losing water bottles: 17 votes -
35.🔘 Our rule: buttons are at least 48 px tall. Which button is too small?
Help button: 72 px tall
Start button: 48 px tall
Save button: 24 px tall (a) Save (b) Start (c) Help -
36.🧰 What number does this code show?
function total(price, qty) {
return price * qty;
}
show(total(15, 6)); - 37.True or false: a tiny 20 px button is good button design. (a) False (b) True
-
38.🧪 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(8) → expected 100
Test 2: price(12) → expected 100
Test 3: price(4) → expected 50 (a) Test 3 (b) Test 2 (c) Test 1 -
39.🗒️ Version 1 of a homework planner must be ready in 12 days. How many days are left for extras after the must-haves?
add a homework task: 1 days
set a due date: 4 days
see tasks by day: 3 days - 40.🐞 A comment in code (after //) is for ___. (a) the app store (b) the phone screen (c) the battery (d) people reading the code
Answer key
- 6
- True
- 1
- 7
- True
- Test 3
- 35
- log a glass of water
- 2
- shows the real fonts
- Back
- Battery OK
- 16
- 3
- put it on an app store
- 4
- is installed on a phone
- Chat
- a wireframe
- 3
- hard to read
- 20
- 100
- so each step is clear
- True
- see tasks by day
- your high score
- a wireframe
- 40
- MVP
- an input
- 2
- savings stickers
- 38
- Save
- 90
- False
- Test 1
- 4
- people reading the code
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students