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.🚀 Your app is at version 3.1.9. The next release adds a new feature. What is its version number? (a) 4.0.0 (b) 3.2.9 (c) 3.1.10 (d) 3.2.0
- 2.🔍 Which is the odd one out? (a) a buzz (vibration) (b) a pop-up message (c) checking a password (d) a beep sound
- 3.True or false: taking a photo is an output. (a) False (b) True
- 4.True or false: “colour as the only clue” helps everyone use the app. (a) True (b) False
- 5.🔢 In a sign-up flow, which comes first: “enter the code sent” or “type name and email”? (a) enter the code sent (b) type name and email
-
6.🐞 Each comment says what its line SHOULD do. Which line has the bug?
line 1: let points = 48; // start at 48
line 2: points = points + 2; // double it
line 3: points = points + 6; // add 6
line 4: show(points); // show it (a) line 3 (b) line 1 (c) line 2 - 7.🔘 Our rule: buttons are at least 48 px tall. The Cancel button is 24 px tall. How many px taller must it be?
- 8.Which of these is data? (a) your high score (b) the game-over page (c) tap to Start (d) a date picker
-
9.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
line 1: let stars = 34; // start at 33
line 2: stars = stars + 2; // add 2
line 3: stars = stars * 2; // double it
line 4: stars = stars - 5; // take away 5
line 5: show(stars); // show it - 10.True or false: a final design shows where things go. (a) False (b) True
- 11.🔍 Which is the odd one out? (a) text that can grow (b) captions on videos (c) colour as the only clue (d) strong colour contrast
- 12.🔢 After an app is released, what comes right after “test it again”? (a) release an update (b) list what to fix (c) fix and improve (d) read user reviews
-
13.🔁 What number does this code show?
let runs = [14, 6, 8, 7, 2];
let best = 0;
for (let i = 0; i < runs.length; i++) {
if (runs[i] > best) {
best = runs[i];
}
}
show(best); - 14.🔍 Which is the odd one out? (a) sorting the scores (b) tapping a button (c) typing your age (d) speaking a command
-
15.👆 The user taps the button 4 times. What number does the label show now?
let score = 7;
button.onTap = function () {
score = score + 2;
label.text = score;
}; -
16.🐞 This code has a bug. What number does it ACTUALLY show?
line 1: let coins = 52; // start at 49
line 2: coins = coins + 4; // add 4
line 3: coins = coins * 2; // double it
line 4: coins = coins + 3; // add 3
line 5: show(coins); // show it - 17.True or false: the user types a letter is a load event. (a) False (b) True
- 18.🔁 In for (let i = 0; i < 3; i++), which values does i take? (a) 1, 2, 3 (b) 0, 1, 2, 3 (c) 3 (d) 0, 1, 2
- 19.⚙️ In an app, is a buzz (vibration) an input, processing or an output? (a) input (b) processing (c) output
- 20.🔢 In a sign-up flow, which comes first: “enter the code sent” or “see the home screen”? (a) see the home screen (b) enter the code sent
-
21.🔁 What number does this code show?
let steps = [13, 7, 15, 13, 2];
let total = 0;
for (let i = 0; i < steps.length; i++) {
total = total + steps[i];
}
show(total); -
22.🔀 What does this PIN rule show?
let pin = "8032";
if (pin.length === 4) {
show("PIN saved");
} else {
show("Use 4 digits");
} (a) Use 4 digits (b) PIN saved - 23.👆 What kind of event is this: a 5-minute alarm ends? (a) a text event (b) a tap event (c) a load event (d) a timer event
- 24.🌗 Is light grey on white easy or hard to read on a button? (a) easy to read (b) hard to read
- 25.📱 Which one updates from the store: an app or a website? (a) an app (b) a website
- 26.🔐 Which permission does a barcode scanner really need? (a) contacts (b) location (c) the microphone (d) the camera
- 27.Which of these happens at the idea stage? (a) draw the user flow (b) share the download link (c) connect the data (d) list what users need
- 28.🧰 What does return do in a function? (a) closes the screen (b) deletes the app (c) sends back a value (d) repeats the code
- 29.True or false: the user presses Save is a text event. (a) True (b) False
- 30.🛠️ At which stage do you spot a problem to solve? (a) the idea stage (b) the test stage (c) the build stage (d) the plan stage
- 31.True or false: the search box changes is a load event. (a) False (b) True
-
32.🐞 Each comment says what its line SHOULD do. Which line has the bug?
line 1: let lives = 36; // start at 34
line 2: lives = lives * 2; // double it
line 3: lives = lives + 4; // add 4
line 4: show(lives); // show it (a) line 2 (b) line 3 (c) line 1 - 33.Which of these app ideas solves a real problem? (a) an app that just says hi (b) a page of random dots (c) a button with no action (d) a library due-date alert
- 34.🧭 Which part of navigation opens a list of pages? (a) a menu button (b) the back button (c) a tab bar
- 35.🗒️ In MVP, the M stands for ___. (a) music (b) mobile (c) maximum (d) minimum
- 36.True or false: a final design has no real colours. (a) False (b) True
- 37.👆 A tap handler runs how many times if the user taps 4 times? (a) 4 (b) 8 (c) 1 (d) 0
-
38.🐞 This code has a bug. What number does it ACTUALLY show?
line 1: let stars = 33; // start at 33
line 2: stars = stars + 5; // add 5
line 3: stars = stars + 4; // add 4
line 4: stars = stars - 2; // add 2
line 5: show(stars); // show it -
39.💾 What does this code show? (Positions start at 0.)
let songs = ["Kites", "Stars", "Ocean"];
show(songs[1]); (a) Ocean (b) Stars (c) Kites - 40.🎯 Who are the users of an app? (a) the people who use it (b) the app icons (c) only the coders (d) only the testers
Answer key
- 3.2.0
- checking a password
- False
- False
- type name and email
- line 2
- 24
- your high score
- 65
- False
- colour as the only clue
- release an update
- 14
- sorting the scores
- 15
- 115
- False
- 0, 1, 2
- output
- enter the code sent
- 50
- PIN saved
- a timer event
- hard to read
- an app
- the camera
- list what users need
- sends back a value
- False
- the idea stage
- False
- line 1
- a library due-date alert
- a menu button
- minimum
- False
- 4
- 40
- Stars
- the people who use it
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students