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.🧰 A museum app works out the entry fee. What number does this code show?
function fee(age) {
if (age < 5) {
return 0;
}
return 40;
}
show(fee(8) + fee(6)); - 2.Which of these is a user need? (a) a dark mode switch (b) a share button (c) a reminder alarm (d) “I keep missing the bus”
- 3.🔐 Which permission does a party-invite app for friends really need? (a) the camera (b) the microphone (c) contacts (d) location
-
4.🔁 What number does this code show?
let steps = [1, 6, 9, 7, 5];
let total = 0;
for (let i = 0; i < steps.length; i++) {
total = total + steps[i];
}
show(total); - 5.True or false: notes to read offline fits saving in the cloud. (a) True (b) False
- 6.Which of these is true of a menu button? (a) goes to the last screen (b) sits at the bottom (c) opens a list of pages (d) undoes one move
- 7.Which colour pair is easy to read? (a) white on black (b) light grey on white (c) red on green (d) dark blue on black
-
8.🧪 One test case fails. Which one?
📝 Rule: a quiz is passed with 5 or more right answers.
function result(right) {
if (right > 5) {
return "Pass";
}
return "Try again";
}
Test 1: result(7) → expected Pass
Test 2: result(5) → expected Pass
Test 3: result(4) → expected Try again (a) Test 1 (b) Test 3 (c) Test 2 -
9.🚀 Which of these versions is the NEWEST?
2.19.3, 2.7.1, 1.21.6, 2.18.0 (a) 2.19.3 (b) 2.18.0 (c) 1.21.6 (d) 2.7.1 - 10.Which of these happens at the idea stage? (a) write down the bugs (b) list what users need (c) connect the data (d) pick the features
-
11.🧪 One test case fails. Which one?
🎟️ Rule: a ticket costs 50 for children under 8, and 100 for everyone else.
function price(age) {
if (age <= 8) {
return 50;
}
return 100;
}
Test 1: price(9) → expected 100
Test 2: price(8) → expected 100
Test 3: price(5) → expected 50 (a) Test 2 (b) Test 1 (c) Test 3 -
12.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
line 1: let lives = 51; // start at 49
line 2: lives = lives + 6; // add 6
line 3: lives = lives + 4; // add 4
line 4: show(lives); // show it - 13.🔍 Which is the odd one out? (a) fast-flashing lights (b) strong colour contrast (c) big touch targets (d) labels on every icon
- 14.🗂️ What kind of app is a sleep tracker? (a) a health app (b) a learning app (c) a tool app (d) a game
-
15.🧰 What number does this code show?
function points(stars) {
return stars * 10 + 5;
}
show(points(3) + points(2)); -
16.🧰 What number does this code show?
function points(stars) {
return stars * 10 + 5;
}
show(points(4) + points(0)); -
17.🔁 What number does this code show?
let marks = [7, 20, 13, 16, 4];
let total = 0;
for (let i = 0; i < marks.length; i++) {
total = total + marks[i];
}
show(total); - 18.🎯 Is this a user need or a feature: “What should I cook?”? (a) a user need (b) a feature
- 19.🧪 A test case is an input together with its ___. (a) screen colour (b) app icon (c) font size (d) expected result
- 20.True or false: space between buttons is good button design. (a) False (b) True
-
21.🔁 What is the LAST line this code shows?
let names = ["Aman", "Zoya", "Riya", "Meera", "Kabir"];
for (let i = 0; i < names.length; i++) {
show("Hi, " + names[i]);
} (a) Hi, Aman (b) Hi, Zoya (c) Hi, Riya (d) Hi, Kabir - 22.🗒️ You are planning version 1 of a pocket-money tracker. Which feature is a MUST-HAVE? (a) export to a file (b) savings stickers (c) pie-chart colours (d) add money spent
-
23.🗒️ Version 1 of a homework planner must be ready in 10 days. How many days are left for extras after the must-haves?
add a homework task: 2 days
set a due date: 3 days
see tasks by day: 2 days - 24.👥 A school app has 120 students, 275 teachers and 20 parents as users. How many users does it have in all?
- 25.True or false: the button colours is about UI (the look). (a) False (b) True
- 26.🎨 UI stands for user ___. (a) idea (b) input (c) internet (d) interface
-
27.🖼️ In this wireframe (top to bottom), what is right below the top bar?
[ big picture ]
[ top bar ]
[ list of items ]
[ Add button ] (a) big picture (b) list of items (c) Add button - 28.👥 A cricket club app has 185 players, 195 coaches and 220 fans as users. How many users does it have in all?
- 29.🚀 In version 2.5.1, which number is the major version? (a) 1 (b) 251 (c) 2 (d) 5
-
30.🧰 What does this code show?
function greet(name) {
return "Hello, " + name + "!";
}
show(greet("Aman")); (a) greet (b) Hello, name! (c) Hello, Aman! (d) Aman - 31.💡 Does an app idea like a bill splitter solve a real problem? (a) No (b) Yes
- 32.True or false: a website needs no installing. (a) True (b) False
-
33.🧰 What number does this code show?
function total(price, qty) {
return price * qty;
}
show(total(60, 6)); - 34.👆 What kind of event is this: the user taps Play? (a) a timer event (b) a load event (c) a tap event (d) a text event
-
35.🧩 Which of these is a button on this screen?
[title] Add Homework
[slider] Volume
[button] Cancel
[text box] Name (a) Volume (b) Cancel (c) Name - 36.🧪 Values right at a limit, like age 12 for “under 12”, are called ___. (a) easy cases (b) edge cases (c) phone cases (d) old cases
- 37.Which of these is true of a website? (a) needs no installing (b) is installed on a phone (c) updates from the store (d) has a home-screen icon
- 38.🧭 Why should every screen show where you are? (a) to look busy (b) to use more battery (c) to hide the menu (d) so users do not get lost
- 39.True or false: today’s step count is an input. (a) False (b) True
-
40.🧪 One test case fails. Which one?
🚚 Rule: delivery is free (0) when the order is 800 or more; otherwise it costs 40.
function delivery(total) {
if (total > 800) {
return 0;
}
return 40;
}
Test 1: delivery(800) → expected 0
Test 2: delivery(1050) → expected 0
Test 3: delivery(700) → expected 40 (a) Test 3 (b) Test 2 (c) Test 1
Answer key
- 80
- “I keep missing the bus”
- contacts
- 28
- False
- opens a list of pages
- white on black
- Test 2
- 2.19.3
- list what users need
- Test 2
- 59
- fast-flashing lights
- a health app
- 60
- 50
- 60
- a user need
- expected result
- True
- Hi, Kabir
- add money spent
- 3
- 415
- True
- interface
- list of items
- 600
- 2
- Hello, Aman!
- Yes
- True
- 360
- a tap event
- Cancel
- edge cases
- needs no installing
- so users do not get lost
- False
- Test 1
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students