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 of these requests asks for too much? (a) map app → location (b) camera app → camera (c) voice notes → microphone (d) torch → contacts
-
2.💾 What number does this code show?
let friends = ["Zoya", "Meera"];
friends.push("Riya");
friends.push("Kabir");
show(friends.length); - 3.Which of these is a user need? (a) “Small text is hard” (b) a reminder alarm (c) a share button (d) a search bar
- 4.🔍 Which is the odd one out? (a) typing your age (b) a pop-up message (c) a buzz (vibration) (d) a result on screen
-
5.🔁 What is the LAST line this code shows?
let names = ["Riya", "Meera", "Arjun", "Kabir"];
for (let i = 0; i < names.length; i++) {
show("Hi, " + names[i]);
} (a) Hi, Kabir (b) Hi, Arjun (c) Hi, Riya (d) Hi, Meera - 6.🧪 What is the actual result of a test? (a) what we hope for (b) the app’s name (c) the test’s number (d) what the app really does
-
7.🧰 What number does this code show?
function points(stars) {
return stars * 10 + 5;
}
show(points(2) + points(0)); -
8.🔘 Our rule: buttons are at least 48 px tall. How many of these buttons follow the rule?
Help button: 56 px tall
Back button: 32 px tall
Send button: 36 px tall
Next button: 56 px tall - 9.👥 A school app has 240 students, 125 teachers and 180 parents as users. How many more students than teachers are there?
- 10.Which of these requests is fair? (a) quiz app → microphone (b) map app → location (c) torch → contacts (d) timer → your photos
-
11.👆 The user taps the button 4 times. What number does the label show now?
let lives = 5;
button.onTap = function () {
lives = lives + 2;
label.text = lives;
}; - 12.True or false: a buzz (vibration) is an output. (a) False (b) True
- 13.🎯 Is this a user need or a feature: a share button? (a) a user need (b) a feature
-
14.🔀 What number does this shop app show?
let total = 690;
if (total > 500) {
total = total - 50;
}
show(total); - 15.Which of these is a user need? (a) a search bar (b) “I forget my homework” (c) a reminder alarm (d) a share button
- 16.🔢 When you make an app, what comes right after “build the app”? (a) get an idea (b) release it (c) test the app (d) plan the screens
- 17.True or false: a water reminder is a game. (a) False (b) True
-
18.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
line 1: let points = 46; // start at 46
line 2: points = points - 2; // take away 2
line 3: points = points + 2; // double it
line 4: show(points); // show it - 19.Which of these makes the app harder to use? (a) labels on every icon (b) text that can grow (c) tiny tap areas (d) big touch targets
- 20.Which of these is a user need? (a) a dark mode switch (b) a share button (c) a search bar (d) “I keep missing the bus”
-
21.🧪 One test case fails. Which one?
🚚 Rule: delivery is free (0) when the order is 300 or more; otherwise it costs 40.
function delivery(total) {
if (total > 300) {
return 0;
}
return 40;
}
Test 1: delivery(350) → expected 0
Test 2: delivery(300) → expected 0
Test 3: delivery(200) → expected 40 (a) Test 2 (b) Test 1 (c) Test 3 - 22.True or false: a result on screen is processing. (a) False (b) True
- 23.🔢 In a food-order flow, which comes first: “pick a dish” or “check the cart”? (a) pick a dish (b) check the cart
- 24.True or false: a website has a home-screen icon. (a) False (b) True
- 25.Which of these is true of a website? (a) comes from an app store (b) opens in a web browser (c) updates from the store (d) has a home-screen icon
-
26.🔀 What does this battery rule show?
let battery = 79;
if (battery < 20) {
show("Low battery");
} else {
show("Battery OK");
} (a) Low battery (b) Battery OK -
27.🧪 How many of these test cases pass?
🎟️ Rule: a ticket costs 50 for children under 10, and 100 for everyone else.
function price(age) {
if (age <= 10) {
return 50;
}
return 100;
}
Test 1: price(7) → expected 50
Test 2: price(11) → expected 100
Test 3: price(10) → expected 100 - 28.True or false: a website has a web address. (a) False (b) True
- 29.💡 Does an app idea like a blank grey screen solve a real problem? (a) Yes (b) No
- 30.True or false: a final design shows where things go. (a) True (b) False
-
31.🧰 A museum app works out the entry fee. What number does this code show?
function fee(age) {
if (age < 5) {
return 0;
}
return 30;
}
show(fee(1) + fee(3)); -
32.🖼️ In this wireframe (top to bottom), what is right above the top bar?
[ filter buttons ]
[ list of items ]
[ search box ]
[ title text ]
[ top bar ] (a) filter buttons (b) title text (c) search box (d) list of items - 33.🗒️ You are planning version 1 of a quiz app. Which feature can WAIT for a later version? (a) show the score (b) show a question (c) confetti effects (d) check the answer
- 34.🐞 After fixing a bug you should ___. (a) test it again (b) delete the test (c) release at once (d) never test
- 35.Which of these makes the app harder to use? (a) colour as the only clue (b) labels on every icon (c) strong colour contrast (d) text that can grow
- 36.🔁 A loop over a list of 5 items runs its body how many times? (a) 5 (b) 1 (c) 6 (d) 4
- 37.🔢 When you make an app, what comes right after “test the app”? (a) get an idea (b) release it (c) plan the screens (d) build the app
-
38.🔁 What number does this code show?
let scores = [3, 11, 19, 9];
let best = 0;
for (let i = 0; i < scores.length; i++) {
if (scores[i] > best) {
best = scores[i];
}
}
show(best); - 39.Which colour pair is easy to read? (a) pale pink on white (b) dark blue on black (c) red on green (d) white on dark green
-
40.⚙️ Which line does the processing (works out the answer)?
line 1: let price = 30; // typed by the user
line 2: let qty = 6; // typed by the user
line 3: let total = price * qty;
line 4: show(total); (a) line 4 (b) line 2 (c) line 3 (d) line 1
Answer key
- torch → contacts
- 4
- “Small text is hard”
- typing your age
- Hi, Kabir
- what the app really does
- 30
- 2
- 115
- map app → location
- 13
- True
- a feature
- 640
- “I forget my homework”
- test the app
- False
- 88
- tiny tap areas
- “I keep missing the bus”
- Test 2
- False
- pick a dish
- False
- opens in a web browser
- Battery OK
- 2
- True
- No
- False
- 0
- title text
- confetti effects
- test it again
- colour as the only clue
- 5
- release it
- 19
- white on dark green
- line 3
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students