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 is the odd one out? (a) checking a password (b) a result on screen (c) a pop-up message (d) a beep sound
-
2.🐞 This code has a bug. What number does it ACTUALLY show?
line 1: let coins = 40; // start at 40
line 2: coins = coins + 5; // add 5
line 3: coins = coins * 2; // double it
line 4: coins = coins + 2; // double it
line 5: show(coins); // show it - 3.Which of these is true of an app? (a) opens in a web browser (b) needs no installing (c) updates from the store (d) has a web address
- 4.🚀 Which version is newer: 4.9.5 or 4.9.10? (a) 4.9.5 (b) 4.9.10
-
5.🧪 How many of these test cases pass?
📝 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(9) → expected Pass
Test 2: result(8) → expected Pass
Test 3: result(6) → expected Try again -
6.👆 The user taps the button 6 times. What number does the label show now?
let lives = 5;
button.onTap = function () {
lives = lives + 1;
label.text = lives;
}; -
7.🧪 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(10) → expected 50
Test 2: price(14) → expected 100
Test 3: price(18) → expected 100 - 8.🔍 Which is the odd one out? (a) a water reminder (b) a puzzle with levels (c) a cricket run chase (d) a racing challenge
- 9.True or false: a website is installed on a phone. (a) True (b) False
- 10.🔢 After an app is released, what comes right after “read user reviews”? (a) fix and improve (b) list what to fix (c) test it again (d) release an update
- 11.True or false: the sound on/off setting fits saving on the phone. (a) False (b) True
-
12.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
line 1: let stars = 39; // start at 38
line 2: stars = stars + 6; // add 6
line 3: stars = stars - 2; // take away 2
line 4: show(stars); // show it - 13.♿ Does this help everyone, or make the app harder to use: fast-flashing lights? (a) helps everyone (b) makes it harder
-
14.🔁 What number does this code show?
let scores = [1, 14, 12, 1];
let total = 0;
for (let i = 0; i < scores.length; i++) {
total = total + scores[i];
}
show(total); - 15.🔍 Which is the odd one out? (a) spot a problem to solve (b) list what users need (c) let friends try it (d) talk to possible users
-
16.🧩 Which of these is a button on this screen?
[title] Sign Up
[text box] City
[button] Help
[text box] Name
[button] Save
[text box] Email (a) Email (b) City (c) Name (d) Save - 17.💾 Where should the app save a draft you are typing: on the phone or in the cloud? (a) in the cloud (b) on the phone
-
18.💾 What does this code show? (Positions start at 0.)
let friends = ["Aman", "Zoya", "Meera", "Arjun"];
show(friends[3]); (a) Meera (b) Zoya (c) Aman (d) Arjun - 19.🗒️ When should nice-to-have features be built? (a) after the must-haves (b) before anything (c) never (d) on day one
- 20.🔢 In a food-order flow, which comes FIRST? (a) add it to the cart (b) check the cart (c) track the order (d) open the menu
- 21.True or false: a flashcard trainer is a game. (a) False (b) True
-
22.💾 pop() takes off the last item. What does this code show?
let notes = ["Hindi", "Art", "Music", "Science", "Sports"];
notes.pop();
show(notes[notes.length - 1]); (a) Art (b) Science (c) Music (d) Hindi -
23.🔀 What does this PIN rule show?
let pin = "46401";
if (pin.length === 4) {
show("PIN saved");
} else {
show("Use 4 digits");
} (a) Use 4 digits (b) PIN saved -
24.🐞 This code has a bug. What number does it ACTUALLY show?
line 1: let stars = 45; // start at 45
line 2: stars = stars + 2; // double it
line 3: stars = stars * 2; // double it
line 4: show(stars); // show it - 25.🔢 In a quiz-app flow, which comes FIRST? (a) tap “Start quiz” (b) read a question (c) pick an answer (d) see the final score
-
26.🔁 What number does this code show?
let steps = [20, 14, 15, 16];
let total = 0;
for (let i = 0; i < steps.length; i++) {
total = total + steps[i];
}
show(total); - 27.🗒️ The first small, working version of an app is often called an ___. (a) FAQ (b) CPU (c) MVP (d) URL
- 28.🧪 A test fails when ___. (a) the font is big (b) actual is not expected (c) both are the same (d) the app is new
- 29.🔐 Is this permission request fair or too much: map app → location? (a) fair (b) too much
- 30.🎨 Is this about UI or UX: the screen layout? (a) UI (b) UX
-
31.⚙️ What number does this app show?
let price = 85; // typed by the user
let qty = 2; // typed by the user
let total = price * qty;
show(total); -
32.👆 The user taps the button 3 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) ON (b) OFF -
33.🗒️ 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: 2 days
see tasks by day: 2 days -
34.🧪 How many of these test cases pass?
🚚 Rule: delivery is free (0) when the order is 600 or more; otherwise it costs 40.
function delivery(total) {
if (total >= 600) {
return 0;
}
return 40;
}
Test 1: delivery(750) → expected 0
Test 2: delivery(400) → expected 40
Test 3: delivery(800) → expected 0 -
35.🧰 What number does this code show?
function points(stars) {
return stars * 10 + 5;
}
show(points(3) + points(0)); - 36.True or false: you let friends try it at the idea stage. (a) False (b) True
-
37.👆 The user taps the button 4 times. What number does the label show now?
let points = 0;
button.onTap = function () {
points = points + 2;
label.text = points;
}; -
38.🗒️ Version 1 of a water reminder must be ready in 12 days. How many days are left for extras after the must-haves?
set a reminder time: 1 days
log a glass of water: 4 days
see today’s total: 3 days - 39.🧪 Who else should try an app before release? (a) only the coder (b) nobody (c) the app icon (d) real users
-
40.🔀 What number does this shop app show?
let total = 380;
if (total > 500) {
total = total - 50;
}
show(total);
Answer key
- checking a password
- 92
- updates from the store
- 4.9.10
- 3
- 11
- 100
- a water reminder
- False
- list what to fix
- True
- 42
- makes it harder
- 28
- let friends try it
- Save
- on the phone
- Arjun
- after the must-haves
- open the menu
- False
- Science
- Use 4 digits
- 94
- tap “Start quiz”
- 65
- MVP
- actual is not expected
- fair
- UI
- 170
- ON
- 4
- 3
- 40
- False
- 8
- 4
- real users
- 380
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students