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.🧰 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(8) + fee(9)); - 2.🔀 In a good flow, each screen should lead to ___. (a) a dead end (b) the same screen (c) a random page (d) a clear next step
- 3.🧩 In an app, what is a slider for volume? (a) a button (b) data (c) a screen (d) an input
-
4.⚙️ Which line does the processing (works out the answer)?
line 1: let km = 10; // typed by the user
line 2: let metres = km * 1000;
line 3: show(metres); (a) line 2 (b) line 1 (c) line 3 - 5.Which of these is a user need? (a) “What should I cook?” (b) a reminder alarm (c) a search bar (d) a share button
- 6.Which of these is an input? (a) your saved notes (b) the game-over page (c) a box to type a name (d) the log-in page
-
7.🗒️ 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: 5 days - 8.🧩 Which input is best for turning something ON or OFF? (a) a text box (b) a switch (c) a slider (d) a title
- 9.🛠️ At which stage do you connect the data? (a) the release stage (b) the plan stage (c) the test stage (d) the build stage
-
10.🧪 What is the ACTUAL result of Test 3?
🚚 Rule: delivery is free (0) when the order is 600 or more; otherwise it costs 40.
function delivery(total) {
if (total >= 600) {
return 0;
}
return 40;
}
Test 1: delivery(900) → expected 0
Test 2: delivery(500) → expected 40
Test 3: delivery(800) → expected 0 -
11.🧪 What is the ACTUAL result of Test 2?
🎟️ Rule: a ticket costs 50 for children under 14, and 100 for everyone else.
function price(age) {
if (age <= 14) {
return 50;
}
return 100;
}
Test 1: price(14) → expected 100
Test 2: price(16) → expected 100
Test 3: price(10) → expected 50 - 12.True or false: your last game level fits saving in the cloud. (a) False (b) True
- 13.✏️ Do wireframes usually show the final colours? (a) No (b) Yes
-
14.💾 What does this code show? (Positions start at 0.)
let songs = ["Sunrise", "Monsoon", "Ocean", "Rain", "Stars"];
show(songs[2]); (a) Monsoon (b) Sunrise (c) Rain (d) Ocean -
15.👆 The user taps the button 3 times. What number does the label show now?
let coins = 2;
button.onTap = function () {
coins = coins + 1;
label.text = coins;
}; - 16.True or false: a final design uses plain grey boxes. (a) True (b) False
- 17.📱 Which one opens from a link: an app or a website? (a) a website (b) an app
-
18.📊 Survey: which problem bugs you most? How many students voted in all?
missing the bus: 24 votes
forgetting homework: 12 votes
no quiet study place: 5 votes - 19.🔁 What does a loop do? (a) deletes code (b) saves photos (c) draws icons (d) repeats code
- 20.🔀 What does if / else let an app do? (a) save a photo (b) repeat forever (c) draw a screen (d) pick one of two actions
- 21.♿ A screen has 6 icon buttons. Only 2 of them have a text label for screen readers. How many still need a label?
- 22.True or false: strong colour contrast is poor button design. (a) True (b) False
- 23.💡 Does an app idea like a medicine reminder solve a real problem? (a) Yes (b) No
- 24.♿ Showing right or wrong only in red and green is a problem for ___. (a) the battery (b) colour-blind users (c) fast typists (d) the server
- 25.🗂️ What kind of app is a times-table quiz? (a) a tool app (b) a learning app (c) a game (d) a health app
- 26.Which of these is true of the back button? (a) hides extra links (b) goes to the last screen (c) shows 3 to 5 icons (d) switches main sections
- 27.Which of these is a button? (a) the game-over page (b) the home page of an app (c) the log-in page (d) tap to Start
-
28.💾 What does this code show? (Positions start at 0.)
let friends = ["Kabir", "Meera", "Zoya", "Riya", "Aman"];
show(friends[0]); (a) Zoya (b) Kabir (c) Meera (d) Riya - 29.🗒️ You are planning version 1 of a quiz app. Which feature can WAIT for a later version? (a) an avatar shop (b) show a question (c) check the answer (d) show the score
- 30.🔢 In a photo-post flow, which comes first: “write a caption” or “open the camera screen”? (a) write a caption (b) open the camera screen
-
31.🔘 Our rule: buttons are at least 48 px tall. How many of these buttons follow the rule?
Next button: 60 px tall
Save button: 32 px tall
Send button: 60 px tall -
32.🔀 Which badge does this quiz app show?
let marks = 38;
if (marks >= 80) {
show("Gold");
} else if (marks >= 50) {
show("Silver");
} else {
show("Bronze");
} (a) Silver (b) Bronze (c) Gold - 33.True or false: a pocket-money tracker is the best fit for a gamer who forgets to drink. (a) True (b) False
-
34.👆 The user taps the button 2 times. What number does the label show now?
let stars = 10;
button.onTap = function () {
stars = stars + 4;
label.text = stars;
}; -
35.🔀 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! -
36.🧩 How many inputs (text boxes, switches and sliders) does this screen have?
[title] Settings
[text box] Email
[button] Done
[switch] Sound
[text box] Due date
[text box] Name - 37.♿ A screen has 5 icon buttons. Only 3 of them have a text label for screen readers. How many still need a label?
- 38.🗒️ The first small, working version of an app is often called an ___. (a) URL (b) FAQ (c) MVP (d) CPU
- 39.True or false: the user types a letter is a timer event. (a) False (b) True
-
40.⚙️ Which line does the processing (works out the answer)?
line 1: let km = 6; // typed by the user
line 2: let metres = km * 1000;
line 3: show(metres); (a) line 2 (b) line 1 (c) line 3
Answer key
- 40
- a clear next step
- an input
- line 2
- “What should I cook?”
- a box to type a name
- 2
- a switch
- the build stage
- 0
- 100
- False
- No
- Ocean
- 5
- False
- a website
- 41
- repeats code
- pick one of two actions
- 4
- False
- Yes
- colour-blind users
- a learning app
- goes to the last screen
- tap to Start
- Kabir
- an avatar shop
- open the camera screen
- 2
- Bronze
- False
- 18
- Welcome!
- 4
- 2
- MVP
- False
- line 2
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students