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 line does the processing (works out the answer)?
line 1: let price = 310; // 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 2 (b) line 3 (c) line 1 (d) line 4 - 2.🔍 Which is the odd one out? (a) add the buttons (b) write the code (c) spot a problem to solve (d) connect the data
-
3.🚀 Which of these versions is the OLDEST?
2.28.0, 3.14.2, 3.5.8, 3.12.1 (a) 3.14.2 (b) 3.5.8 (c) 3.12.1 (d) 2.28.0 - 4.💾 Where should the app save a shared to-do list: on the phone or in the cloud? (a) in the cloud (b) on the phone
- 5.🔀 A screen with no way forward or back is called a ___. (a) shortcut (b) tab bar (c) home screen (d) dead end
- 6.🔢 After an app is released, which comes FIRST? (a) read user reviews (b) release an update (c) list what to fix (d) fix and improve
- 7.True or false: a lost-and-found board solves no real problem. (a) False (b) True
-
8.🔀 What does this battery rule show?
let battery = 21;
if (battery < 20) {
show("Low battery");
} else {
show("Battery OK");
} (a) Low battery (b) Battery OK - 9.🧭 What does the back button usually do? (a) opens settings (b) closes all apps (c) goes to the last screen (d) deletes the page
- 10.True or false: a library due-date alert solves no real problem. (a) True (b) False
- 11.True or false: a page of random dots solves no real problem. (a) False (b) True
- 12.🔁 In for (let i = 0; i < 3; i++), which values does i take? (a) 3 (b) 1, 2, 3 (c) 0, 1, 2 (d) 0, 1, 2, 3
- 13.🗒️ What is a must-have feature? (a) a nice extra (b) one the app cannot skip (c) a sound effect (d) a colour theme
- 14.Which colour pair is hard to read? (a) black on pale grey (b) dark blue on white (c) dark blue on black (d) white on dark green
-
15.🔘 Our rule: buttons are at least 48 px tall. Which button is too small?
Save button: 52 px tall
Cancel button: 72 px tall
Back button: 72 px tall
Start button: 24 px tall (a) Save (b) Cancel (c) Start (d) Back -
16.🧰 What number does this code show?
function points(stars) {
return stars * 10 + 5;
}
show(points(1) + points(0)); -
17.🧰 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(2) + fee(12)); - 18.Which of these app ideas solves a real problem? (a) a medicine reminder (b) a button with no action (c) an app that just says hi (d) a page of random dots
- 19.Which of these is true of a final design? (a) uses plain grey boxes (b) has the real colours (c) has no real colours (d) is a quick sketch
-
20.⚙️ What number does this app show?
let bill = 138; // typed by the user
let friends = 2; // typed by the user
let share = bill / friends;
show(share); -
21.🔀 What does this sign-up rule show?
let age = 9;
if (age >= 13) {
show("Welcome!");
} else {
show("Ask a parent");
} (a) Welcome! (b) Ask a parent -
22.📊 Survey: which problem bugs you most? How many students voted in all?
missing the bus: 15 votes
losing water bottles: 24 votes
forgetting homework: 8 votes -
23.🧪 How many of these test cases pass?
📝 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(5) → expected Try again
Test 2: result(8) → expected Pass
Test 3: result(10) → expected Pass -
24.🐞 Each comment says what its line SHOULD do. Which line has the bug?
line 1: let stars = 48; // start at 45
line 2: stars = stars * 2; // double it
line 3: stars = stars * 2; // double it
line 4: stars = stars - 1; // take away 1
line 5: show(stars); // show it (a) line 2 (b) line 1 (c) line 3 (d) line 4 - 25.Which of these is true of a website? (a) has a home-screen icon (b) is installed on a phone (c) needs no installing (d) comes from an app store
-
26.👆 Two designs for the same task (each arrow is one tap). Which needs FEWER taps?
Design A: Home → Results → Cart
Design B: Home → Menu → Search → Results (a) Design B (b) Design A -
27.♿ Our rule: text is at least 16 px. How many texts on this screen are too small?
Title: 18 px
Label: 12 px
Caption: 12 px
Body text: 13 px
Footer: 12 px - 28.Which of these app ideas solves a real problem? (a) an app that just says hi (b) a blank grey screen (c) a page of random dots (d) a lost-and-found board
- 29.🗒️ You are planning version 1 of a water reminder. Which feature is a MUST-HAVE? (a) log a glass of water (b) share your streak (c) water animations (d) custom alert sounds
- 30.Which of these makes the app harder to use? (a) icons with no labels (b) labels on every icon (c) text that can grow (d) big touch targets
- 31.🧭 Which part of navigation sits at the bottom? (a) the back button (b) a menu button (c) a tab bar
-
32.📊 Survey: which problem bugs you most? Which problem should your app solve first?
losing water bottles: 13 votes
wasting pocket money: 19 votes
missing the bus: 4 votes (a) losing water bottles (b) missing the bus (c) wasting pocket money - 33.🧩 Which input is best for typing your name? (a) a picture (b) a slider (c) a switch (d) a text box
-
34.🔘 Our rule: buttons are at least 48 px tall. Which button is too small?
Cancel button: 52 px tall
Done button: 48 px tall
Send button: 36 px tall
Start button: 60 px tall (a) Start (b) Send (c) Done (d) Cancel - 35.True or false: the user taps Play is a timer event. (a) True (b) False
- 36.♿ A screen has 6 icon buttons. Only 2 of them have a text label for screen readers. How many still need a label?
- 37.🚀 Your app is at version 3.12.3. The next release adds a new feature. What is its version number? (a) 4.0.0 (b) 3.13.0 (c) 3.13.3 (d) 3.12.4
-
38.🧭 The app has tabs Home, Search, Profile. You start on Home, then:
1. open “Video”
2. tap the Search tab
3. open “Help page”
How many times must you tap Back to reach the main screen of this tab? -
39.🔀 What does this PIN rule show?
let pin = "913";
if (pin.length === 4) {
show("PIN saved");
} else {
show("Use 4 digits");
} (a) Use 4 digits (b) PIN saved - 40.True or false: a website opens in a web browser. (a) False (b) True
Answer key
- line 3
- spot a problem to solve
- 2.28.0
- in the cloud
- dead end
- read user reviews
- False
- Battery OK
- goes to the last screen
- False
- True
- 0, 1, 2
- one the app cannot skip
- dark blue on black
- Start
- 20
- 50
- a medicine reminder
- has the real colours
- 69
- Ask a parent
- 47
- 3
- line 1
- needs no installing
- Design A
- 4
- a lost-and-found board
- log a glass of water
- icons with no labels
- a tab bar
- wasting pocket money
- a text box
- Send
- False
- 4
- 3.13.0
- 1
- Use 4 digits
- True
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students