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 one has a home-screen icon: an app or a website? (a) a website (b) an app
- 2.🐞 After fixing a bug you should ___. (a) test it again (b) never test (c) delete the test (d) release at once
- 3.🗒️ Why keep version 1 small? (a) to use up storage (b) to learn from users soon (c) to look bigger (d) to confuse users
- 4.🔍 Which is the odd one out? (a) a water reminder (b) a sleep tracker (c) a step counter (d) a times-table quiz
-
5.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
line 1: let lives = 35; // start at 34
line 2: lives = lives + 6; // add 6
line 3: lives = lives * 2; // double it
line 4: lives = lives + 2; // add 2
line 5: show(lives); // show it - 6.🗒️ You are planning version 1 of a pocket-money tracker. Which feature can WAIT for a later version? (a) savings stickers (b) add money received (c) add money spent (d) show the balance
- 7.Which of these requests asks for too much? (a) voice notes → microphone (b) map app → location (c) camera app → camera (d) quiz app → microphone
-
8.🔀 What number does this shop app show?
let total = 840;
if (total > 500) {
total = total - 50;
}
show(total); - 9.♿ A screen has 11 icon buttons. Only 7 of them have a text label for screen readers. How many still need a label?
- 10.🔍 Which is the odd one out? (a) adding up a bill (b) sorting the scores (c) checking a password (d) a pop-up message
- 11.True or false: you share the download link at the release stage. (a) True (b) False
- 12.💾 Where should the app save the sound on/off setting: on the phone or in the cloud? (a) in the cloud (b) on the phone
- 13.True or false: a final design has no real colours. (a) True (b) False
- 14.🔍 Which is the odd one out? (a) put it on an app store (b) share the download link (c) connect the data (d) write the store text
-
15.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
line 1: let score = 39; // start at 39
line 2: score = score - 2; // add 2
line 3: score = score - 2; // take away 2
line 4: show(score); // show it -
16.🐞 This code has a bug. What number does it ACTUALLY show?
line 1: let score = 43; // start at 43
line 2: score = score + 4; // add 4
line 3: score = score - 5; // take away 3
line 4: show(score); // show it - 17.True or false: a wireframe uses plain grey boxes. (a) False (b) True
- 18.🔐 Which permission does a bus tracker really need? (a) location (b) the camera (c) contacts (d) the microphone
-
19.👆 The user types Riya in nameBox and taps the button 1 time. What does the label show?
button.onTap = function () {
label.text = "Welcome, " + nameBox.text + "!";
}; (a) Welcome, nameBox.text! (b) Welcome! (c) Welcome, Riya! (d) Riya - 20.🔍 Which is the odd one out? (a) the button colours (b) the theme colours (c) how fast a task is done (d) the icon shapes
-
21.👆 The user taps the button 5 times. What number does the label show now?
let likes = 0;
button.onTap = function () {
if (likes < 3) {
likes = likes + 1;
}
label.text = likes;
}; -
22.🧪 What is the ACTUAL result of Test 2?
🚚 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(500) → expected 40
Test 2: delivery(900) → expected 0
Test 3: delivery(800) → expected 0 - 23.True or false: a party-invite app for friends needs the camera. (a) True (b) False
- 24.🧭 Which part of navigation sits at the bottom? (a) a menu button (b) a tab bar (c) the back button
- 25.🔐 Which permission does a barcode scanner really need? (a) contacts (b) location (c) the microphone (d) the camera
- 26.Which of these is true of an app? (a) has a web address (b) has a home-screen icon (c) opens in a web browser (d) needs no installing
- 27.♿ Why add captions to videos? (a) to hide the sound (b) so anyone can follow (c) to slow them down (d) to add colour
- 28.💾 Where should the app save photos on two devices: on the phone or in the cloud? (a) on the phone (b) in the cloud
-
29.🐞 This code has a bug. What number does it ACTUALLY show?
line 1: let points = 43; // start at 43
line 2: points = points * 2; // double it
line 3: points = points + 3; // add 3
line 4: points = points - 8; // take away 5
line 5: show(points); // show it - 30.🗒️ You are planning version 1 of a pocket-money tracker. Which feature is a MUST-HAVE? (a) savings stickers (b) pie-chart colours (c) show the balance (d) export to a file
-
31.🔘 Our rule: buttons are at least 48 px tall. How many of these buttons follow the rule?
Start button: 44 px tall
Save button: 56 px tall
Cancel button: 56 px tall
Back button: 48 px tall -
32.⚙️ What number does this app show?
let price = 35; // typed by the user
let qty = 5; // typed by the user
let total = price * qty;
show(total); - 33.🔘 Our rule: buttons are at least 48 px tall. The Help button is 24 px tall. How many px taller must it be?
-
34.🧰 What number does this code show?
function points(stars) {
return stars * 10 + 5;
}
show(points(5) + points(0)); - 35.👆 What kind of event is this: the search box changes? (a) a text event (b) a timer event (c) a load event (d) a tap event
- 36.🧩 In an app, what is a box to type a name? (a) a screen (b) an input (c) a button (d) data
-
37.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
line 1: let points = 49; // start at 47
line 2: points = points * 2; // double it
line 3: points = points + 6; // add 6
line 4: points = points + 2; // add 2
line 5: show(points); // show it -
38.🧭 The app has tabs Home, Search, Profile. You start on Home, then:
1. tap the Profile tab
2. open “Match report”
3. tap Back
How many times must you tap Back to reach the main screen of this tab? - 39.True or false: typing your age is an input. (a) False (b) True
-
40.🔁 What number does this code show?
let marks = [19, 20, 14, 12];
let total = 0;
for (let i = 0; i < marks.length; i++) {
total = total + marks[i];
}
show(total);
Answer key
- an app
- test it again
- to learn from users soon
- a times-table quiz
- 82
- savings stickers
- quiz app → microphone
- 790
- 4
- a pop-up message
- True
- on the phone
- False
- connect the data
- 39
- 42
- True
- location
- Welcome, Riya!
- how fast a task is done
- 3
- 0
- False
- a tab bar
- the camera
- has a home-screen icon
- so anyone can follow
- in the cloud
- 81
- show the balance
- 3
- 175
- 24
- 60
- a text event
- an input
- 102
- 0
- True
- 65
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students