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 notes = ["Sports", "Hindi", "Music"];
notes.push("Art");
show(notes.length); - 2.🧪 What is the actual result of a test? (a) what we hope for (b) the test’s number (c) the app’s name (d) what the app really does
- 3.🎯 Which app would help this user most: a pupil juggling five projects? (a) a water reminder (b) a bus tracker (c) a homework planner (d) a pocket-money tracker
-
4.🗒️ Version 1 of a pocket-money tracker must be ready in 10 days. How many days are left for extras after the must-haves?
add money received: 4 days
add money spent: 2 days
show the balance: 4 days -
5.🐞 Each comment says what its line SHOULD do. Which line has the bug?
line 1: let stars = 32; // start at 32
line 2: stars = stars + 5; // add 5
line 3: stars = stars + 1; // take away 1
line 4: show(stars); // show it (a) line 3 (b) line 1 (c) line 2 - 6.♿ A screen has 5 icon buttons. Only 1 of them have a text label for screen readers. How many still need a label?
- 7.🔘 Our rule: buttons are at least 48 px tall. The Save button is 20 px tall. How many px taller must it be?
- 8.🔍 Which is the odd one out? (a) the icon shapes (b) how easy sign-up is (c) the screen layout (d) the font size
-
9.⚙️ Which line does the processing (works out the answer)?
line 1: let km = 2; // typed by the user
line 2: let metres = km * 1000;
line 3: show(metres); (a) line 2 (b) line 1 (c) line 3 - 10.True or false: a box to type a name is an input. (a) False (b) True
- 11.Which of these is true of a website? (a) updates from the store (b) opens in a web browser (c) has a home-screen icon (d) is installed on a phone
-
12.🔀 What does this sign-up rule show?
let age = 13;
if (age >= 13) {
show("Welcome!");
} else {
show("Ask a parent");
} (a) Ask a parent (b) Welcome! -
13.🧪 One test case fails. Which one?
🎟️ Rule: a ticket costs 50 for children under 10, and 100 for everyone else.
function price(age) {
if (age <= 10) {
return 50;
}
return 100;
}
Test 1: price(6) → expected 50
Test 2: price(10) → expected 100
Test 3: price(11) → expected 100 (a) Test 3 (b) Test 2 (c) Test 1 -
14.🧭 The app has tabs Home, Search, Profile. You start on Home, then:
1. open “Badges”
2. tap the Home tab
3. open “Edit photo”
4. open “Match report”
5. open “Video”
How many times must you tap Back to reach the main screen of this tab? - 15.Which colour pair is hard to read? (a) white on black (b) pale pink on white (c) black on pale grey (d) dark blue on white
-
16.🔀 What number does this shop app show?
let total = 250;
if (total > 500) {
total = total - 50;
}
show(total); - 17.🧪 A test case is an input together with its ___. (a) screen colour (b) expected result (c) font size (d) app icon
- 18.💡 After a survey, which need should version 1 solve? (a) a random need (b) the most common need (c) the newest trend (d) the rarest need
- 19.🔁 Why use a loop to show 100 messages? (a) it is slower (b) less code to write (c) it uses more lines (d) it hides them
-
20.🧪 What is the ACTUAL result of Test 1?
🎟️ 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(13) → expected 100
Test 2: price(15) → expected 100
Test 3: price(11) → expected 50 -
21.🧭 The app has tabs Lessons, Quiz, Me. You start on Lessons, then:
1. open “Help page”
2. tap Back
3. tap the Lessons tab
4. open “Friend list”
5. tap Back
Which screen are you on now? (a) Help page (b) Quiz (c) Friend list (d) Lessons - 22.True or false: a recipe finder is the best fit for a cook with no idea for dinner. (a) True (b) False
- 23.True or false: a recipe finder is the best fit for a student who keeps forgetting due dates. (a) False (b) True
-
24.🔘 Our rule: buttons are at least 48 px tall. Which button is too small?
Cancel button: 56 px tall
Help button: 48 px tall
Next button: 40 px tall (a) Help (b) Cancel (c) Next - 25.👆 A tap handler runs how many times if the user taps 4 times? (a) 1 (b) 4 (c) 0 (d) 8
- 26.✏️ Is this true of a wireframe or of a final design: looks like the real app? (a) a final design (b) a wireframe
-
27.🔀 What number does this shop app show?
let total = 410;
if (total > 500) {
total = total - 50;
}
show(total); - 28.🔘 Our rule: buttons are at least 48 px tall. The Help button is 32 px tall. How many px taller must it be?
- 29.🗂️ What kind of app is a water reminder? (a) a health app (b) a learning app (c) a game (d) a tool app
- 30.Which of these is true of a wireframe? (a) looks like the real app (b) shows the real fonts (c) has the real colours (d) is a quick sketch
-
31.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
line 1: let stars = 35; // start at 35
line 2: stars = stars * 3; // double it
line 3: stars = stars - 2; // take away 2
line 4: show(stars); // show it - 32.📅 An app team plans for 5 days, builds for 6 days, tests for 3 days and releases on 1 more day. Planning starts on day 1. On which day does building finish?
- 33.🔍 Which is the odd one out? (a) share the download link (b) put it on an app store (c) write the store text (d) talk to possible users
- 34.🔀 When does the else part run? (a) when the test is true (b) when the test is false (c) never (d) always
-
35.🧭 The app has tabs Home, Search, Profile. You start on Home, then:
1. open “Score card”
2. tap Back
3. tap the Home tab
Which screen are you on now? (a) Profile (b) Home (c) Search (d) Score card - 36.🧰 What does return do in a function? (a) sends back a value (b) deletes the app (c) repeats the code (d) closes the screen
- 37.True or false: a tiny 20 px button is good button design. (a) False (b) True
-
38.👆 The user taps the button 5 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 -
39.🔀 What number does this shop app show?
let total = 740;
if (total > 500) {
total = total - 50;
}
show(total); - 40.⚙️ In an app, is a result on screen an input, processing or an output? (a) processing (b) input (c) output
Answer key
- 4
- what the app really does
- a homework planner
- 0
- line 3
- 4
- 28
- how easy sign-up is
- line 2
- True
- opens in a web browser
- Welcome!
- Test 2
- 3
- pale pink on white
- 250
- expected result
- the most common need
- less code to write
- 50
- Lessons
- True
- False
- Next
- 4
- a final design
- 410
- 16
- a health app
- is a quick sketch
- 68
- 11
- talk to possible users
- when the test is false
- Home
- sends back a value
- False
- ON
- 690
- output
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students