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 shop app show?
let total = 550;
if (total > 500) {
total = total - 50;
}
show(total); - 2.🧩 In an app, what is the game-over page? (a) data (b) an input (c) a screen (d) a button
-
3.🧪 What is the ACTUAL result of Test 1?
🎟️ 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(10) → expected 100
Test 2: price(15) → expected 100
Test 3: price(8) → expected 50 - 4.🗒️ You are planning version 1 of a pocket-money tracker. Which feature is a MUST-HAVE? (a) export to a file (b) savings stickers (c) pie-chart colours (d) show the balance
- 5.True or false: a blank grey screen solves no real problem. (a) True (b) False
- 6.♿ A screen has 5 icon buttons. Only 2 of them have a text label for screen readers. How many still need a label?
- 7.🧭 Tapping a tab usually takes you to ___. (a) that tab’s main screen (b) a random page (c) the last app used (d) the phone settings
- 8.🐞 After fixing a bug you should ___. (a) release at once (b) never test (c) delete the test (d) test it again
-
9.👆 Two designs for the same task (each arrow is one tap). How many taps does Design A need?
Design A: Home → Pens → Pay → Item → Search → Cart
Design B: Home → Results → Confirm -
10.🧰 What number does this code show?
function triple(n) {
return n * 3;
}
show(triple(4)); - 11.🧭 Which part of navigation opens a list of pages? (a) the back button (b) a menu button (c) a tab bar
- 12.True or false: a step counter is a health app. (a) False (b) True
- 13.♿ Does this help everyone, or make the app harder to use: sudden loud sounds? (a) makes it harder (b) helps everyone
-
14.🧰 What does this code show?
function greet(name) {
return "Hello, " + name + "!";
}
show(greet("Arjun")); (a) Hello, name! (b) greet (c) Arjun (d) Hello, Arjun! -
15.📊 Survey: which problem bugs you most? How many students voted in all?
missing the bus: 14 votes
no quiet study place: 9 votes
wasting pocket money: 13 votes - 16.🗒️ When should nice-to-have features be built? (a) before anything (b) after the must-haves (c) never (d) on day one
-
17.👆 The user types Kabir in nameBox and taps the button 1 time. What does the label show?
button.onTap = function () {
label.text = "Hi, " + nameBox.text + "!";
}; (a) Hi, nameBox.text! (b) Hi! (c) Kabir (d) Hi, Kabir! -
18.🐞 This code has a bug. What number does it ACTUALLY show?
line 1: let stars = 44; // start at 41
line 2: stars = stars - 3; // take away 3
line 3: stars = stars * 2; // double it
line 4: stars = stars - 3; // take away 3
line 5: show(stars); // show it -
19.🧪 How many of these test cases pass?
🎟️ Rule: a ticket costs 50 for children under 8, and 100 for everyone else.
function price(age) {
if (age < 8) {
return 50;
}
return 100;
}
Test 1: price(14) → expected 100
Test 2: price(4) → expected 50
Test 3: price(12) → expected 100 - 20.🗒️ Why keep version 1 small? (a) to learn from users soon (b) to confuse users (c) to look bigger (d) to use up storage
- 21.📲 What happens when you tap an app’s icon? (a) the app is deleted (b) the phone charges (c) the app opens (d) the sound turns off
-
22.🔁 What number does this code show?
let marks = [31, 68, 46, 88];
let count = 0;
for (let i = 0; i < marks.length; i++) {
if (marks[i] >= 40) {
count = count + 1;
}
}
show(count); -
23.🧪 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(9) → expected Pass
Test 2: result(8) → expected Pass
Test 3: result(6) → expected Try again (a) Test 2 (b) Test 1 (c) Test 3 -
24.🧪 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 3 (b) Test 1 (c) Test 2 - 25.🔢 After an app is released, which comes LAST? (a) read user reviews (b) test it again (c) fix and improve (d) release an update
-
26.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
line 1: let lives = 37; // start at 37
line 2: lives = lives + 3; // add 3
line 3: lives = lives * 2; // double it
line 4: lives = lives - 2; // add 2
line 5: show(lives); // show it - 27.Which of these requests asks for too much? (a) calling app → contacts (b) camera app → camera (c) quiz app → microphone (d) voice notes → microphone
-
28.🔁 What is the LAST line this code shows?
let names = ["Zoya", "Arjun", "Riya", "Aman", "Meera"];
for (let i = 0; i < names.length; i++) {
show("Hi, " + names[i]);
} (a) Hi, Arjun (b) Hi, Riya (c) Hi, Meera (d) Hi, Zoya - 29.Which of these is about UI (the look)? (a) whether users get lost (b) how easy sign-up is (c) how fast a task is done (d) the theme colours
- 30.🔢 When you make an app, which comes first: “plan the screens” or “build the app”? (a) plan the screens (b) build the app
- 31.🚀 Which version is newer: 4.3.10 or 4.3.3? (a) 4.3.3 (b) 4.3.10
-
32.🗒️ Version 1 of a pocket-money tracker must be ready in 4 days. How many days are left for extras after the must-haves?
add money received: 1 days
add money spent: 1 days
show the balance: 2 days - 33.True or false: space between buttons is good button design. (a) False (b) True
-
34.♿ Our rule: text is at least 16 px. Which text on this screen is too small?
Footer: 18 px
Hint: 21 px
Menu: 12 px (a) Menu (b) Footer (c) Hint -
35.🧰 What number does this code show?
function points(stars) {
return stars * 10 + 5;
}
show(points(2) + points(3)); -
36.📊 Survey: which problem bugs you most? Which problem should your app solve first?
forgetting homework: 16 votes
missing the bus: 20 votes
no quiet study place: 15 votes (a) missing the bus (b) forgetting homework (c) no quiet study place - 37.🚀 In version 2.5.1, which number is the major version? (a) 251 (b) 2 (c) 1 (d) 5
-
38.🧭 The app has tabs Home, Search, Profile. You start on Home, then:
1. open “Edit photo”
2. tap Back
3. tap the Profile tab
4. open “Badges”
Which screen are you on now? (a) Edit photo (b) Badges (c) Search (d) Home - 39.🧰 In function tip(bill), what is bill? (a) a loop (b) a parameter (c) an event (d) a screen
- 40.🔢 In a photo-post flow, which comes FIRST? (a) write a caption (b) post the photo (c) open the camera screen (d) add a filter
Answer key
- 500
- a screen
- 100
- show the balance
- True
- 3
- that tab’s main screen
- test it again
- 5
- 12
- a menu button
- True
- makes it harder
- Hello, Arjun!
- 36
- after the must-haves
- Hi, Kabir!
- 79
- 3
- to learn from users soon
- the app opens
- 3
- Test 2
- Test 3
- release an update
- 82
- quiz app → microphone
- Hi, Meera
- the theme colours
- plan the screens
- 4.3.10
- 0
- True
- Menu
- 60
- missing the bus
- 2
- Badges
- a parameter
- open the camera screen
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students