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.True or false: working out a tip is an output. (a) False (b) True
- 2.Which of these is true of a website? (a) comes from an app store (b) needs no installing (c) is installed on a phone (d) has a home-screen icon
-
3.🐞 Each comment says what its line SHOULD do. Which line has the bug?
line 1: let lives = 48; // start at 48
line 2: lives = lives + 6; // add 6
line 3: lives = lives - 3; // take away 1
line 4: show(lives); // show it (a) line 1 (b) line 2 (c) line 3 -
4.🧰 What number does this code show?
function double(n) {
return n * 2;
}
show(double(6)); - 5.🔍 Which is the odd one out? (a) tiny tap areas (b) labels on every icon (c) colour as the only clue (d) icons with no labels
-
6.🧩 How many inputs (text boxes, switches and sliders) does this screen have?
[title] New Note
[button] Back
[text box] Email
[button] Start
[switch] Dark mode
[text box] Phone - 7.♿ Does this help everyone, or make the app harder to use: icons with no labels? (a) helps everyone (b) makes it harder
- 8.Which of these app ideas solves no real problem? (a) a medicine reminder (b) a button with no action (c) a library due-date alert (d) a lost-and-found board
-
9.👆 The user taps the button 4 times. What number does the label show now?
let likes = 0;
button.onTap = function () {
if (likes < 2) {
likes = likes + 1;
}
label.text = likes;
}; -
10.🔀 What number does this shop app show?
let total = 690;
if (total > 500) {
total = total - 50;
}
show(total); -
11.🧭 The app has tabs Feed, Chat, Settings. You start on Feed, then:
1. open “Video”
2. open “Badges”
3. tap the Feed tab
4. tap the Feed tab
How many times must you tap Back to reach the main screen of this tab? - 12.🧩 In an app, what is the log-in page? (a) a screen (b) data (c) an input (d) a button
- 13.🔢 In a photo-post flow, which comes first: “open the camera screen” or “add a filter”? (a) add a filter (b) open the camera screen
-
14.🖼️ How many parts (boxes) does this wireframe have?
[ menu icon ]
[ big picture ]
[ title text ]
[ list of items ] - 15.🗒️ You are planning version 1 of a bus tracker. Which feature can WAIT for a later version? (a) show arrival time (b) change the bus icon (c) pick your bus stop (d) see where the bus is
-
16.🧪 How many of these test cases pass?
📝 Rule: a quiz is passed with 5 or more right answers.
function result(right) {
if (right >= 5) {
return "Pass";
}
return "Try again";
}
Test 1: result(2) → expected Try again
Test 2: result(7) → expected Pass
Test 3: result(6) → expected Pass -
17.🧪 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(10) → expected Pass
Test 2: result(8) → expected Pass
Test 3: result(3) → expected Try again -
18.🔁 What number does this code show?
let scores = [10, 35, 22, 91, 76];
let count = 0;
for (let i = 0; i < scores.length; i++) {
if (scores[i] >= 50) {
count = count + 1;
}
}
show(count); -
19.🧰 What number does this code show?
function total(price, qty) {
return price * qty;
}
show(total(15, 2)); - 20.⚙️ In an app, is a buzz (vibration) an input, processing or an output? (a) input (b) processing (c) output
-
21.🧭 The app has tabs Home, Search, Profile. You start on Home, then:
1. open “Help page”
2. open “Edit photo”
3. open “Map”
4. tap the Home tab
Which screen are you on now? (a) Help page (b) Map (c) Home (d) Edit photo - 22.♿ A screen has 8 icon buttons. Only 1 of them have a text label for screen readers. How many still need a label?
- 23.🗒️ Why keep version 1 small? (a) to use up storage (b) to look bigger (c) to learn from users soon (d) to confuse users
- 24.Which of these requests asks for too much? (a) calling app → contacts (b) map app → location (c) camera app → camera (d) torch → contacts
- 25.🔍 Which is the odd one out? (a) icons with no labels (b) captions on videos (c) colour as the only clue (d) sudden loud sounds
- 26.🧭 Tapping a tab usually takes you to ___. (a) the last app used (b) the phone settings (c) a random page (d) that tab’s main screen
- 27.🧩 In an app, what is tap to Save? (a) data (b) an input (c) a screen (d) a button
- 28.🧰 How do you run (call) a function called greet? (a) run greet (b) greet() (c) #greet (d) greet[]
- 29.🎯 Which app would help this user most: a pupil juggling five projects? (a) a homework planner (b) a recipe finder (c) a bus tracker (d) a big-text reader
- 30.True or false: an app updates from the store. (a) True (b) False
- 31.🔍 Which is the odd one out? (a) share the download link (b) put it on an app store (c) sketch the screens (d) write the store text
- 32.🔁 What does a loop do? (a) repeats code (b) deletes code (c) saves photos (d) draws icons
-
33.🐞 This code has a bug. What number does it ACTUALLY show?
line 1: let stars = 33; // start at 32
line 2: stars = stars + 5; // add 5
line 3: stars = stars + 6; // add 6
line 4: stars = stars + 5; // add 5
line 5: show(stars); // show it -
34.🧰 What number does this code show?
function points(stars) {
return stars * 10 + 5;
}
show(points(3) + points(1)); -
35.💾 What number does this code show?
let points = 4;
points = points - 2;
points = points + 3;
show(points); -
36.🚀 Which of these versions is the NEWEST?
4.7.8, 4.2.3, 4.5.3, 3.22.8 (a) 4.7.8 (b) 4.5.3 (c) 3.22.8 (d) 4.2.3 - 37.🔁 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
- 38.🔀 What is a user flow? (a) the path through screens (b) a charging cable (c) a type of font (d) a colour theme
- 39.True or false: one second passes is a tap event. (a) True (b) False
- 40.👥 A clinic app has 40 patients, 20 doctors and 95 nurses as users. Which user group is the biggest? (a) patients (b) nurses (c) doctors
Answer key
- False
- needs no installing
- line 3
- 12
- labels on every icon
- 3
- makes it harder
- a button with no action
- 2
- 640
- 0
- a screen
- open the camera screen
- 4
- change the bus icon
- 3
- 3
- 2
- 30
- output
- Home
- 7
- to learn from users soon
- torch → contacts
- captions on videos
- that tab’s main screen
- a button
- greet()
- a homework planner
- True
- sketch the screens
- repeats code
- 49
- 50
- 5
- 4.7.8
- 0, 1, 2
- the path through screens
- False
- nurses
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students