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 colour pair is hard to read? (a) pale pink on white (b) black on yellow (c) dark blue on white (d) white on black
- 2.👆 An event in an app is ___. (a) an app store (b) a kind of list (c) a colour theme (d) something that happens
- 3.🌗 Is dark blue on black easy or hard to read on a button? (a) easy to read (b) hard to read
-
4.🔁 What number does this code show?
let runs = [10, 2, 13];
let best = 0;
for (let i = 0; i < runs.length; i++) {
if (runs[i] > best) {
best = runs[i];
}
}
show(best); -
5.🧪 One test case fails. Which one?
🎟️ Rule: a ticket costs 50 for children under 9, and 100 for everyone else.
function price(age) {
if (age <= 9) {
return 50;
}
return 100;
}
Test 1: price(9) → expected 100
Test 2: price(15) → expected 100
Test 3: price(5) → expected 50 (a) Test 2 (b) Test 1 (c) Test 3 - 6.🐞 After fixing a bug you should ___. (a) delete the test (b) release at once (c) test it again (d) never test
- 7.🎯 Why learn about users before you build? (a) to build what they need (b) to slow it down (c) to make it longer (d) to pick a logo
- 8.🔢 After an app is released, which comes first: “release an update” or “list what to fix”? (a) release an update (b) list what to fix
- 9.🔢 After an app is released, what comes right after “read user reviews”? (a) release an update (b) list what to fix (c) test it again (d) fix and improve
-
10.🧪 One test case fails. Which one?
📝 Rule: a quiz is passed with 8 or more right answers.
function result(right) {
if (right > 8) {
return "Pass";
}
return "Try again";
}
Test 1: result(5) → expected Try again
Test 2: result(10) → expected Pass
Test 3: result(8) → expected Pass (a) Test 1 (b) Test 2 (c) Test 3 - 11.🗒️ You are planning version 1 of a quiz app. Which feature is a MUST-HAVE? (a) an avatar shop (b) confetti effects (c) show the score (d) background music
- 12.True or false: a final design shows where things go. (a) True (b) False
- 13.🧰 What is a function? (a) a screen size (b) a type of phone (c) a list of colours (d) a named block of code
-
14.🧪 What is the ACTUAL result of Test 2?
🚚 Rule: delivery is free (0) when the order is 700 or more; otherwise it costs 40.
function delivery(total) {
if (total >= 700) {
return 0;
}
return 40;
}
Test 1: delivery(850) → expected 0
Test 2: delivery(900) → expected 0
Test 3: delivery(650) → expected 40 -
15.🔁 What is the LAST line this code shows?
let names = ["Meera", "Kabir", "Aman"];
for (let i = 0; i < names.length; i++) {
show("Hi, " + names[i]);
} (a) Hi, Kabir (b) Hi, Meera (c) Hi, Aman - 16.Which of these is an input? (a) checking a password (b) taking a photo (c) adding up a bill (d) working out a tip
- 17.💡 Which app idea solves this problem: projects pile up at once? (a) a lost-and-found board (b) a medicine reminder (c) a study-room finder (d) a homework planner
- 18.🗒️ You are planning version 1 of a homework planner. Which feature can WAIT for a later version? (a) pick a theme colour (b) set a due date (c) see tasks by day (d) add a homework task
- 19.👥 A school app has 65 students, 120 teachers and 195 parents as users. Which user group is the biggest? (a) students (b) teachers (c) parents
-
20.🧰 What number does this code show?
function double(n) {
return n * 2;
}
show(double(11)); - 21.🔢 In a food-order flow, what comes right after “open the menu”? (a) pay for the order (b) track the order (c) pick a dish (d) add it to the cart
- 22.⚙️ In an app, is typing your age an input, processing or an output? (a) input (b) output (c) processing
-
23.🧰 What number does this code show?
function triple(n) {
return n * 3;
}
show(triple(13)); - 24.✏️ Is this true of a wireframe or of a final design: shows where things go? (a) a final design (b) a wireframe
- 25.🔀 When does the else part run? (a) when the test is false (b) never (c) when the test is true (d) always
- 26.✏️ Do wireframes usually show the final colours? (a) Yes (b) No
-
27.🧰 What number does this code show?
function total(price, qty) {
return price * qty;
}
show(total(15, 4)); - 28.🗂️ What kind of app is a calculator? (a) a learning app (b) a health app (c) a game (d) a tool app
- 29.🎯 Which app would help this user most: a teen learning to make snacks? (a) a big-text reader (b) a bus tracker (c) a homework planner (d) a recipe finder
- 30.🔁 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
- 31.True or false: the user presses Save is a timer event. (a) True (b) False
- 32.🔍 Which is the odd one out? (a) talk to possible users (b) put it on an app store (c) share the download link (d) write the store text
-
33.🔁 What number does this code show?
let marks = [66, 48, 63, 41];
let count = 0;
for (let i = 0; i < marks.length; i++) {
if (marks[i] >= 70) {
count = count + 1;
}
}
show(count); -
34.👆 The user types Riya in nameBox and taps the button 1 time. What does the label show?
button.onTap = function () {
label.text = "Well done, " + nameBox.text + "!";
}; (a) Well done, Riya! (b) Riya (c) Well done! (d) Well done, nameBox.text! - 35.🌗 Is dark blue on white easy or hard to read on a button? (a) hard to read (b) easy to read
-
36.🧭 The app has tabs Lessons, Quiz, Me. You start on Lessons, then:
1. tap the Lessons tab
2. open “Match report”
3. tap Back
4. open “Badges”
5. tap Back
How many times must you tap Back to reach the main screen of this tab? -
37.👆 The user taps the button 3 times. What number does the label show now?
let score = 0;
button.onTap = function () {
score = score + 4;
label.text = score;
}; -
38.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
line 1: let points = 36; // start at 33
line 2: points = points - 1; // take away 1
line 3: points = points - 5; // take away 5
line 4: show(points); // show it - 39.👥 A library app has 90 readers, 210 librarians and 295 volunteers as users. Which user group is the biggest? (a) volunteers (b) readers (c) librarians
- 40.🧩 In an app, what is today’s step count? (a) a screen (b) data (c) a button (d) an input
Answer key
- pale pink on white
- something that happens
- hard to read
- 13
- Test 1
- test it again
- to build what they need
- list what to fix
- list what to fix
- Test 3
- show the score
- False
- a named block of code
- 0
- Hi, Aman
- taking a photo
- a homework planner
- pick a theme colour
- parents
- 22
- pick a dish
- input
- 39
- a wireframe
- when the test is false
- No
- 60
- a tool app
- a recipe finder
- 0, 1, 2
- False
- talk to possible users
- 0
- Well done, Riya!
- easy to read
- 0
- 12
- 27
- volunteers
- data
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students