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 number does this code show?
function triple(n) {
return n * 3;
}
show(triple(19)); - 2.🧭 Why should every screen show where you are? (a) to use more battery (b) to hide the menu (c) so users do not get lost (d) to look busy
- 3.True or false: adding up a bill is processing. (a) False (b) True
-
4.🧰 What number does this code show?
function total(price, qty) {
return price * qty;
}
show(total(25, 5)); -
5.💾 What does this code show? (Positions start at 0.)
let notes = ["Maths", "Music", "Art"];
show(notes[1]); (a) Art (b) Music (c) Maths -
6.👆 The user taps the button 3 times. What number does the label show now?
let coins = 6;
button.onTap = function () {
coins = coins + 1;
label.text = coins;
}; - 7.🔢 In a food-order flow, which comes FIRST? (a) pay for the order (b) open the menu (c) check the cart (d) track the order
- 8.Which of these is a user need? (a) a search bar (b) “I keep missing the bus” (c) a share button (d) a reminder alarm
-
9.👆 The user taps the button 7 times. What number does the label show now?
let likes = 0;
button.onTap = function () {
if (likes < 5) {
likes = likes + 1;
}
label.text = likes;
}; -
10.👆 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, nameBox.text! (b) Well done, Riya! (c) Riya (d) Well done! - 11.True or false: notes to read offline fits saving on the phone. (a) True (b) False
- 12.💡 A good app idea starts with ___. (a) a cool logo (b) a problem to solve (c) a long name (d) many colours
-
13.🧰 A museum app works out the entry fee. What number does this code show?
function fee(age) {
if (age < 5) {
return 0;
}
return 60;
}
show(fee(12) + fee(7)); - 14.🗒️ You are planning version 1 of a water reminder. Which feature can WAIT for a later version? (a) set a reminder time (b) water animations (c) log a glass of water (d) see today’s total
-
15.🧭 The app has tabs Lessons, Quiz, Me. You start on Lessons, then:
1. open “Edit photo”
2. tap the Me tab
3. open “Map”
How many times must you tap Back to reach the main screen of this tab? - 16.💾 Where should the app save chat messages to friends: on the phone or in the cloud? (a) on the phone (b) in the cloud
-
17.🐞 This code has a bug. What number does it ACTUALLY show?
line 1: let score = 32; // start at 31
line 2: score = score * 2; // double it
line 3: score = score - 1; // take away 1
line 4: show(score); // show it - 18.👥 A clinic app has 260 patients, 160 doctors and 130 nurses as users. How many users does it have in all?
-
19.⚙️ What number does this app show?
let km = 4; // typed by the user
let metres = km * 1000;
show(metres); - 20.Which of these is true of a tab bar? (a) sits at the bottom (b) goes to the last screen (c) hides extra links (d) undoes one move
- 21.🔢 In a photo-post flow, which comes first: “open the camera screen” or “take the photo”? (a) take the photo (b) open the camera screen
-
22.🐞 This code has a bug. What number does it ACTUALLY show?
line 1: let lives = 37; // start at 37
line 2: lives = lives - 1; // take away 1
line 3: lives = lives * 2; // double it
line 4: lives = lives + 4; // add 2
line 5: show(lives); // show it -
23.👆 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) ON (b) OFF - 24.📱 Which one opens in a web browser: an app or a website? (a) an app (b) a website
-
25.👆 Two designs for the same task (each arrow is one tap). Which needs FEWER taps?
Design A: Home → Confirm → Results → Offers → Shop → Address → Menu
Design B: Home → Results → Pay → Search → Item → Address (a) Design A (b) Design B -
26.🔀 What number does this shop app show?
let total = 200;
if (total > 500) {
total = total - 50;
}
show(total); - 27.Which of these app ideas solves no real problem? (a) a library due-date alert (b) an app that just says hi (c) a medicine reminder (d) a free study-room finder
- 28.📅 An app team plans for 2 days, builds for 6 days, tests for 3 days and releases on 1 more day. How many more days does building take than testing?
- 29.True or false: a free study-room finder solves no real problem. (a) False (b) True
-
30.🔘 Our rule: buttons are at least 48 px tall. Which button is too small?
Back button: 24 px tall
Done button: 64 px tall
Save button: 64 px tall
Cancel button: 68 px tall (a) Done (b) Save (c) Back (d) Cancel - 31.🔢 In a photo-post flow, which comes FIRST? (a) take the photo (b) open the camera screen (c) add a filter (d) post the photo
-
32.🧩 How many inputs (text boxes, switches and sliders) does this screen have?
[title] Order Snacks
[text box] Name
[button] Save -
33.🧪 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(7) → expected 50
Test 2: price(18) → expected 100
Test 3: price(16) → expected 100 - 34.🔢 In a quiz-app flow, what comes right after “tap “Start quiz””? (a) see if it is right (b) pick an answer (c) see the final score (d) read a question
-
35.🔀 What does this battery rule show?
let battery = 58;
if (battery < 20) {
show("Low battery");
} else {
show("Battery OK");
} (a) Battery OK (b) Low battery -
36.🔁 What number does this code show?
let scores = [2, 5, 7];
let best = 0;
for (let i = 0; i < scores.length; i++) {
if (scores[i] > best) {
best = scores[i];
}
}
show(best); -
37.🧪 One test case fails. Which one?
🎟️ 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(12) → expected 50
Test 2: price(18) → expected 100
Test 3: price(14) → expected 100 (a) Test 1 (b) Test 2 (c) Test 3 - 38.Which of these is true of a wireframe? (a) looks like the real app (b) has the real colours (c) shows where things go (d) uses the final pictures
- 39.👥 A cricket club app has 25 players, 135 coaches and 35 fans as users. How many users does it have in all?
-
40.👆 Two designs for the same task (each arrow is one tap). Which needs FEWER taps?
Design A: Home → Shop → Cart → Item → Results
Design B: Home → Address → Offers (a) Design A (b) Design B
Answer key
- 57
- so users do not get lost
- True
- 125
- Music
- 9
- open the menu
- “I keep missing the bus”
- 5
- Well done, Riya!
- True
- a problem to solve
- 120
- water animations
- 1
- in the cloud
- 63
- 550
- 4000
- sits at the bottom
- open the camera screen
- 76
- OFF
- a website
- Design B
- 200
- an app that just says hi
- 3
- False
- Back
- open the camera screen
- 1
- 3
- read a question
- Battery OK
- 7
- Test 3
- shows where things go
- 195
- Design B
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students