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.✏️ Do wireframes usually show the final colours? (a) No (b) Yes
-
2.🐞 Each comment says what its line SHOULD do. Which line has the bug?
line 1: let coins = 30; // start at 30
line 2: coins = coins * 2; // double it
line 3: coins = coins - 2; // take away 2
line 4: coins = coins + 4; // take away 4
line 5: show(coins); // show it (a) line 2 (b) line 3 (c) line 1 (d) line 4 - 3.🔢 When you make an app, which comes first: “test the app” or “plan the screens”? (a) test the app (b) plan the screens
-
4.⚙️ What number does this app show?
let km = 7; // typed by the user
let metres = km * 1000;
show(metres); -
5.🔀 What does this PIN rule show?
let pin = "42033";
if (pin.length === 4) {
show("PIN saved");
} else {
show("Use 4 digits");
} (a) Use 4 digits (b) PIN saved - 6.Which of these fits saving on the phone? (a) notes to read offline (b) photos on two devices (c) a shared to-do list (d) chat messages to friends
- 7.🗒️ You are planning version 1 of a pocket-money tracker. Which feature is a MUST-HAVE? (a) export to a file (b) add money received (c) savings stickers (d) pie-chart colours
-
8.🧰 What number does this code show?
function total(price, qty) {
return price * qty;
}
show(total(85, 5)); - 9.🔍 Which is the odd one out? (a) checking a password (b) adding up a bill (c) speaking a command (d) working out a tip
- 10.True or false: a wireframe is a quick sketch. (a) True (b) False
-
11.🔀 What number does this shop app show?
let total = 450;
if (total > 500) {
total = total - 50;
}
show(total); - 12.🧭 Which part of navigation shows 3 to 5 icons? (a) the back button (b) a menu button (c) a tab bar
- 13.🔁 In for (let i = 0; i < 3; i++), which values does i take? (a) 0, 1, 2 (b) 1, 2, 3 (c) 0, 1, 2, 3 (d) 3
- 14.🔘 Is this good or poor button design: a clear word like Save? (a) poor design (b) good design
- 15.True or false: a draft you are typing fits saving in the cloud. (a) True (b) False
-
16.💾 What number does this code show?
let songs = ["Kites", "Stars", "Sunrise"];
songs.push("Rain");
songs.push("Ocean");
show(songs.length); -
17.📊 Survey: which problem bugs you most? How many more votes did “wasting pocket money” get than “forgetting homework”?
forgetting homework: 7 votes
wasting pocket money: 21 votes
forgetting birthdays: 3 votes -
18.🧪 One test case fails. Which one?
🎟️ Rule: a ticket costs 50 for children under 12, and 100 for everyone else.
function price(age) {
if (age <= 12) {
return 50;
}
return 100;
}
Test 1: price(12) → expected 100
Test 2: price(14) → expected 100
Test 3: price(11) → expected 50 (a) Test 1 (b) Test 2 (c) Test 3 - 19.🧩 In an app, what is tap to Save? (a) an input (b) a screen (c) a button (d) data
- 20.💾 Data saved only on the phone is lost when ___. (a) the app is closed (b) you send a message (c) the screen turns off (d) the phone is lost
- 21.🔢 When you make an app, which comes LAST? (a) release it (b) plan the screens (c) build the app (d) test the app
- 22.🧪 A test case is an input together with its ___. (a) app icon (b) font size (c) expected result (d) screen colour
- 23.Which colour pair is easy to read? (a) black on yellow (b) pale pink on white (c) light grey on white (d) red on green
- 24.True or false: a website opens from a link. (a) False (b) True
- 25.Which of these is true of a website? (a) has a home-screen icon (b) is installed on a phone (c) opens in a web browser (d) comes from an app store
- 26.👥 A library app has 255 readers, 140 librarians and 150 volunteers as users. Which user group is the biggest? (a) librarians (b) readers (c) volunteers
- 27.True or false: a big, easy tap area is good button design. (a) False (b) True
- 28.🔀 What does >= mean? (a) less than (b) not equal (c) greater than or equal (d) smaller or equal
-
29.🔀 Which badge does this quiz app show?
let marks = 20;
if (marks >= 80) {
show("Gold");
} else if (marks >= 50) {
show("Silver");
} else {
show("Bronze");
} (a) Silver (b) Gold (c) Bronze - 30.Which colour pair is hard to read? (a) white on black (b) black on yellow (c) pale pink on white (d) dark blue on white
- 31.Which of these is true of the back button? (a) shows 3 to 5 icons (b) goes to the last screen (c) sits at the bottom (d) switches main sections
- 32.📅 An app team plans for 4 days, builds for 8 days, tests for 1 days and releases on 1 more day. How many more days does building take than testing?
- 33.🔍 Which is the odd one out? (a) a cricket run chase (b) a sleep tracker (c) a step counter (d) a water reminder
- 34.💾 Where should the app save chat messages to friends: on the phone or in the cloud? (a) on the phone (b) in the cloud
- 35.🎯 Is this a user need or a feature: “Small text is hard”? (a) a user need (b) a feature
- 36.Which of these is about UX (the experience)? (a) the theme colours (b) the font size (c) the button colours (d) whether users get lost
-
37.👆 The user taps the button 6 times. What number does the label show now?
let likes = 0;
button.onTap = function () {
if (likes < 4) {
likes = likes + 1;
}
label.text = likes;
}; -
38.🧪 What is the ACTUAL result of Test 3?
🚚 Rule: delivery is free (0) when the order is 800 or more; otherwise it costs 40.
function delivery(total) {
if (total >= 800) {
return 0;
}
return 40;
}
Test 1: delivery(1050) → expected 0
Test 2: delivery(800) → expected 0
Test 3: delivery(600) → expected 40 -
39.🧰 A museum app works out the entry fee. What number does this code show?
function fee(age) {
if (age < 5) {
return 0;
}
return 40;
}
show(fee(8) + fee(3)); -
40.🧰 A museum app works out the entry fee. What number does this code show?
function fee(age) {
if (age < 5) {
return 0;
}
return 50;
}
show(fee(12) + fee(2));
Answer key
- No
- line 4
- plan the screens
- 7000
- Use 4 digits
- notes to read offline
- add money received
- 425
- speaking a command
- True
- 450
- a tab bar
- 0, 1, 2
- good design
- False
- 5
- 14
- Test 1
- a button
- the phone is lost
- release it
- expected result
- black on yellow
- True
- opens in a web browser
- readers
- True
- greater than or equal
- Bronze
- pale pink on white
- goes to the last screen
- 7
- a cricket run chase
- in the cloud
- a user need
- whether users get lost
- 4
- 40
- 40
- 50
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students