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 is a variable? (a) a picture (b) a type of screen (c) a named box for a value (d) a phone setting
-
2.🔀 What number does this shop app show?
let total = 240;
if (total > 500) {
total = total - 50;
}
show(total); -
3.🔁 What number does this code show?
let runs = [19, 16, 9, 1, 13];
let total = 0;
for (let i = 0; i < runs.length; i++) {
total = total + runs[i];
}
show(total); -
4.🧩 How many inputs (text boxes, switches and sliders) does this screen have?
[title] Sign Up
[switch] Dark mode
[button] Start
[text box] Due date
[slider] Brightness - 5.True or false: the screen first opens is a load event. (a) True (b) False
- 6.True or false: your high score is data. (a) True (b) False
-
7.🧪 What is the ACTUAL result of Test 1?
🚚 Rule: delivery is free (0) when the order is 600 or more; otherwise it costs 40.
function delivery(total) {
if (total >= 600) {
return 0;
}
return 40;
}
Test 1: delivery(700) → expected 0
Test 2: delivery(750) → expected 0
Test 3: delivery(400) → expected 40 -
8.🔀 What does this PIN rule show?
let pin = "3879";
if (pin.length === 4) {
show("PIN saved");
} else {
show("Use 4 digits");
} (a) Use 4 digits (b) PIN saved -
9.📊 Survey: which problem bugs you most? How many more votes did “forgetting homework” get than “losing water bottles”?
forgetting homework: 19 votes
losing water bottles: 6 votes
no quiet study place: 21 votes -
10.🧪 How many of these test cases pass?
🎟️ Rule: a ticket costs 50 for children under 11, and 100 for everyone else.
function price(age) {
if (age < 11) {
return 50;
}
return 100;
}
Test 1: price(17) → expected 100
Test 2: price(11) → expected 100
Test 3: price(8) → expected 50 - 11.🧭 Why should every screen show where you are? (a) to hide the menu (b) so users do not get lost (c) to use more battery (d) to look busy
-
12.🧭 The app has tabs Home, Search, Profile. You start on Home, then:
1. open “Friend list”
2. tap the Profile tab
3. open “Edit photo”
Which screen are you on now? (a) Search (b) Edit photo (c) Home (d) Friend list - 13.Which of these happens at the build stage? (a) share the download link (b) write the store text (c) spot a problem to solve (d) add the buttons
-
14.🗒️ Version 1 of a homework planner must be ready in 11 days. How many days are left for extras after the must-haves?
add a homework task: 3 days
set a due date: 3 days
see tasks by day: 4 days - 15.👆 What kind of event is this: the search box changes? (a) a text event (b) a load event (c) a tap event (d) a timer event
-
16.🧪 One test case fails. Which one?
🎟️ Rule: a ticket costs 50 for children under 12, and 100 for everyone else.
function price(age) {
if (age <= 12) {
return 50;
}
return 100;
}
Test 1: price(12) → expected 100
Test 2: price(10) → expected 50
Test 3: price(17) → expected 100 (a) Test 1 (b) Test 3 (c) Test 2 - 17.🐞 What is a good first step when an app gives a wrong result? (a) find where it goes wrong (b) add more colours (c) delete the app (d) buy a new phone
- 18.🛠️ At which stage do you try every button? (a) the test stage (b) the plan stage (c) the release stage (d) the idea stage
- 19.True or false: the user types a letter is a timer event. (a) True (b) False
- 20.🔢 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
- 21.💡 How can you check that people really have the problem? (a) pick a colour (b) just guess (c) copy another app (d) ask possible users
- 22.🎯 Is this a user need or a feature: “What should I cook?”? (a) a user need (b) a feature
- 23.True or false: a website is installed on a phone. (a) True (b) False
- 24.🔍 Which is the odd one out? (a) a flashcard trainer (b) a spelling coach (c) a torch (d) a times-table quiz
- 25.🚀 Your app is at version 2.9.7. The next release fixes a small bug. What is its version number? (a) 2.9.8 (b) 2.10.0 (c) 2.10.7 (d) 3.0.0
-
26.🧩 How many inputs (text boxes, switches and sliders) does this screen have?
[title] Settings
[button] Back
[text box] City
[button] Done
[slider] Text size
[button] Next
[switch] Show hints -
27.⚙️ Which line does the processing (works out the answer)?
line 1: let bill = 112; // typed by the user
line 2: let friends = 4; // typed by the user
line 3: let share = bill / friends;
line 4: show(share); (a) line 4 (b) line 1 (c) line 2 (d) line 3 - 28.🧰 What is a function? (a) a named block of code (b) a screen size (c) a list of colours (d) a type of phone
- 29.🗂️ What kind of app is a calculator? (a) a game (b) a learning app (c) a tool app (d) a health app
- 30.👆 What kind of event is this: the user types a letter? (a) a text event (b) a load event (c) a timer event (d) a tap event
-
31.🧭 The app has tabs Lessons, Quiz, Me. You start on Lessons, then:
1. open “Badges”
2. tap the Me tab
3. open “Friend list”
How many times must you tap Back to reach the main screen of this tab? -
32.📊 Survey: which problem bugs you most? How many more votes did “forgetting birthdays” get than “missing the bus”?
forgetting birthdays: 24 votes
missing the bus: 14 votes
wasting pocket money: 5 votes -
33.🧪 One test case fails. Which one?
📝 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(5) → expected Try again
Test 2: result(6) → expected Pass
Test 3: result(8) → expected Pass (a) Test 3 (b) Test 2 (c) Test 1 -
34.📊 Survey: which problem bugs you most? Which problem should your app solve first?
forgetting homework: 6 votes
wasting pocket money: 7 votes
missing the bus: 25 votes (a) forgetting homework (b) wasting pocket money (c) missing the bus -
35.🔀 What does this battery rule show?
let battery = 88;
if (battery < 20) {
show("Low battery");
} else {
show("Battery OK");
} (a) Low battery (b) Battery OK - 36.🔐 Which permission does a bus tracker really need? (a) contacts (b) the camera (c) the microphone (d) location
-
37.👆 Two designs for the same task (each arrow is one tap). How many taps does Design B need?
Design A: Home → Results → Pay → Menu → Cart → Shop → Pens
Design B: Home → Item → Menu → Search - 38.🔢 In a quiz-app flow, what comes right after “see if it is right”? (a) pick an answer (b) read a question (c) see the final score (d) tap “Start quiz”
-
39.💾 What number does this code show?
let notes = ["Sports", "Maths"];
notes.push("Hindi");
show(notes.length); - 40.🔀 In a good flow, each screen should lead to ___. (a) a dead end (b) the same screen (c) a clear next step (d) a random page
Answer key
- a named box for a value
- 240
- 58
- 3
- True
- True
- 0
- PIN saved
- 13
- 3
- so users do not get lost
- Edit photo
- add the buttons
- 1
- a text event
- Test 1
- find where it goes wrong
- the test stage
- False
- tap “Start quiz”
- ask possible users
- a user need
- False
- a torch
- 2.9.8
- 3
- line 3
- a named block of code
- a tool app
- a text event
- 1
- 10
- Test 2
- missing the bus
- Battery OK
- location
- 3
- see the final score
- 3
- a clear next step
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students