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 marks = [89, 65, 50, 65];
let count = 0;
for (let i = 0; i < marks.length; i++) {
if (marks[i] >= 70) {
count = count + 1;
}
}
show(count); - 2.True or false: a water reminder is a health app. (a) True (b) False
- 3.🧩 What does a button do when you tap it? (a) changes the phone (b) saves the battery (c) starts an action (d) shows the time
- 4.🗒️ You are planning version 1 of a bus tracker. Which feature is a MUST-HAVE? (a) show arrival time (b) a dark mode (c) rate the driver (d) change the bus icon
- 5.Which of these is a screen? (a) tap to Start (b) a box to type a name (c) your high score (d) the settings page
- 6.True or false: taking a photo is an output. (a) False (b) True
-
7.🔁 What number does this code show?
let steps = [2, 20, 18, 1];
let best = 0;
for (let i = 0; i < steps.length; i++) {
if (steps[i] > best) {
best = steps[i];
}
}
show(best); - 8.🔢 In a quiz-app flow, what comes right after “pick an answer”? (a) tap “Start quiz” (b) see if it is right (c) read a question (d) see the final score
-
9.🔘 Our rule: buttons are at least 48 px tall. How many of these buttons follow the rule?
Send button: 36 px tall
Cancel button: 40 px tall
Start button: 56 px tall - 10.True or false: the button colours is about UI (the look). (a) False (b) True
- 11.🔢 When you make an app, which comes FIRST? (a) plan the screens (b) test the app (c) get an idea (d) build the app
-
12.🧰 What number does this code show?
function triple(n) {
return n * 3;
}
show(triple(12)); - 13.🔢 In a quiz-app flow, which comes first: “tap “Start quiz”” or “read a question”? (a) tap “Start quiz” (b) read a question
- 14.🎯 Which app would help this user most: a parent waiting at the bus stop? (a) a bus tracker (b) a recipe finder (c) a pocket-money tracker (d) a water reminder
- 15.🔘 Our rule: buttons are at least 48 px tall. The Back button is 36 px tall. How many px taller must it be?
- 16.🧩 Which input is best for turning something ON or OFF? (a) a slider (b) a title (c) a text box (d) a switch
- 17.🔀 With if / else if / else, how many parts run? (a) only one (b) two (c) all of them (d) none
-
18.👆 The user taps the button 3 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 - 19.🔍 Which is the odd one out? (a) how easy sign-up is (b) how many taps it takes (c) the font size (d) how users feel after
-
20.📊 Survey: which problem bugs you most? How many students voted in all?
missing the bus: 6 votes
forgetting homework: 22 votes
losing water bottles: 18 votes - 21.✏️ Is this true of a wireframe or of a final design: uses plain grey boxes? (a) a final design (b) a wireframe
- 22.True or false: a clear word like Save is poor button design. (a) True (b) False
- 23.🗒️ The first small, working version of an app is often called an ___. (a) FAQ (b) CPU (c) MVP (d) URL
-
24.⚙️ What number does this app show?
let km = 12; // typed by the user
let metres = km * 1000;
show(metres); - 25.🌗 Is yellow on white easy or hard to read on a button? (a) easy to read (b) hard to read
- 26.🔘 Our rule: buttons are at least 48 px tall. The Start button is 20 px tall. How many px taller must it be?
-
27.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
line 1: let points = 48; // start at 48
line 2: points = points * 2; // double it
line 3: points = points - 6; // add 6
line 4: show(points); // show it -
28.🧭 The app has tabs Feed, Chat, Settings. You start on Feed, then:
1. tap the Chat tab
2. open “Badges”
3. tap Back
4. tap the Feed tab
5. open “Map”
How many times must you tap Back to reach the main screen of this tab? - 29.🔍 Which is the odd one out? (a) a unit converter (b) a racing challenge (c) a calculator (d) a torch
- 30.True or false: an alarm clock is a tool app. (a) True (b) False
- 31.👆 What kind of event is this: the app starts up? (a) a text event (b) a load event (c) a tap event (d) a timer event
- 32.Which of these helps everyone use the app? (a) colour as the only clue (b) tiny tap areas (c) icons with no labels (d) text that can grow
-
33.🗒️ Version 1 of a quiz app must be ready in 9 days. How many days are left for extras after the must-haves?
show a question: 1 days
check the answer: 2 days
show the score: 5 days - 34.🎨 Is this about UI or UX: how fast a task is done? (a) UX (b) UI
- 35.🔘 Is this good or poor button design: a big, easy tap area? (a) good design (b) poor design
- 36.🐞 What is a bug? (a) a new feature (b) a fast phone (c) a mistake in the code (d) a nice icon
-
37.🧪 How many of these test cases pass?
📝 Rule: a quiz is passed with 6 or more right answers.
function result(right) {
if (right >= 6) {
return "Pass";
}
return "Try again";
}
Test 1: result(4) → expected Try again
Test 2: result(9) → expected Pass
Test 3: result(7) → expected Pass -
38.🐞 This code has a bug. What number does it ACTUALLY show?
line 1: let points = 45; // start at 44
line 2: points = points + 5; // add 5
line 3: points = points + 2; // add 2
line 4: points = points * 2; // double it
line 5: show(points); // show it -
39.👆 The user taps the button 6 times. What number does the label show now?
let coins = 5;
button.onTap = function () {
coins = coins + 2;
label.text = coins;
}; - 40.🗒️ You are planning version 1 of a bus tracker. Which feature can WAIT for a later version? (a) rate the driver (b) see where the bus is (c) show arrival time (d) pick your bus stop
Answer key
- 1
- True
- starts an action
- show arrival time
- the settings page
- False
- 20
- see if it is right
- 1
- True
- get an idea
- 36
- tap “Start quiz”
- a bus tracker
- 12
- a switch
- only one
- ON
- the font size
- 46
- a wireframe
- False
- MVP
- 12000
- hard to read
- 28
- 102
- 1
- a racing challenge
- True
- a load event
- text that can grow
- 1
- UX
- good design
- a mistake in the code
- 3
- 104
- 17
- rate the driver
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students