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 is the ACTUAL result of Test 1?
🚚 Rule: delivery is free (0) when the order is 700 or more; otherwise it costs 40.
function delivery(total) {
if (total >= 700) {
return 0;
}
return 40;
}
Test 1: delivery(850) → expected 0
Test 2: delivery(650) → expected 40
Test 3: delivery(800) → expected 0 - 2.🔢 In a photo-post flow, what comes right after “open the camera screen”? (a) write a caption (b) post the photo (c) take the photo (d) add a filter
-
3.🧪 How many of these test cases pass?
📝 Rule: a quiz is passed with 5 or more right answers.
function result(right) {
if (right >= 5) {
return "Pass";
}
return "Try again";
}
Test 1: result(3) → expected Try again
Test 2: result(5) → expected Pass
Test 3: result(6) → expected Pass - 4.🧪 A test case is an input together with its ___. (a) font size (b) app icon (c) screen colour (d) expected result
-
5.👆 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) OFF (b) ON - 6.🧰 In function tip(bill), what is bill? (a) a loop (b) a screen (c) a parameter (d) an event
-
7.🔘 Our rule: buttons are at least 48 px tall. Which button is too small?
Start button: 40 px tall
Save button: 72 px tall
Next button: 52 px tall
Back button: 64 px tall (a) Save (b) Back (c) Next (d) Start - 8.🔀 In this course’s code, which sign tests “is equal to”? (a) === (b) = (c) => (d) !==
-
9.🔘 Our rule: buttons are at least 48 px tall. How many of these buttons follow the rule?
Start button: 36 px tall
Help button: 48 px tall
Send button: 48 px tall - 10.Which of these app ideas solves no real problem? (a) a library due-date alert (b) a lost-and-found board (c) a page of random dots (d) a bill splitter
- 11.🔢 In a photo-post flow, which comes first: “post the photo” or “take the photo”? (a) post the photo (b) take the photo
- 12.📴 Which of these can often still work with no internet? (a) a new website (b) a video call (c) an installed app (d) an online search
- 13.🔀 When does the else part run? (a) never (b) when the test is false (c) when the test is true (d) always
- 14.👆 What kind of event is this: one second passes? (a) a load event (b) a tap event (c) a text event (d) a timer event
-
15.⚙️ What number does this app show?
let bill = 57; // typed by the user
let friends = 3; // typed by the user
let share = bill / friends;
show(share); - 16.🎯 Which app would help this user most: a student who keeps forgetting due dates? (a) a homework planner (b) a pocket-money tracker (c) a water reminder (d) a bus tracker
- 17.🔘 Is this good or poor button design: a big, easy tap area? (a) good design (b) poor design
- 18.Which of these is true of an app? (a) has a web address (b) needs no installing (c) opens in a web browser (d) is installed on a phone
- 19.True or false: a step counter is a game. (a) False (b) True
-
20.🔁 What number does this code show?
let scores = [20, 3, 17, 20, 2];
let total = 0;
for (let i = 0; i < scores.length; i++) {
total = total + scores[i];
}
show(total); -
21.📊 Survey: which problem bugs you most? Which problem should your app solve first?
losing water bottles: 4 votes
forgetting homework: 5 votes
forgetting birthdays: 6 votes (a) forgetting birthdays (b) forgetting homework (c) losing water bottles - 22.True or false: a water reminder is the best fit for a runner who forgets to sip water. (a) True (b) False
- 23.🗒️ A to-do app with no “add a task” feature is ___. (a) well planned (b) a nice extra (c) ready to release (d) missing a must-have
- 24.Which of these is true of a website? (a) opens from a link (b) is installed on a phone (c) updates from the store (d) has a home-screen icon
-
25.⚙️ Which line does the processing (works out the answer)?
line 1: let price = 170; // typed by the user
line 2: let off = 40; // typed by the user
line 3: let pay = price - off;
line 4: show(pay); (a) line 1 (b) line 2 (c) line 3 (d) line 4 -
26.🔀 What number does this shop app show?
let total = 470;
if (total > 500) {
total = total - 50;
}
show(total); -
27.🐞 Each comment says what its line SHOULD do. Which line has the bug?
line 1: let score = 42; // start at 40
line 2: score = score * 2; // double it
line 3: score = score * 2; // double it
line 4: show(score); // show it (a) line 1 (b) line 3 (c) line 2 - 28.True or false: tap to Save is data. (a) False (b) True
- 29.Which of these fits saving on the phone? (a) a class leaderboard (b) the sound on/off setting (c) chat messages to friends (d) a shared to-do list
-
30.⚙️ What number does this app show?
let bill = 90; // typed by the user
let friends = 5; // typed by the user
let share = bill / friends;
show(share); - 31.True or false: space between buttons is good button design. (a) True (b) False
-
32.🧪 What is the ACTUAL result of Test 2?
🎟️ 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(5) → expected 50
Test 2: price(8) → expected 100
Test 3: price(10) → expected 100 -
33.🔀 What number does this shop app show?
let total = 880;
if (total > 500) {
total = total - 50;
}
show(total); - 34.🔢 In a food-order flow, which comes first: “open the menu” or “pick a dish”? (a) pick a dish (b) open the menu
- 35.🗂️ What kind of app is a racing challenge? (a) a learning app (b) a tool app (c) a game (d) a health app
- 36.👥 A cricket club app has 110 players, 25 coaches and 235 fans as users. Which user group is the biggest? (a) coaches (b) players (c) fans
- 37.♿ Does this help everyone, or make the app harder to use: text that can grow? (a) helps everyone (b) makes it harder
-
38.📊 Survey: which problem bugs you most? Which problem should your app solve first?
forgetting birthdays: 3 votes
missing the bus: 4 votes
no quiet study place: 6 votes (a) forgetting birthdays (b) missing the bus (c) no quiet study place - 39.💾 Which works with no internet at all? (a) a cloud leaderboard (b) data saved on the phone (c) a shared chat (d) a cloud backup
- 40.🗒️ You are planning version 1 of a water reminder. Which feature is a MUST-HAVE? (a) set a reminder time (b) share your streak (c) custom alert sounds (d) water animations
Answer key
- 0
- take the photo
- 3
- expected result
- ON
- a parameter
- Start
- ===
- 2
- a page of random dots
- take the photo
- an installed app
- when the test is false
- a timer event
- 19
- a homework planner
- good design
- is installed on a phone
- False
- 62
- forgetting birthdays
- True
- missing a must-have
- opens from a link
- line 3
- 470
- line 1
- False
- the sound on/off setting
- 18
- True
- 50
- 830
- open the menu
- a game
- fans
- helps everyone
- no quiet study place
- data saved on the phone
- set a reminder time
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students