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 app idea solves this problem: friends argue over who pays? (a) a medicine reminder (b) a study-room finder (c) a bill splitter (d) a homework planner
-
2.🐞 Each comment says what its line SHOULD do. Which line has the bug?
line 1: let score = 36; // start at 36
line 2: score = score * 3; // double it
line 3: score = score * 2; // double it
line 4: show(score); // show it (a) line 3 (b) line 2 (c) line 1 -
3.👆 The user taps the button 4 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 -
4.💾 What does this code show? (Positions start at 0.)
let notes = ["Maths", "Art", "Music", "Sports"];
show(notes[1]); (a) Art (b) Music (c) Maths (d) Sports - 5.🔢 After an app is released, what comes right after “fix and improve”? (a) list what to fix (b) test it again (c) release an update (d) read user reviews
- 6.🎨 Is this about UI or UX: the theme colours? (a) UX (b) UI
- 7.💡 A good app idea starts with ___. (a) many colours (b) a cool logo (c) a long name (d) a problem to solve
- 8.👥 A school app has 270 students, 110 teachers and 95 parents as users. How many users does it have in all?
- 9.💡 Which is a problem statement? (a) “Make it fast” (b) “Use blue buttons” (c) “Add a logo” (d) “Kids forget homework”
- 10.True or false: the icon shapes is about UI (the look). (a) False (b) True
-
11.🧪 What is the ACTUAL result of Test 3?
🚚 Rule: delivery is free (0) when the order is 400 or more; otherwise it costs 40.
function delivery(total) {
if (total >= 400) {
return 0;
}
return 40;
}
Test 1: delivery(400) → expected 0
Test 2: delivery(450) → expected 0
Test 3: delivery(300) → expected 40 - 12.💡 Which app idea solves this problem: pupils forget due dates? (a) a medicine reminder (b) a homework planner (c) a bill splitter (d) a study-room finder
- 13.💾 In most code, the first item of a list is at position ___. (a) 10 (b) 2 (c) 0 (d) 1
-
14.🧪 One test case fails. Which one?
📝 Rule: a quiz is passed with 6 or more right answers.
function result(right) {
if (right > 6) {
return "Pass";
}
return "Try again";
}
Test 1: result(8) → expected Pass
Test 2: result(6) → expected Pass
Test 3: result(5) → expected Try again (a) Test 1 (b) Test 2 (c) Test 3 -
15.🖼️ In this wireframe (top to bottom), what is right below the Add button?
[ Add button ]
[ Save button ]
[ big picture ]
[ title text ] (a) big picture (b) Save button (c) title text -
16.🔁 What number does this code show?
let runs = [25, 45, 94, 27];
let count = 0;
for (let i = 0; i < runs.length; i++) {
if (runs[i] >= 70) {
count = count + 1;
}
}
show(count); - 17.True or false: your high score is a screen. (a) False (b) True
-
18.👆 The user types Kabir 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) Kabir (c) Well done! (d) Well done, Kabir! - 19.🧩 Which input is best for choosing a volume level? (a) a text box (b) a switch (c) a title (d) a slider
- 20.Which of these is data? (a) your saved notes (b) the game-over page (c) the log-in page (d) a date picker
-
21.🖼️ In this wireframe (top to bottom), what is right below the list of items?
[ Add button ]
[ Save button ]
[ list of items ]
[ search box ]
[ big picture ]
[ top bar ] (a) top bar (b) Save button (c) search box (d) Add button -
22.🧰 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(10) + fee(5)); -
23.🐞 Each comment says what its line SHOULD do. Which line has the bug?
line 1: let coins = 53; // start at 50
line 2: coins = coins + 3; // add 3
line 3: coins = coins * 2; // double it
line 4: coins = coins - 2; // take away 2
line 5: show(coins); // show it (a) line 1 (b) line 4 (c) line 3 (d) line 2 -
24.🐞 Each comment says what its line SHOULD do. Which line has the bug?
line 1: let lives = 39; // start at 39
line 2: lives = lives * 3; // double it
line 3: lives = lives + 6; // add 6
line 4: show(lives); // show it (a) line 2 (b) line 3 (c) line 1 - 25.🧭 Which part of navigation undoes one move? (a) a menu button (b) a tab bar (c) the back button
- 26.🔢 In a photo-post flow, what comes right after “add a filter”? (a) open the camera screen (b) take the photo (c) post the photo (d) write a caption
-
27.🧰 What number does this code show?
function total(price, qty) {
return price * qty;
}
show(total(35, 2)); -
28.🔀 Which badge does this quiz app show?
let marks = 40;
if (marks >= 80) {
show("Gold");
} else if (marks >= 50) {
show("Silver");
} else {
show("Bronze");
} (a) Silver (b) Bronze (c) Gold - 29.🎯 Is this a user need or a feature: “What should I cook?”? (a) a feature (b) a user need
- 30.Which of these is about UX (the experience)? (a) how many taps it takes (b) the button colours (c) the font size (d) the icon shapes
-
31.🧪 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(300) → expected 0
Test 2: delivery(450) → expected 0
Test 3: delivery(250) → expected 40 (a) Test 3 (b) Test 2 (c) Test 1 - 32.🎯 Which app would help this user most: a grandparent with weak eyesight? (a) a water reminder (b) a bus tracker (c) a recipe finder (d) a big-text reader
- 33.Which of these is true of a final design? (a) has no real colours (b) uses plain grey boxes (c) shows where things go (d) uses the final pictures
-
34.🐞 Each comment says what its line SHOULD do. Which line has the bug?
line 1: let coins = 33; // start at 32
line 2: coins = coins - 4; // take away 4
line 3: coins = coins - 4; // take away 4
line 4: show(coins); // show it (a) line 1 (b) line 2 (c) line 3 - 35.🎯 Which app would help this user most: a pupil juggling five projects? (a) a recipe finder (b) a pocket-money tracker (c) a big-text reader (d) a homework planner
-
36.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
line 1: let lives = 51; // start at 50
line 2: lives = lives + 2; // add 2
line 3: lives = lives + 3; // add 3
line 4: lives = lives - 1; // take away 1
line 5: show(lives); // show it -
37.⚙️ What number does this app show?
let price = 360; // typed by the user
let off = 10; // typed by the user
let pay = price - off;
show(pay); - 38.True or false: a water reminder is the best fit for a gamer who forgets to drink. (a) False (b) True
- 39.Which of these is true of a final design? (a) uses plain grey boxes (b) is a quick sketch (c) looks like the real app (d) shows where things go
- 40.🔐 A torch app asks for your contacts. What should you do? (a) post them online (b) allow it (c) deny it (d) share them all
Answer key
- a bill splitter
- line 2
- OFF
- Art
- test it again
- UI
- a problem to solve
- 475
- “Kids forget homework”
- True
- 40
- a homework planner
- 0
- Test 2
- Save button
- 1
- False
- Well done, Kabir!
- a slider
- your saved notes
- search box
- 60
- line 1
- line 2
- the back button
- write a caption
- 70
- Bronze
- a user need
- how many taps it takes
- Test 1
- a big-text reader
- uses the final pictures
- line 1
- a homework planner
- 54
- 350
- True
- looks like the real app
- deny it
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students