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.🔁 What number does this code show?
let marks = [18, 19, 17, 10, 17];
let best = 0;
for (let i = 0; i < marks.length; i++) {
if (marks[i] > best) {
best = marks[i];
}
}
show(best); - 2.🚀 Your app is at version 2.2.1. The next release is a big redesign that changes how the app works. What is its version number? (a) 2.3.1 (b) 2.3.0 (c) 3.0.0 (d) 2.2.2
- 3.🗒️ You are planning version 1 of a quiz app. Which feature is a MUST-HAVE? (a) confetti effects (b) an avatar shop (c) background music (d) show a question
-
4.💾 What number does this code show?
let lives = 4;
lives = lives - 3;
lives = lives + 2;
show(lives); - 5.🔐 Which permission does a voice recorder really need? (a) location (b) the microphone (c) contacts (d) the camera
- 6.🔘 Our rule: buttons are at least 48 px tall. The Start button is 44 px tall. How many px taller must it be?
-
7.🧰 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(11) + fee(2)); -
8.🐞 This code has a bug. What number does it ACTUALLY show?
line 1: let score = 34; // start at 34
line 2: score = score * 2; // double it
line 3: score = score + 5; // add 5
line 4: score = score + 2; // double it
line 5: show(score); // show it - 9.🔢 In a quiz-app flow, what comes right after “tap “Start quiz””? (a) pick an answer (b) see the final score (c) read a question (d) see if it is right
-
10.🔘 Our rule: buttons are at least 48 px tall. Which button is too small?
Back button: 52 px tall
Help button: 28 px tall
Save button: 56 px tall
Next button: 68 px tall (a) Back (b) Next (c) Save (d) Help -
11.🧩 How many buttons does this app screen have?
[title] Order Snacks
[text box] Name
[switch] Dark mode
[text box] City
[slider] Text size
[text box] Age
[button] Send - 12.Which of these is true of a website? (a) has a home-screen icon (b) is installed on a phone (c) comes from an app store (d) has a web address
-
13.🧪 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(850) → expected 0
Test 2: delivery(550) → expected 40
Test 3: delivery(950) → expected 0 -
14.👆 The user taps the button 6 times. What number does the label show now?
let coins = 8;
button.onTap = function () {
coins = coins + 1;
label.text = coins;
}; - 15.🧪 Who else should try an app before release? (a) only the coder (b) the app icon (c) real users (d) nobody
-
16.🧭 The app has tabs Home, Search, Profile. You start on Home, then:
1. open “Edit photo”
2. tap Back
3. open “Match report”
4. tap Back
5. tap the Search tab
How many times must you tap Back to reach the main screen of this tab? - 17.True or false: strong colour contrast is good button design. (a) False (b) True
-
18.👆 The user taps the button 2 times. What number does the label show now?
let likes = 0;
button.onTap = function () {
if (likes < 3) {
likes = likes + 1;
}
label.text = likes;
}; -
19.💾 What number does this code show?
let notes = ["Art", "Science"];
notes.push("Sports");
show(notes.length); - 20.Which of these is true of the back button? (a) switches main sections (b) hides extra links (c) opens a list of pages (d) goes to the last screen
-
21.🔁 What number does this code show?
let scores = [13, 20, 3, 14];
let best = 0;
for (let i = 0; i < scores.length; i++) {
if (scores[i] > best) {
best = scores[i];
}
}
show(best); - 22.✏️ A box with a cross in a wireframe usually means ___. (a) delete this (b) a picture goes here (c) an error (d) a closed app
-
23.🔀 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 - 24.🧑 Who is an app really made for? (a) its charger (b) its icon (c) its coder only (d) its users
- 25.🔘 Is this good or poor button design: a clear word like Save? (a) good design (b) poor design
- 26.🔘 Is this good or poor button design: strong colour contrast? (a) poor design (b) good design
-
27.🗒️ Version 1 of a water reminder must be ready in 14 days. How many days are left for extras after the must-haves?
set a reminder time: 2 days
log a glass of water: 3 days
see today’s total: 3 days - 28.True or false: a big-text reader is the best fit for a pupil juggling five projects. (a) False (b) True
- 29.True or false: a class leaderboard fits saving on the phone. (a) False (b) True
- 30.🗒️ You are planning version 1 of a quiz app. Which feature can WAIT for a later version? (a) check the answer (b) show a question (c) show the score (d) background music
-
31.♿ Our rule: text is at least 16 px. Which text on this screen is too small?
Label: 25 px
Caption: 21 px
Menu: 20 px
Title: 13 px (a) Title (b) Menu (c) Caption (d) Label -
32.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
line 1: let lives = 44; // start at 42
line 2: lives = lives - 1; // take away 1
line 3: lives = lives * 2; // double it
line 4: show(lives); // show it - 33.True or false: an app comes from an app store. (a) False (b) True
-
34.🔁 What number does this code show?
let runs = [11, 2, 5, 6];
let total = 0;
for (let i = 0; i < runs.length; i++) {
total = total + runs[i];
}
show(total); - 35.🎨 UX stands for user ___. (a) experience (b) express (c) example (d) extra
-
36.🧰 What number does this code show?
function triple(n) {
return n * 3;
}
show(triple(38)); -
37.🐞 Each comment says what its line SHOULD do. Which line has the bug?
line 1: let points = 33; // start at 32
line 2: points = points * 2; // double it
line 3: points = points - 3; // take away 3
line 4: show(points); // show it (a) line 3 (b) line 1 (c) line 2 - 38.True or false: photos on two devices fits saving in the cloud. (a) True (b) False
- 39.🔢 In a sign-up flow, what comes right after “make a password”? (a) type name and email (b) tap “Sign up” (c) enter the code sent (d) open the app
- 40.🗒️ You are planning version 1 of a quiz app. Which feature can WAIT for a later version? (a) check the answer (b) show the score (c) show a question (d) confetti effects
Answer key
- 19
- 3.0.0
- show a question
- 3
- the microphone
- 4
- 50
- 75
- read a question
- Help
- 1
- has a web address
- 40
- 14
- real users
- 0
- True
- 2
- 3
- goes to the last screen
- 20
- a picture goes here
- Ask a parent
- its users
- good design
- good design
- 6
- False
- False
- background music
- Title
- 82
- True
- 24
- experience
- 114
- line 1
- True
- enter the code sent
- confetti effects
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students