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.🔘 Our rule: buttons are at least 48 px tall. Which button is too small?
Next button: 72 px tall
Start button: 52 px tall
Help button: 72 px tall
Cancel button: 36 px tall (a) Start (b) Help (c) Next (d) Cancel -
2.👆 The user taps the button 5 times. What number does the label show now?
let likes = 0;
button.onTap = function () {
if (likes < 5) {
likes = likes + 1;
}
label.text = likes;
}; - 3.True or false: a tiny 20 px button is poor button design. (a) True (b) False
-
4.🔀 Which badge does this quiz app show?
let marks = 90;
if (marks >= 80) {
show("Gold");
} else if (marks >= 50) {
show("Silver");
} else {
show("Bronze");
} (a) Bronze (b) Gold (c) Silver - 5.🛠️ At which stage do you write the store text? (a) the build stage (b) the idea stage (c) the release stage (d) the test stage
-
6.🧩 How many buttons does this app screen have?
[title] Order Snacks
[button] Done
[button] Next
[switch] Dark mode
[slider] Volume
[text box] Name
[text box] Age -
7.⚙️ Which line does the processing (works out the answer)?
line 1: let price = 45; // typed by the user
line 2: let qty = 5; // typed by the user
line 3: let total = price * qty;
line 4: show(total); (a) line 4 (b) line 3 (c) line 1 (d) line 2 -
8.⚙️ What number does this app show?
let km = 8; // typed by the user
let metres = km * 1000;
show(metres); - 9.🗒️ A to-do app with no “add a task” feature is ___. (a) a nice extra (b) missing a must-have (c) ready to release (d) well planned
-
10.🧰 What number does this code show?
function points(stars) {
return stars * 10 + 5;
}
show(points(3) + points(3)); -
11.🔀 What does this sign-up rule show?
let age = 14;
if (age >= 13) {
show("Welcome!");
} else {
show("Ask a parent");
} (a) Welcome! (b) Ask a parent -
12.🔁 What number does this code show?
let runs = [4, 20, 17];
let best = 0;
for (let i = 0; i < runs.length; i++) {
if (runs[i] > best) {
best = runs[i];
}
}
show(best); - 13.💾 In most code, the first item of a list is at position ___. (a) 0 (b) 10 (c) 1 (d) 2
- 14.🔘 Our rule: buttons are at least 48 px tall. The Back button is 20 px tall. How many px taller must it be?
- 15.🧭 Tapping a tab usually takes you to ___. (a) the last app used (b) the phone settings (c) that tab’s main screen (d) a random page
-
16.🔀 Which badge does this quiz app show?
let marks = 26;
if (marks >= 80) {
show("Gold");
} else if (marks >= 50) {
show("Silver");
} else {
show("Bronze");
} (a) Bronze (b) Silver (c) Gold - 17.🔀 In a good flow, each screen should lead to ___. (a) a dead end (b) the same screen (c) a random page (d) a clear next step
- 18.🔍 Which is the odd one out? (a) a sleep tracker (b) a water reminder (c) a calculator (d) a step counter
-
19.👆 The user types Zoya in nameBox and taps the button 1 time. What does the label show?
button.onTap = function () {
label.text = "Well done, " + nameBox.text + "!";
}; (a) Zoya (b) Well done! (c) Well done, nameBox.text! (d) Well done, Zoya! - 20.👆 Code that runs when an event happens is called a ___. (a) headline (b) hashtag (c) header (d) handler
- 21.🔍 Which is the odd one out? (a) checking a password (b) speaking a command (c) working out a tip (d) sorting the scores
-
22.♿ Our rule: text is at least 16 px. How many texts on this screen are too small?
Caption: 12 px
Menu: 14 px
Label: 15 px
Body text: 11 px - 23.🗒️ The first small, working version of an app is often called an ___. (a) URL (b) CPU (c) FAQ (d) MVP
- 24.👥 A library app has 275 readers, 105 librarians and 265 volunteers as users. Which user group is the biggest? (a) librarians (b) volunteers (c) readers
- 25.🗒️ You are planning version 1 of a homework planner. Which feature can WAIT for a later version? (a) pick a theme colour (b) add a homework task (c) see tasks by day (d) set a due date
-
26.🧰 What number does this code show?
function double(n) {
return n * 2;
}
show(double(21)); -
27.🔀 What does this sign-up rule show?
let age = 8;
if (age >= 13) {
show("Welcome!");
} else {
show("Ask a parent");
} (a) Welcome! (b) Ask a parent -
28.🔀 What does this PIN rule show?
let pin = "95654";
if (pin.length === 4) {
show("PIN saved");
} else {
show("Use 4 digits");
} (a) PIN saved (b) Use 4 digits - 29.👆 What kind of event is this: the screen first opens? (a) a text event (b) a tap event (c) a timer event (d) a load event
- 30.Which of these is true of a tab bar? (a) undoes one move (b) goes to the last screen (c) switches main sections (d) opens a list of pages
-
31.💾 What number does this code show?
let stars = 8;
stars = stars - 1;
stars = stars + 2;
show(stars); - 32.🔢 In a sign-up flow, what comes right after “type name and email”? (a) see the home screen (b) tap “Sign up” (c) enter the code sent (d) make a password
-
33.📊 Survey: which problem bugs you most? Which problem should your app solve first?
forgetting birthdays: 3 votes
losing water bottles: 6 votes
missing the bus: 7 votes (a) forgetting birthdays (b) losing water bottles (c) missing the bus - 34.True or false: working out a tip is an input. (a) True (b) False
-
35.⚙️ Which line does the processing (works out the answer)?
line 1: let bill = 76; // typed by the user
line 2: let friends = 2; // typed by the user
line 3: let share = bill / friends;
line 4: show(share); (a) line 1 (b) line 2 (c) line 4 (d) line 3 - 36.👥 A school app has 190 students, 260 teachers and 115 parents as users. How many users does it have in all?
-
37.🐞 Each comment says what its line SHOULD do. Which line has the bug?
line 1: let score = 50; // start at 50
line 2: score = score + 2; // double it
line 3: score = score * 2; // double it
line 4: show(score); // show it (a) line 2 (b) line 3 (c) line 1 -
38.🔁 What number does this code show?
let marks = [6, 8, 10, 16, 6];
let total = 0;
for (let i = 0; i < marks.length; i++) {
total = total + marks[i];
}
show(total); -
39.👆 Two designs for the same task (each arrow is one tap). How many taps does the shorter design save?
Design A: Home → Results → Pens → Pay → Menu → Search → Confirm
Design B: Home → Confirm → Results → Shop → Size → Address - 40.True or false: “icons with no labels” makes the app harder to use. (a) False (b) True
Answer key
- Cancel
- 5
- True
- Gold
- the release stage
- 2
- line 3
- 8000
- missing a must-have
- 70
- Welcome!
- 20
- 0
- 28
- that tab’s main screen
- Bronze
- a clear next step
- a calculator
- Well done, Zoya!
- handler
- speaking a command
- 4
- MVP
- readers
- pick a theme colour
- 42
- Ask a parent
- Use 4 digits
- a load event
- switches main sections
- 9
- make a password
- missing the bus
- False
- line 3
- 565
- line 2
- 46
- 1
- True
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students