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.🔍 Which is the odd one out? (a) tapping a button (b) taking a photo (c) typing your age (d) a beep sound
-
2.🧰 What number does this code show?
function total(price, qty) {
return price * qty;
}
show(total(95, 3)); -
3.⚙️ Which line does the processing (works out the answer)?
line 1: let bill = 56; // typed by the user
line 2: let friends = 4; // typed by the user
line 3: let share = bill / friends;
line 4: show(share); (a) line 1 (b) line 4 (c) line 3 (d) line 2 - 4.Which of these is a user need? (a) a share button (b) “What should I cook?” (c) a search bar (d) a reminder alarm
-
5.♿ Our rule: text is at least 16 px. Which text on this screen is too small?
Body text: 19 px
Hint: 13 px
Title: 17 px (a) Title (b) Body text (c) Hint - 6.True or false: a website opens in a web browser. (a) False (b) True
- 7.🔁 In for (let i = 0; i < 3; i++), which values does i take? (a) 0, 1, 2, 3 (b) 3 (c) 1, 2, 3 (d) 0, 1, 2
-
8.🐞 This code has a bug. What number does it ACTUALLY show?
line 1: let stars = 35; // start at 32
line 2: stars = stars * 2; // double it
line 3: stars = stars + 5; // add 5
line 4: stars = stars + 6; // add 6
line 5: show(stars); // show it - 9.🗒️ 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
-
10.🧰 What number does this code show?
function points(stars) {
return stars * 10 + 5;
}
show(points(4) + points(1)); -
11.🐞 This code has a bug. What number does it ACTUALLY show?
line 1: let score = 40; // start at 38
line 2: score = score + 6; // add 6
line 3: score = score + 6; // add 6
line 4: show(score); // show it -
12.🧭 The app has tabs Lessons, Quiz, Me. You start on Lessons, then:
1. open “Friend list”
2. tap Back
3. open “Map”
Which screen are you on now? (a) Quiz (b) Map (c) Friend list (d) Lessons -
13.⚙️ What number does this app show?
let bill = 355; // typed by the user
let friends = 5; // typed by the user
let share = bill / friends;
show(share); -
14.📊 Survey: which problem bugs you most? How many more votes did “forgetting homework” get than “losing water bottles”?
no quiet study place: 8 votes
forgetting homework: 22 votes
losing water bottles: 3 votes -
15.🔀 What does this battery rule show?
let battery = 90;
if (battery < 20) {
show("Low battery");
} else {
show("Battery OK");
} (a) Battery OK (b) Low battery - 16.🔍 Which is the odd one out? (a) put it on an app store (b) spot a problem to solve (c) list what users need (d) talk to possible users
-
17.🧰 What number does this code show?
function points(stars) {
return stars * 10 + 5;
}
show(points(3) + points(1)); - 18.🛠️ At which stage do you spot a problem to solve? (a) the test stage (b) the plan stage (c) the release stage (d) the idea stage
- 19.🔁 Why use a loop to show 100 messages? (a) it uses more lines (b) it hides them (c) less code to write (d) it is slower
- 20.👥 A library app has 120 readers, 30 librarians and 285 volunteers as users. Which user group is the biggest? (a) volunteers (b) librarians (c) readers
-
21.🧩 How many inputs (text boxes, switches and sliders) does this screen have?
[title] Add Homework
[switch] Sound
[button] Save
[text box] City
[slider] Brightness
[text box] Phone
[text box] Email - 22.👥 A school app has 25 students, 250 teachers and 205 parents as users. How many more teachers than students are there?
-
23.👆 The user taps the button 2 times. What number does the label show now?
let stars = 4;
button.onTap = function () {
stars = stars + 5;
label.text = stars;
}; -
24.🧩 How many buttons does this app screen have?
[title] Order Snacks
[button] Back
[button] Save
[switch] Dark mode
[button] Done
[text box] City
[text box] Name - 25.True or false: a birthday list of friends needs the camera. (a) True (b) False
-
26.🧪 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(8) → expected Pass
Test 2: result(7) → expected Pass
Test 3: result(5) → expected Try again (a) Test 2 (b) Test 1 (c) Test 3 - 27.True or false: taking a photo is an input. (a) False (b) True
- 28.💾 Where should the app save notes to read offline: on the phone or in the cloud? (a) in the cloud (b) on the phone
- 29.🔍 Which is the odd one out? (a) a calculator (b) a spelling coach (c) a flashcard trainer (d) a times-table quiz
- 30.🐞 A comment in code (after //) is for ___. (a) the battery (b) the app store (c) people reading the code (d) the phone screen
- 31.🌗 Is black on yellow easy or hard to read on a button? (a) easy to read (b) hard to read
- 32.🔍 Which is the odd one out? (a) pick the features (b) sketch the screens (c) write the code (d) draw the user flow
-
33.⚙️ What number does this app show?
let bill = 104; // typed by the user
let friends = 4; // typed by the user
let share = bill / friends;
show(share); - 34.✏️ Why draw a wireframe before coding? (a) it runs the app (b) it adds colours (c) it saves data (d) changes are quick
-
35.🧭 The app has tabs Lessons, Quiz, Me. You start on Lessons, then:
1. open “Video”
2. open “Match report”
3. tap the Lessons tab
4. open “Score card”
Which screen are you on now? (a) Video (b) Lessons (c) Match report (d) Score card -
36.🐞 This code has a bug. What number does it ACTUALLY show?
line 1: let points = 34; // start at 34
line 2: points = points - 3; // add 3
line 3: points = points + 2; // add 2
line 4: show(points); // show it -
37.🖼️ How many parts (boxes) does this wireframe have?
[ tab bar ]
[ top bar ]
[ menu icon ]
[ search box ] - 38.True or false: the icon shapes is about UX (the experience). (a) False (b) True
-
39.🔀 What does this sign-up rule show?
let age = 8;
if (age >= 13) {
show("Welcome!");
} else {
show("Ask a parent");
} (a) Welcome! (b) Ask a parent -
40.🔁 What number does this code show?
let steps = [18, 9, 4, 13, 10];
let best = 0;
for (let i = 0; i < steps.length; i++) {
if (steps[i] > best) {
best = steps[i];
}
}
show(best);
Answer key
- a beep sound
- 285
- line 3
- “What should I cook?”
- Hint
- True
- 0, 1, 2
- 81
- background music
- 60
- 52
- Map
- 71
- 19
- Battery OK
- put it on an app store
- 50
- the idea stage
- less code to write
- volunteers
- 5
- 225
- 14
- 3
- False
- Test 2
- True
- on the phone
- a calculator
- people reading the code
- easy to read
- write the code
- 26
- changes are quick
- Score card
- 33
- 4
- False
- Ask a parent
- 18
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students