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?
function points(stars) {
return stars * 10 + 5;
}
show(points(3) + points(1)); -
2.🔁 What number does this code show?
let scores = [1, 8, 9];
let best = 0;
for (let i = 0; i < scores.length; i++) {
if (scores[i] > best) {
best = scores[i];
}
}
show(best); -
3.🔘 Our rule: buttons are at least 48 px tall. Which button is too small?
Next button: 36 px tall
Start button: 60 px tall
Send button: 60 px tall (a) Send (b) Next (c) Start -
4.🔀 What number does this shop app show?
let total = 710;
if (total > 500) {
total = total - 50;
}
show(total); -
5.👆 The user taps the button 5 times. What number does the label show now?
let stars = 1;
button.onTap = function () {
stars = stars + 3;
label.text = stars;
}; -
6.🐞 This code has a bug. What number does it ACTUALLY show?
line 1: let coins = 50; // start at 50
line 2: coins = coins + 7; // add 4
line 3: coins = coins - 2; // take away 2
line 4: show(coins); // show it - 7.True or false: notes to read offline fits saving in the cloud. (a) True (b) False
- 8.🐞 What is a good first step when an app gives a wrong result? (a) delete the app (b) add more colours (c) buy a new phone (d) find where it goes wrong
- 9.🌗 Is white on black easy or hard to read on a button? (a) hard to read (b) easy to read
- 10.Which of these app ideas solves no real problem? (a) a free study-room finder (b) a library due-date alert (c) a page of random dots (d) a medicine reminder
-
11.📊 Survey: which problem bugs you most? How many students voted in all?
forgetting birthdays: 4 votes
forgetting homework: 17 votes
losing water bottles: 6 votes - 12.🚀 Your app is at version 2.4.2. The next release is a big redesign that changes how the app works. What is its version number? (a) 2.5.2 (b) 2.4.3 (c) 2.5.0 (d) 3.0.0
-
13.🗒️ Version 1 of a quiz app must be ready in 12 days. How many days are left for extras after the must-haves?
show a question: 1 days
check the answer: 4 days
show the score: 2 days - 14.🎨 UI stands for user ___. (a) interface (b) input (c) internet (d) idea
-
15.🖼️ How many parts (boxes) does this wireframe have?
[ Add button ]
[ tab bar ]
[ big picture ]
[ title text ] -
16.🧩 Which of these is a button on this screen?
[title] Add Homework
[slider] Brightness
[text box] City
[switch] Sound
[text box] Age
[text box] Notes
[button] Send
[button] Start
[button] Done (a) Notes (b) Start (c) City (d) Age - 17.🛠️ At which stage do you add the buttons? (a) the test stage (b) the release stage (c) the idea stage (d) the build stage
-
18.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
line 1: let stars = 31; // start at 31
line 2: stars = stars + 2; // double it
line 3: stars = stars - 3; // take away 3
line 4: stars = stars + 4; // add 4
line 5: show(stars); // show it - 19.🗒️ A to-do app with no “add a task” feature is ___. (a) missing a must-have (b) ready to release (c) well planned (d) a nice extra
-
20.💾 What number does this code show?
let score = 8;
score = score - 5;
score = score + 3;
show(score); - 21.Which of these fits saving on the phone? (a) a shared to-do list (b) the sound on/off setting (c) chat messages to friends (d) a class leaderboard
-
22.💾 What number does this code show?
let points = 3;
points = points - 3;
points = points + 4;
show(points); -
23.🐞 Each comment says what its line SHOULD do. Which line has the bug?
line 1: let coins = 43; // start at 40
line 2: coins = coins + 4; // add 4
line 3: coins = coins * 2; // double it
line 4: coins = coins * 2; // double it
line 5: show(coins); // show it (a) line 3 (b) line 1 (c) line 2 (d) line 4 - 24.🔍 Which is the odd one out? (a) a spelling coach (b) a water reminder (c) a times-table quiz (d) a flashcard trainer
-
25.🐞 This code has a bug. What number does it ACTUALLY show?
line 1: let stars = 32; // start at 32
line 2: stars = stars + 2; // double it
line 3: stars = stars + 2; // add 2
line 4: show(stars); // show it -
26.👆 The user taps the button 6 times. What does the label show now?
let on = false;
button.onTap = function () {
on = !on;
if (on) {
label.text = "ON";
} else {
label.text = "OFF";
}
}; (a) OFF (b) ON -
27.🔀 What does this PIN rule show?
let pin = "316";
if (pin.length === 4) {
show("PIN saved");
} else {
show("Use 4 digits");
} (a) Use 4 digits (b) PIN saved - 28.True or false: a countdown hits zero is a timer event. (a) False (b) True
- 29.True or false: a word battle is a game. (a) False (b) True
- 30.🔘 Is this good or poor button design: a tiny 20 px button? (a) poor design (b) good design
- 31.✏️ A box with a cross in a wireframe usually means ___. (a) an error (b) a picture goes here (c) delete this (d) a closed app
-
32.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
line 1: let points = 48; // start at 45
line 2: points = points - 5; // take away 5
line 3: points = points + 3; // add 3
line 4: show(points); // show it -
33.🧰 What number does this code show?
function points(stars) {
return stars * 10 + 5;
}
show(points(1) + points(2)); - 34.🚀 Which version is newer: 2.6.14 or 2.6.7? (a) 2.6.14 (b) 2.6.7
- 35.🎯 Is this a user need or a feature: a share button? (a) a user need (b) a feature
-
36.🧰 A museum app works out the entry fee. What number does this code show?
function fee(age) {
if (age < 5) {
return 0;
}
return 60;
}
show(fee(3) + fee(8)); - 37.True or false: “big touch targets” makes the app harder to use. (a) True (b) False
-
38.🧰 What number does this code show?
function double(n) {
return n * 2;
}
show(double(34)); - 39.♿ Accessibility means an app works for ___. (a) only experts (b) only the coder (c) nobody (d) everyone
-
40.👆 The user taps the button 5 times. What number does the label show now?
let score = 10;
button.onTap = function () {
score = score + 5;
label.text = score;
};
Answer key
- 50
- 9
- Next
- 660
- 16
- 55
- False
- find where it goes wrong
- easy to read
- a page of random dots
- 27
- 3.0.0
- 5
- interface
- 4
- Start
- the build stage
- 63
- missing a must-have
- 6
- the sound on/off setting
- 4
- line 1
- a water reminder
- 36
- OFF
- Use 4 digits
- True
- True
- poor design
- a picture goes here
- 43
- 40
- 2.6.14
- a feature
- 60
- False
- 68
- everyone
- 35
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students