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.✏️ Why draw a wireframe before coding? (a) it saves data (b) it adds colours (c) it runs the app (d) changes are quick
-
2.🔁 What number does this code show?
let runs = [25, 27, 68, 68];
let count = 0;
for (let i = 0; i < runs.length; i++) {
if (runs[i] >= 70) {
count = count + 1;
}
}
show(count); -
3.🔁 What number does this code show?
let scores = [3, 13, 5, 9, 5];
let total = 0;
for (let i = 0; i < scores.length; i++) {
total = total + scores[i];
}
show(total); - 4.🔁 list.length tells you ___. (a) the biggest item (b) the last item (c) the first item (d) how many items it has
-
5.🧪 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(500) → expected 0
Test 2: delivery(250) → expected 40
Test 3: delivery(400) → expected 0 -
6.🧰 What does this code show?
function greet(name) {
return "Hi, " + name + "!";
}
show(greet("Meera")); (a) Hi, name! (b) greet (c) Hi, Meera! (d) Meera - 7.♿ A screen has 5 icon buttons. Only 1 of them have a text label for screen readers. How many still need a label?
-
8.👆 The user types Zoya in nameBox and taps the button 1 time. What does the label show?
button.onTap = function () {
label.text = "Hello, " + nameBox.text + "!";
}; (a) Hello! (b) Zoya (c) Hello, Zoya! (d) Hello, nameBox.text! - 9.Which of these is about UI (the look)? (a) how users feel after (b) how easy sign-up is (c) the screen layout (d) how many taps it takes
- 10.🎯 Is this a user need or a feature: a reminder alarm? (a) a user need (b) a feature
- 11.💡 Does an app idea like a free study-room finder solve a real problem? (a) No (b) Yes
-
12.📊 Survey: which problem bugs you most? How many more votes did “no quiet study place” get than “forgetting homework”?
forgetting homework: 12 votes
losing water bottles: 4 votes
no quiet study place: 25 votes -
13.🔁 What number does this code show?
let scores = [13, 15, 6];
let total = 0;
for (let i = 0; i < scores.length; i++) {
total = total + scores[i];
}
show(total); - 14.🔍 Which is the odd one out? (a) a racing challenge (b) a word battle (c) a cricket run chase (d) a times-table quiz
-
15.♿ Our rule: text is at least 16 px. How many texts on this screen are too small?
Menu: 18 px
Hint: 21 px
Footer: 20 px - 16.🗒️ You are planning version 1 of a pocket-money tracker. Which feature can WAIT for a later version? (a) add money received (b) show the balance (c) pie-chart colours (d) add money spent
-
17.🧪 How many of these test cases pass?
🎟️ Rule: a ticket costs 50 for children under 11, and 100 for everyone else.
function price(age) {
if (age <= 11) {
return 50;
}
return 100;
}
Test 1: price(11) → expected 100
Test 2: price(9) → expected 50
Test 3: price(13) → expected 100 - 18.True or false: a unit converter is a tool app. (a) False (b) True
- 19.👆 What kind of event is this: one second passes? (a) a load event (b) a tap event (c) a timer event (d) a text event
-
20.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
line 1: let score = 36; // start at 36
line 2: score = score + 2; // double it
line 3: score = score * 2; // double it
line 4: score = score * 2; // double it
line 5: show(score); // show it - 21.🚀 Your app is at version 3.11.2. The next release fixes a small bug. What is its version number? (a) 3.12.2 (b) 3.11.3 (c) 3.12.0 (d) 4.0.0
- 22.Which of these is an input? (a) a buzz (vibration) (b) sorting the scores (c) a result on screen (d) speaking a command
-
23.👆 The user taps the button 3 times. What number does the label show now?
let points = 10;
button.onTap = function () {
points = points + 2;
label.text = points;
}; - 24.🔢 In a photo-post flow, what comes right after “open the camera screen”? (a) take the photo (b) post the photo (c) write a caption (d) add a filter
- 25.♿ A screen has 8 icon buttons. Only 3 of them have a text label for screen readers. How many still need a label?
-
26.♿ Our rule: text is at least 16 px. How many texts on this screen are too small?
Footer: 18 px
Hint: 10 px
Menu: 21 px
Label: 16 px - 27.True or false: a lost-and-found board solves no real problem. (a) False (b) True
- 28.🗒️ What is a must-have feature? (a) a colour theme (b) one the app cannot skip (c) a nice extra (d) a sound effect
-
29.👆 Two designs for the same task (each arrow is one tap). How many taps does Design B need?
Design A: Home → Pay → Shop → Pens → Address → Cart → Search
Design B: Home → Pens → Address → Shop -
30.🗒️ Version 1 of a bus tracker must be ready in 7 days. How many days are left for extras after the must-haves?
see where the bus is: 3 days
show arrival time: 1 days
pick your bus stop: 3 days - 31.True or false: notes to read offline fits saving in the cloud. (a) True (b) False
-
32.👆 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) OFF (b) ON - 33.🎨 Is this about UI or UX: the icon shapes? (a) UX (b) UI
-
34.💾 pop() takes off the last item. What does this code show?
let notes = ["Science", "Maths", "Music"];
notes.pop();
show(notes[notes.length - 1]); (a) Maths (b) Music (c) Science -
35.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
line 1: let coins = 31; // start at 31
line 2: coins = coins * 2; // double it
line 3: coins = coins + 1; // take away 1
line 4: coins = coins - 5; // take away 5
line 5: show(coins); // show it - 36.📅 An app team plans for 5 days, builds for 8 days, tests for 1 days and releases on 1 more day. Planning starts on day 1. On which day does building finish?
- 37.👥 A school app has 175 students, 290 teachers and 135 parents as users. How many users does it have in all?
- 38.🔍 Which is the odd one out? (a) sketch the screens (b) pick the features (c) draw the user flow (d) share the download link
-
39.🔀 What does this battery rule show?
let battery = 4;
if (battery < 20) {
show("Low battery");
} else {
show("Battery OK");
} (a) Low battery (b) Battery OK - 40.🧪 A test case is an input together with its ___. (a) app icon (b) font size (c) screen colour (d) expected result
Answer key
- changes are quick
- 0
- 35
- how many items it has
- 3
- Hi, Meera!
- 4
- Hello, Zoya!
- the screen layout
- a feature
- Yes
- 13
- 34
- a times-table quiz
- 0
- pie-chart colours
- 2
- True
- a timer event
- 288
- 3.11.3
- speaking a command
- 16
- take the photo
- 5
- 1
- False
- one the app cannot skip
- 3
- 0
- False
- OFF
- UI
- Maths
- 56
- 13
- 600
- share the download link
- Low battery
- expected result
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students