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 is the LAST line this code shows?
let names = ["Meera", "Kabir", "Zoya", "Riya"];
for (let i = 0; i < names.length; i++) {
show("Hi, " + names[i]);
} (a) Hi, Meera (b) Hi, Riya (c) Hi, Kabir (d) Hi, Zoya -
2.🔀 What does this sign-up rule show?
let age = 15;
if (age >= 13) {
show("Welcome!");
} else {
show("Ask a parent");
} (a) Ask a parent (b) Welcome! - 3.True or false: you pick the features at the plan stage. (a) True (b) False
- 4.🔢 In a food-order flow, which comes first: “pay for the order” or “open the menu”? (a) pay for the order (b) open the menu
- 5.🗒️ You are planning version 1 of a quiz app. Which feature can WAIT for a later version? (a) confetti effects (b) check the answer (c) show a question (d) show the score
- 6.True or false: a class leaderboard fits saving on the phone. (a) False (b) True
-
7.🐞 Each comment says what its line SHOULD do. Which line has the bug?
line 1: let points = 33; // start at 33
line 2: points = points + 2; // double it
line 3: points = points * 2; // double it
line 4: show(points); // show it (a) line 1 (b) line 3 (c) line 2 -
8.🐞 This code has a bug. What number does it ACTUALLY show?
line 1: let points = 42; // start at 42
line 2: points = points * 3; // double it
line 3: points = points - 4; // take away 4
line 4: show(points); // show it - 9.🌗 Is white on dark green easy or hard to read on a button? (a) easy to read (b) hard to read
-
10.👆 The user taps the button 5 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 - 11.Which of these is an input? (a) your friends list (b) a switch for dark mode (c) tap to Send (d) the game-over page
-
12.🐞 This code has a bug. What number does it ACTUALLY show?
line 1: let score = 42; // start at 42
line 2: score = score - 6; // take away 4
line 3: score = score * 2; // double it
line 4: score = score + 3; // add 3
line 5: show(score); // show it - 13.♿ Does this help everyone, or make the app harder to use: text that can grow? (a) makes it harder (b) helps everyone
-
14.🖼️ How many parts (boxes) does this wireframe have?
[ tab bar ]
[ search box ]
[ menu icon ]
[ Save button ]
[ filter buttons ]
[ Add button ] - 15.🗒️ You are planning version 1 of a pocket-money tracker. Which feature is a MUST-HAVE? (a) savings stickers (b) export to a file (c) add money spent (d) pie-chart colours
-
16.🔁 What number does this code show?
let scores = [34, 23, 44, 83];
let count = 0;
for (let i = 0; i < scores.length; i++) {
if (scores[i] >= 40) {
count = count + 1;
}
}
show(count); -
17.♿ Our rule: text is at least 16 px. How many texts on this screen are too small?
Body text: 13 px
Footer: 11 px
Hint: 23 px
Menu: 14 px
Title: 21 px - 18.👥 A school app has 280 students, 80 teachers and 170 parents as users. How many more students than parents are there?
- 19.🔢 In a photo-post flow, which comes first: “write a caption” or “open the camera screen”? (a) open the camera screen (b) write a caption
- 20.🔁 A loop over a list of 5 items runs its body how many times? (a) 4 (b) 1 (c) 6 (d) 5
- 21.🧰 What does return do in a function? (a) sends back a value (b) repeats the code (c) deletes the app (d) closes the screen
- 22.✏️ Do wireframes usually show the final colours? (a) Yes (b) No
- 23.True or false: “icons with no labels” helps everyone use the app. (a) True (b) False
- 24.True or false: a flashcard trainer is a learning app. (a) True (b) False
- 25.🔐 A torch app asks for your contacts. What should you do? (a) deny it (b) allow it (c) post them online (d) share them all
- 26.🔢 In a sign-up flow, which comes first: “enter the code sent” or “open the app”? (a) open the app (b) enter the code sent
- 27.True or false: a step counter is a game. (a) False (b) True
-
28.🧪 What is the ACTUAL result of Test 3?
🎟️ Rule: a ticket costs 50 for children under 14, and 100 for everyone else.
function price(age) {
if (age < 14) {
return 50;
}
return 100;
}
Test 1: price(15) → expected 100
Test 2: price(17) → expected 100
Test 3: price(13) → expected 50 - 29.🔀 In this course’s code, which sign tests “is equal to”? (a) = (b) => (c) !== (d) ===
- 30.🔁 In for (let i = 0; i < 3; i++), which values does i take? (a) 0, 1, 2, 3 (b) 0, 1, 2 (c) 1, 2, 3 (d) 3
- 31.Which colour pair is easy to read? (a) red on green (b) light grey on white (c) yellow on white (d) white on black
-
32.👆 The user types Arjun 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, Arjun! (b) Arjun (c) Well done! (d) Well done, nameBox.text! -
33.👆 The user taps the button 3 times. What number does the label show now?
let likes = 0;
button.onTap = function () {
if (likes < 3) {
likes = likes + 1;
}
label.text = likes;
}; - 34.♿ Does this help everyone, or make the app harder to use: strong colour contrast? (a) makes it harder (b) helps everyone
- 35.Which of these app ideas solves a real problem? (a) a page of random dots (b) a lost-and-found board (c) a blank grey screen (d) a button with no action
-
36.🗒️ Version 1 of a quiz app must be ready in 15 days. How many days are left for extras after the must-haves?
show a question: 1 days
check the answer: 4 days
show the score: 5 days -
37.🧪 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(5) → expected Try again
Test 2: result(8) → expected Pass
Test 3: result(7) → expected Pass (a) Test 2 (b) Test 3 (c) Test 1 -
38.🧰 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(3) + fee(9)); - 39.🔍 Which is the odd one out? (a) the screen layout (b) the icon shapes (c) the theme colours (d) how many taps it takes
- 40.True or false: a finger hits Like is a text event. (a) True (b) False
Answer key
- Hi, Riya
- Welcome!
- True
- open the menu
- confetti effects
- False
- line 2
- 122
- easy to read
- ON
- a switch for dark mode
- 75
- helps everyone
- 6
- add money spent
- 2
- 3
- 110
- open the camera screen
- 5
- sends back a value
- No
- False
- True
- deny it
- open the app
- False
- 50
- ===
- 0, 1, 2
- white on black
- Well done, Arjun!
- 3
- helps everyone
- a lost-and-found board
- 5
- Test 3
- 40
- how many taps it takes
- False
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students