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 does this code show?
function greet(name) {
return "Well done, " + name + "!";
}
show(greet("Zoya")); (a) Well done, name! (b) Zoya (c) greet (d) Well done, Zoya! - 2.👥 A school app has 60 students, 295 teachers and 100 parents as users. Which user group is the biggest? (a) parents (b) teachers (c) students
- 3.True or false: a finger hits Like is a timer event. (a) True (b) False
- 4.True or false: the icon shapes is about UI (the look). (a) False (b) True
- 5.True or false: an alarm clock is a health app. (a) False (b) True
-
6.🔀 What does this battery rule show?
let battery = 74;
if (battery < 20) {
show("Low battery");
} else {
show("Battery OK");
} (a) Battery OK (b) Low battery - 7.🧩 Which part lets the user give the app information? (a) an input (b) a title (c) an icon (d) a logo
- 8.🔍 Which is the odd one out? (a) the theme colours (b) how many taps it takes (c) the button colours (d) the font size
-
9.🧭 The app has tabs Home, Search, Profile. You start on Home, then:
1. open “Map”
2. tap the Search tab
3. open “Video”
4. tap Back
How many times must you tap Back to reach the main screen of this tab? - 10.⚙️ In an app, is tapping a button an input, processing or an output? (a) input (b) output (c) processing
-
11.💾 pop() takes off the last item. What does this code show?
let songs = ["Rain", "Monsoon", "Stars"];
songs.pop();
show(songs[songs.length - 1]); (a) Rain (b) Stars (c) Monsoon -
12.🧰 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(2) + fee(1)); - 13.Which of these fits saving on the phone? (a) chat messages to friends (b) a shared to-do list (c) a draft you are typing (d) a class leaderboard
- 14.♿ A screen has 11 icon buttons. Only 7 of them have a text label for screen readers. How many still need a label?
-
15.🔘 Our rule: buttons are at least 48 px tall. How many of these buttons follow the rule?
Cancel button: 40 px tall
Start button: 64 px tall
Save button: 36 px tall - 16.🔀 In this course’s code, which sign tests “is equal to”? (a) => (b) = (c) === (d) !==
- 17.🔘 Our rule: buttons are at least 48 px tall. The Back button is 24 px tall. How many px taller must it be?
- 18.👆 A tap handler runs how many times if the user taps 4 times? (a) 8 (b) 0 (c) 4 (d) 1
- 19.True or false: photos on two devices fits saving in the cloud. (a) False (b) True
- 20.🚀 What should an app ask for only when it really needs it? (a) its icon (b) a font (c) its name (d) a permission
- 21.True or false: a free study-room finder solves a real problem. (a) False (b) True
- 22.👥 A cricket club app has 110 players, 60 coaches and 85 fans as users. How many more players than fans are there?
- 23.True or false: the sound on/off setting fits saving on the phone. (a) True (b) False
-
24.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
line 1: let score = 42; // start at 40
line 2: score = score * 2; // double it
line 3: score = score - 1; // take away 1
line 4: show(score); // show it -
25.🔁 What number does this code show?
let runs = [17, 6, 20, 12];
let best = 0;
for (let i = 0; i < runs.length; i++) {
if (runs[i] > best) {
best = runs[i];
}
}
show(best); - 26.True or false: a homework photo scanner needs the camera. (a) True (b) False
- 27.📴 Which of these can often still work with no internet? (a) a video call (b) a new website (c) an online search (d) an installed app
-
28.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
line 1: let lives = 46; // start at 46
line 2: lives = lives * 2; // double it
line 3: lives = lives - 3; // add 3
line 4: show(lives); // show it - 29.🚀 Which version is newer: 4.4.14 or 4.4.5? (a) 4.4.5 (b) 4.4.14
- 30.💡 An app that tries to do everything at once is usually ___. (a) easy to build (b) very small (c) hard to use (d) finished fast
- 31.✏️ Why draw a wireframe before coding? (a) it adds colours (b) it saves data (c) changes are quick (d) it runs the app
- 32.🔁 In for (let i = 0; i < 3; i++), which values does i take? (a) 0, 1, 2, 3 (b) 1, 2, 3 (c) 3 (d) 0, 1, 2
-
33.🧰 What number does this code show?
function total(price, qty) {
return price * qty;
}
show(total(30, 4)); -
34.🔁 What number does this code show?
let scores = [70, 28, 50];
let count = 0;
for (let i = 0; i < scores.length; i++) {
if (scores[i] >= 40) {
count = count + 1;
}
}
show(count); - 35.🔘 Is this good or poor button design: grey text on grey? (a) good design (b) poor design
- 36.🗒️ You are planning version 1 of a pocket-money tracker. Which feature is a MUST-HAVE? (a) export to a file (b) add money spent (c) savings stickers (d) pie-chart colours
-
37.👆 The user taps the button 4 times. What number does the label show now?
let stars = 2;
button.onTap = function () {
stars = stars + 1;
label.text = stars;
}; - 38.🗒️ What is a must-have feature? (a) one the app cannot skip (b) a colour theme (c) a nice extra (d) a sound effect
- 39.🎨 Fewer taps to finish a task usually means ___. (a) worse UX (b) a bigger app (c) more colours (d) better UX
-
40.🗒️ Version 1 of a water reminder must be ready in 18 days. How many days are left for extras after the must-haves?
set a reminder time: 3 days
log a glass of water: 4 days
see today’s total: 5 days
Answer key
- Well done, Zoya!
- teachers
- False
- True
- False
- Battery OK
- an input
- how many taps it takes
- 0
- input
- Monsoon
- 0
- a draft you are typing
- 4
- 1
- ===
- 24
- 4
- True
- a permission
- True
- 25
- True
- 79
- 20
- True
- an installed app
- 95
- 4.4.14
- hard to use
- changes are quick
- 0, 1, 2
- 120
- 2
- poor design
- add money spent
- 6
- one the app cannot skip
- better UX
- 6
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students