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 is a good first step when an app gives a wrong result? (a) find where it goes wrong (b) delete the app (c) add more colours (d) buy a new phone
- 2.⚙️ In an app, is speaking a command an input, processing or an output? (a) input (b) processing (c) output
- 3.👆 What kind of event is this: the user presses Save? (a) a text event (b) a load event (c) a timer event (d) a tap event
-
4.👆 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) ON (b) OFF -
5.🔁 What number does this code show?
let scores = [11, 19, 12, 1, 3];
let total = 0;
for (let i = 0; i < scores.length; i++) {
total = total + scores[i];
}
show(total); - 6.True or false: a cricket run chase is a learning app. (a) False (b) True
- 7.💾 What is a variable? (a) a named box for a value (b) a picture (c) a phone setting (d) a type of screen
- 8.🗒️ You are planning version 1 of a quiz app. Which feature can WAIT for a later version? (a) background music (b) check the answer (c) show a question (d) show the score
-
9.🔀 What does this PIN rule show?
let pin = "3941";
if (pin.length === 4) {
show("PIN saved");
} else {
show("Use 4 digits");
} (a) PIN saved (b) Use 4 digits -
10.🚀 Which of these versions is the OLDEST?
4.18.7, 4.3.1, 4.10.6, 3.21.1 (a) 4.18.7 (b) 4.10.6 (c) 4.3.1 (d) 3.21.1 - 11.🎯 Which app would help this user most: a runner who forgets to sip water? (a) a pocket-money tracker (b) a recipe finder (c) a bus tracker (d) a water reminder
- 12.True or false: a button with no action solves no real problem. (a) False (b) True
- 13.True or false: you put it on an app store at the idea stage. (a) True (b) False
-
14.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
line 1: let points = 46; // start at 46
line 2: points = points + 4; // add 2
line 3: points = points * 2; // double it
line 4: show(points); // show it -
15.👆 The user taps the button 1 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 - 16.🔢 In a photo-post flow, which comes FIRST? (a) take the photo (b) open the camera screen (c) post the photo (d) write a caption
-
17.🧪 How many of these test cases pass?
🚚 Rule: delivery is free (0) when the order is 300 or more; otherwise it costs 40.
function delivery(total) {
if (total >= 300) {
return 0;
}
return 40;
}
Test 1: delivery(200) → expected 40
Test 2: delivery(350) → expected 0
Test 3: delivery(400) → expected 0 -
18.🔁 What number does this code show?
let runs = [32, 74, 94, 92];
let count = 0;
for (let i = 0; i < runs.length; i++) {
if (runs[i] >= 40) {
count = count + 1;
}
}
show(count); - 19.💡 Does an app idea like an app that just says hi solve a real problem? (a) Yes (b) No
- 20.♿ A screen has 10 icon buttons. Only 1 of them have a text label for screen readers. How many still need a label?
- 21.🔘 Our rule: buttons are at least 48 px tall. The Done button is 36 px tall. How many px taller must it be?
- 22.🔢 When you make an app, what comes right after “build the app”? (a) get an idea (b) test the app (c) release it (d) plan the screens
- 23.🗒️ You are planning version 1 of a bus tracker. Which feature can WAIT for a later version? (a) show arrival time (b) see where the bus is (c) a dark mode (d) pick your bus stop
-
24.🐞 Each comment says what its line SHOULD do. Which line has the bug?
line 1: let lives = 30; // start at 30
line 2: lives = lives + 2; // double it
line 3: lives = lives - 3; // take away 3
line 4: show(lives); // show it (a) line 3 (b) line 1 (c) line 2 -
25.🔀 What does this battery rule show?
let battery = 19;
if (battery < 20) {
show("Low battery");
} else {
show("Battery OK");
} (a) Battery OK (b) Low battery -
26.🔁 What is the LAST line this code shows?
let names = ["Aman", "Riya", "Arjun"];
for (let i = 0; i < names.length; i++) {
show("Hi, " + names[i]);
} (a) Hi, Arjun (b) Hi, Aman (c) Hi, Riya - 27.Which of these is an input? (a) tap to go Next (b) tap to Send (c) a date picker (d) the game-over page
- 28.Which colour pair is hard to read? (a) black on yellow (b) light grey on white (c) black on pale grey (d) white on dark green
-
29.👆 Two designs for the same task (each arrow is one tap). How many taps does Design B need?
Design A: Home → Pay → Pens
Design B: Home → Shop → Pay → Search → Confirm → Results → Offers - 30.🐞 What is a bug? (a) a mistake in the code (b) a fast phone (c) a new feature (d) a nice icon
- 31.Which of these is data? (a) tap to Start (b) a date picker (c) your saved notes (d) tap to Save
- 32.🔘 Our rule: buttons are at least 48 px tall. The Cancel button is 20 px tall. How many px taller must it be?
- 33.🔐 Is this permission request fair or too much: voice notes → microphone? (a) too much (b) fair
- 34.🎯 What is a user need? (a) a problem a user has (b) a phone setting (c) a type of button (d) a colour theme
- 35.Which colour pair is hard to read? (a) pale pink on white (b) white on dark green (c) black on pale grey (d) dark blue on white
-
36.🔘 Our rule: buttons are at least 48 px tall. Which button is too small?
Send button: 24 px tall
Save button: 64 px tall
Done button: 48 px tall (a) Send (b) Done (c) Save - 37.👆 “On tap → do this” links an event to ___. (a) a charger (b) an action (c) a web address (d) a font
- 38.🔢 When you make an app, which comes LAST? (a) build the app (b) release it (c) plan the screens (d) test the app
-
39.🔁 What number does this code show?
let runs = [24, 42, 33];
let count = 0;
for (let i = 0; i < runs.length; i++) {
if (runs[i] >= 60) {
count = count + 1;
}
}
show(count); - 40.Which of these is true of a website? (a) opens in a web browser (b) is installed on a phone (c) updates from the store (d) has a home-screen icon
Answer key
- find where it goes wrong
- input
- a tap event
- OFF
- 46
- False
- a named box for a value
- background music
- PIN saved
- 3.21.1
- a water reminder
- True
- False
- 96
- ON
- open the camera screen
- 3
- 3
- No
- 9
- 12
- test the app
- a dark mode
- line 2
- Low battery
- Hi, Arjun
- a date picker
- light grey on white
- 6
- a mistake in the code
- your saved notes
- 28
- fair
- a problem a user has
- pale pink on white
- Send
- an action
- release it
- 0
- opens in a web browser
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students