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.🧪 One test case fails. Which one?
🚚 Rule: delivery is free (0) when the order is 400 or more; otherwise it costs 40.
function delivery(total) {
if (total > 400) {
return 0;
}
return 40;
}
Test 1: delivery(400) → expected 0
Test 2: delivery(450) → expected 0
Test 3: delivery(200) → expected 40 (a) Test 3 (b) Test 2 (c) Test 1 - 2.🔐 Which permission does a barcode scanner really need? (a) the camera (b) the microphone (c) location (d) contacts
-
3.👆 Two designs for the same task (each arrow is one tap). How many taps does Design B need?
Design A: Home → Offers → Menu → Cart → Address → Item → Results
Design B: Home → Pay → Shop - 4.📱 Which one needs no installing: an app or a website? (a) an app (b) a website
- 5.🧩 In an app, what is a box to type a name? (a) an input (b) a button (c) a screen (d) data
- 6.🔢 In a quiz-app flow, which comes FIRST? (a) pick an answer (b) tap “Start quiz” (c) see the final score (d) read a question
- 7.🔢 In a quiz-app flow, what comes right after “tap “Start quiz””? (a) see if it is right (b) read a question (c) pick an answer (d) see the final score
-
8.🚀 Which of these versions is the OLDEST?
2.6.4, 2.5.0, 1.30.0, 2.11.0 (a) 1.30.0 (b) 2.11.0 (c) 2.5.0 (d) 2.6.4 - 9.✏️ Do wireframes usually show the final colours? (a) Yes (b) No
-
10.🐞 Each comment says what its line SHOULD do. Which line has the bug?
line 1: let coins = 35; // start at 35
line 2: coins = coins + 1; // take away 1
line 3: coins = coins - 5; // take away 5
line 4: show(coins); // show it (a) line 3 (b) line 1 (c) line 2 - 11.💡 A good app idea starts with ___. (a) a long name (b) many colours (c) a problem to solve (d) a cool logo
-
12.🧭 The app has tabs Home, Search, Profile. You start on Home, then:
1. open “Edit photo”
2. tap the Home tab
3. tap the Search tab
Which screen are you on now? (a) Home (b) Profile (c) Search (d) Edit photo - 13.🗒️ You are planning version 1 of a bus tracker. Which feature can WAIT for a later version? (a) see where the bus is (b) show arrival time (c) pick your bus stop (d) a dark mode
- 14.🔁 Why use a loop to show 100 messages? (a) it is slower (b) it hides them (c) less code to write (d) it uses more lines
- 15.🧩 Which part lets the user give the app information? (a) a title (b) an input (c) an icon (d) a logo
- 16.Which of these happens at the idea stage? (a) share the download link (b) spot a problem to solve (c) write the code (d) let friends try it
- 17.🐞 What is a good first step when an app gives a wrong result? (a) add more colours (b) delete the app (c) find where it goes wrong (d) buy a new phone
- 18.🎨 UI stands for user ___. (a) internet (b) idea (c) input (d) interface
-
19.🧩 How many inputs (text boxes, switches and sliders) does this screen have?
[title] Add Homework
[button] Done
[text box] Subject
[text box] Name
[switch] Dark mode
[text box] Phone
[button] Cancel
[button] Save - 20.🗒️ What is a must-have feature? (a) a nice extra (b) a colour theme (c) one the app cannot skip (d) a sound effect
- 21.🧩 In an app, what is tap to Save? (a) a button (b) an input (c) a screen (d) data
-
22.🧰 A museum app works out the entry fee. What number does this code show?
function fee(age) {
if (age < 5) {
return 0;
}
return 20;
}
show(fee(8) + fee(12)); - 23.True or false: an app that just says hi solves a real problem. (a) False (b) True
-
24.📊 Survey: which problem bugs you most? How many more votes did “forgetting birthdays” get than “no quiet study place”?
no quiet study place: 22 votes
forgetting birthdays: 24 votes
missing the bus: 17 votes -
25.⚙️ What number does this app show?
let bill = 140; // typed by the user
let friends = 2; // typed by the user
let share = bill / friends;
show(share); - 26.🛠️ At which stage do you put it on an app store? (a) the build stage (b) the release stage (c) the plan stage (d) the test stage
- 27.Which of these is a feature? (a) “What should I cook?” (b) “Small text is hard” (c) a share button (d) “I forget my homework”
- 28.True or false: grey text on grey is poor button design. (a) False (b) True
-
29.🔁 What number does this code show?
let marks = [72, 34, 23];
let count = 0;
for (let i = 0; i < marks.length; i++) {
if (marks[i] >= 50) {
count = count + 1;
}
}
show(count); - 30.🛠️ At which stage do you write the code? (a) the test stage (b) the idea stage (c) the release stage (d) the build stage
- 31.True or false: a bus tracker is the best fit for a teen whose money runs out by Friday. (a) False (b) True
- 32.🚀 Your app is at version 4.7.9. The next release fixes a small bug. What is its version number? (a) 4.8.0 (b) 5.0.0 (c) 4.7.10 (d) 4.8.9
- 33.🧰 What is a function? (a) a screen size (b) a type of phone (c) a list of colours (d) a named block of code
- 34.🎯 Which app would help this user most: a student who often misses the school bus? (a) a homework planner (b) a pocket-money tracker (c) a water reminder (d) a bus tracker
-
35.🔘 Our rule: buttons are at least 48 px tall. How many of these buttons follow the rule?
Next button: 52 px tall
Start button: 36 px tall
Send button: 40 px tall
Cancel button: 40 px tall - 36.True or false: the home page of an app is a screen. (a) True (b) False
-
37.🔀 What does this battery rule show?
let battery = 50;
if (battery < 20) {
show("Low battery");
} else {
show("Battery OK");
} (a) Battery OK (b) Low battery -
38.🧩 Which of these is a button on this screen?
[title] Edit Profile
[slider] Volume
[text box] Subject
[button] Done
[text box] Notes
[text box] Name (a) Done (b) Subject (c) Name (d) Notes -
39.🔁 What number does this code show?
let runs = [6, 18, 10];
let total = 0;
for (let i = 0; i < runs.length; i++) {
total = total + runs[i];
}
show(total); - 40.True or false: a calculator is a tool app. (a) True (b) False
Answer key
- Test 1
- the camera
- 2
- a website
- an input
- tap “Start quiz”
- read a question
- 1.30.0
- No
- line 2
- a problem to solve
- Search
- a dark mode
- less code to write
- an input
- spot a problem to solve
- find where it goes wrong
- interface
- 4
- one the app cannot skip
- a button
- 40
- False
- 2
- 70
- the release stage
- a share button
- True
- 1
- the build stage
- False
- 4.7.10
- a named block of code
- a bus tracker
- 1
- True
- Battery OK
- Done
- 34
- True
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students