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: a countdown hits zero is a tap event. (a) False (b) True
-
2.👆 The user taps the button 4 times. What number does the label show now?
let coins = 2;
button.onTap = function () {
coins = coins + 5;
label.text = coins;
}; - 3.True or false: the search box changes is a timer event. (a) True (b) False
- 4.Which of these is true of an app? (a) needs no installing (b) has a web address (c) opens in a web browser (d) updates from the store
- 5.🐞 What is a bug? (a) a nice icon (b) a fast phone (c) a mistake in the code (d) a new feature
-
6.🧪 How many of these test cases pass?
🎟️ Rule: a ticket costs 50 for children under 9, and 100 for everyone else.
function price(age) {
if (age <= 9) {
return 50;
}
return 100;
}
Test 1: price(7) → expected 50
Test 2: price(15) → expected 100
Test 3: price(9) → expected 100 - 7.🗂️ What kind of app is a word battle? (a) a tool app (b) a game (c) a learning app (d) a health app
-
8.🔁 What number does this code show?
let marks = [11, 11, 3];
let total = 0;
for (let i = 0; i < marks.length; i++) {
total = total + marks[i];
}
show(total); -
9.🔀 Which badge does this quiz app show?
let marks = 95;
if (marks >= 80) {
show("Gold");
} else if (marks >= 50) {
show("Silver");
} else {
show("Bronze");
} (a) Gold (b) Bronze (c) Silver - 10.True or false: a draft you are typing fits saving in the cloud. (a) False (b) True
- 11.🗒️ You are planning version 1 of a pocket-money tracker. Which feature can WAIT for a later version? (a) show the balance (b) add money spent (c) add money received (d) pie-chart colours
- 12.🧰 Why write a function? (a) to reuse code (b) to slow the app (c) to hide errors (d) to make code longer
- 13.True or false: a bus tracker is the best fit for a parent waiting at the bus stop. (a) False (b) True
- 14.True or false: an app that just says hi solves no real problem. (a) False (b) True
- 15.True or false: a homework planner is the best fit for a cook with no idea for dinner. (a) True (b) False
- 16.True or false: an app comes from an app store. (a) False (b) True
- 17.True or false: you pick the features at the plan stage. (a) True (b) False
- 18.True or false: a final design has the real colours. (a) False (b) True
-
19.🧭 The app has tabs Lessons, Quiz, Me. You start on Lessons, then:
1. open “Help page”
2. open “Edit photo”
3. open “Friend list”
Which screen are you on now? (a) Help page (b) Lessons (c) Edit photo (d) Friend list - 20.💡 How can you check that people really have the problem? (a) just guess (b) copy another app (c) ask possible users (d) pick a colour
-
21.⚙️ What number does this app show?
let km = 7; // typed by the user
let metres = km * 1000;
show(metres); -
22.🔀 What number does this shop app show?
let total = 860;
if (total > 500) {
total = total - 50;
}
show(total); -
23.🖼️ In this wireframe (top to bottom), what is right below the Save button?
[ search box ]
[ Save button ]
[ big picture ]
[ list of items ]
[ tab bar ] (a) tab bar (b) big picture (c) search box (d) list of items - 24.🗒️ You are planning version 1 of a quiz app. Which feature is a MUST-HAVE? (a) background music (b) confetti effects (c) show a question (d) an avatar shop
-
25.🧩 How many inputs (text boxes, switches and sliders) does this screen have?
[title] Edit Profile
[button] Done
[text box] Email
[slider] Text size - 26.🔢 In a photo-post flow, which comes FIRST? (a) write a caption (b) take the photo (c) add a filter (d) open the camera screen
- 27.🔍 Which is the odd one out? (a) labels on every icon (b) strong colour contrast (c) tiny tap areas (d) big touch targets
- 28.🎨 Is this about UI or UX: whether users get lost? (a) UX (b) UI
-
29.🐞 Each comment says what its line SHOULD do. Which line has the bug?
line 1: let score = 38; // start at 35
line 2: score = score - 2; // take away 2
line 3: score = score + 6; // add 6
line 4: show(score); // show it (a) line 2 (b) line 1 (c) line 3 - 30.✏️ Is this true of a wireframe or of a final design: uses the final pictures? (a) a final design (b) a wireframe
- 31.True or false: you list what users need at the release stage. (a) False (b) True
-
32.🧰 What number does this code show?
function triple(n) {
return n * 3;
}
show(triple(9)); - 33.🔁 A loop over a list of 5 items runs its body how many times? (a) 6 (b) 1 (c) 4 (d) 5
-
34.🔁 What number does this code show?
let runs = [78, 92, 71, 47];
let count = 0;
for (let i = 0; i < runs.length; i++) {
if (runs[i] >= 70) {
count = count + 1;
}
}
show(count); -
35.🧪 How many of these test cases pass?
🎟️ Rule: a ticket costs 50 for children under 13, and 100 for everyone else.
function price(age) {
if (age < 13) {
return 50;
}
return 100;
}
Test 1: price(12) → expected 50
Test 2: price(13) → expected 100
Test 3: price(16) → expected 100 -
36.👆 The user taps the button 1 times. What number does the label show now?
let likes = 0;
button.onTap = function () {
if (likes < 3) {
likes = likes + 1;
}
label.text = likes;
}; - 37.💾 What is a variable? (a) a picture (b) a phone setting (c) a type of screen (d) a named box for a value
- 38.Which of these is true of a website? (a) updates from the store (b) is installed on a phone (c) has a home-screen icon (d) needs no installing
-
39.🔀 Which badge does this quiz app show?
let marks = 46;
if (marks >= 80) {
show("Gold");
} else if (marks >= 50) {
show("Silver");
} else {
show("Bronze");
} (a) Gold (b) Silver (c) Bronze -
40.🖼️ In this wireframe (top to bottom), what is right above the Add button?
[ search box ]
[ top bar ]
[ filter buttons ]
[ Add button ]
[ list of items ]
[ menu icon ] (a) filter buttons (b) list of items (c) menu icon (d) top bar
Answer key
- False
- 22
- False
- updates from the store
- a mistake in the code
- 2
- a game
- 25
- Gold
- False
- pie-chart colours
- to reuse code
- True
- True
- False
- True
- True
- True
- Friend list
- ask possible users
- 7000
- 810
- big picture
- show a question
- 2
- open the camera screen
- tiny tap areas
- UX
- line 1
- a final design
- False
- 27
- 5
- 3
- 3
- 1
- a named box for a value
- needs no installing
- Bronze
- filter buttons
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students