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 the ACTUAL result of Test 3?
🚚 Rule: delivery is free (0) when the order is 300 or more; otherwise it costs 40.
function delivery(total) {
if (total >= 300) {
return 0;
}
return 40;
}
Test 1: delivery(400) → expected 0
Test 2: delivery(550) → expected 0
Test 3: delivery(100) → expected 40 - 2.🔁 list.length tells you ___. (a) the last item (b) the biggest item (c) how many items it has (d) the first item
- 3.🎯 What is the best first step to learn what users need? (a) pick the colours (b) write the code (c) ask and watch users (d) guess on your own
-
4.🗒️ Version 1 of a quiz app must be ready in 8 days. How many days are left for extras after the must-haves?
show a question: 4 days
check the answer: 1 days
show the score: 3 days -
5.🧩 How many buttons does this app screen have?
[title] Settings
[switch] Dark mode
[text box] Subject
[text box] Phone
[button] Save
[text box] Email -
6.👆 The user taps the button 2 times. What number does the label show now?
let score = 0;
button.onTap = function () {
score = score + 2;
label.text = score;
}; - 7.True or false: taking a photo is processing. (a) True (b) False
- 8.Which of these is about UX (the experience)? (a) the icon shapes (b) the screen layout (c) how easy sign-up is (d) the font size
-
9.⚙️ Which line does the processing (works out the answer)?
line 1: let price = 460; // typed by the user
line 2: let off = 20; // typed by the user
line 3: let pay = price - off;
line 4: show(pay); (a) line 1 (b) line 4 (c) line 3 (d) line 2 -
10.🔀 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! -
11.🧩 How many inputs (text boxes, switches and sliders) does this screen have?
[title] Settings
[button] Save
[button] Send
[button] Done
[text box] Name - 12.🗒️ You are planning version 1 of a homework planner. Which feature can WAIT for a later version? (a) see tasks by day (b) share tasks to friends (c) set a due date (d) add a homework task
-
13.🧪 What is the ACTUAL result of Test 1?
🎟️ 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(8) → expected 50
Test 2: price(12) → expected 100
Test 3: price(15) → expected 100 - 14.Which of these is about UX (the experience)? (a) the font size (b) how fast a task is done (c) the button colours (d) the icon shapes
-
15.👆 The user taps the button 6 times. What number does the label show now?
let lives = 10;
button.onTap = function () {
lives = lives + 5;
label.text = lives;
}; - 16.🐞 After fixing a bug you should ___. (a) delete the test (b) test it again (c) release at once (d) never test
- 17.🗒️ You are planning version 1 of a quiz app. Which feature can WAIT for a later version? (a) an avatar shop (b) show the score (c) check the answer (d) show a question
- 18.🔢 In a photo-post flow, which comes first: “add a filter” or “open the camera screen”? (a) add a filter (b) open the camera screen
- 19.🔍 Which is the odd one out? (a) a buzz (vibration) (b) speaking a command (c) a result on screen (d) a pop-up message
-
20.🐞 Each comment says what its line SHOULD do. Which line has the bug?
line 1: let points = 30; // start at 30
line 2: points = points + 2; // double it
line 3: points = points * 2; // double it
line 4: show(points); // show it (a) line 3 (b) line 1 (c) line 2 -
21.🧰 What does this code show?
function greet(name) {
return "Welcome, " + name + "!";
}
show(greet("Arjun")); (a) Welcome, Arjun! (b) Welcome, name! (c) greet (d) Arjun -
22.🐞 This code has a bug. What number does it ACTUALLY show?
line 1: let score = 33; // start at 33
line 2: score = score - 5; // take away 5
line 3: score = score * 2; // double it
line 4: score = score + 5; // take away 5
line 5: show(score); // show it - 23.Which of these is an input? (a) adding up a bill (b) a buzz (vibration) (c) taking a photo (d) a beep sound
- 24.🎨 Is this about UI or UX: the icon shapes? (a) UX (b) UI
- 25.🔀 A screen with no way forward or back is called a ___. (a) tab bar (b) home screen (c) dead end (d) shortcut
-
26.🧪 One test case fails. Which one?
🎟️ 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(11) → expected 100
Test 2: price(7) → expected 50
Test 3: price(17) → expected 100 (a) Test 2 (b) Test 3 (c) Test 1 -
27.👆 The user taps the button 6 times. What number does the label show now?
let likes = 0;
button.onTap = function () {
if (likes < 2) {
likes = likes + 1;
}
label.text = likes;
}; - 28.🔢 When you make an app, what comes right after “get an idea”? (a) release it (b) test the app (c) plan the screens (d) build the app
- 29.True or false: an alarm clock is a tool app. (a) False (b) True
-
30.⚙️ What number does this app show?
let km = 10; // typed by the user
let metres = km * 1000;
show(metres); - 31.🔀 In a good flow, each screen should lead to ___. (a) a dead end (b) the same screen (c) a random page (d) a clear next step
-
32.👆 The user taps the button 5 times. What number does the label show now?
let stars = 1;
button.onTap = function () {
stars = stars + 2;
label.text = stars;
}; -
33.🧭 The app has tabs Home, Search, Profile. You start on Home, then:
1. tap the Search tab
2. open “Friend list”
3. tap Back
4. open “Edit photo”
5. tap the Home tab
Which screen are you on now? (a) Search (b) Edit photo (c) Friend list (d) Home - 34.True or false: a page of random dots solves a real problem. (a) False (b) True
- 35.🚀 A privacy policy tells users ___. (a) the app’s price (b) what data is collected (c) the screen size (d) the app’s colours
-
36.🐞 This code has a bug. What number does it ACTUALLY show?
line 1: let score = 48; // start at 48
line 2: score = score + 4; // add 4
line 3: score = score - 5; // take away 2
line 4: show(score); // show it - 37.🛠️ At which stage do you spot a problem to solve? (a) the test stage (b) the plan stage (c) the idea stage (d) the build stage
-
38.💾 What number does this code show?
let notes = ["Maths", "Hindi", "Art"];
notes.push("Sports");
show(notes.length); -
39.🧭 The app has tabs Lessons, Quiz, Me. You start on Lessons, then:
1. open “Badges”
2. tap the Lessons tab
3. tap the Lessons tab
Which screen are you on now? (a) Lessons (b) Me (c) Badges (d) Quiz - 40.🗒️ You are planning version 1 of a homework planner. Which feature can WAIT for a later version? (a) add a homework task (b) see tasks by day (c) earn stickers (d) set a due date
Answer key
- 40
- how many items it has
- ask and watch users
- 0
- 1
- 4
- False
- how easy sign-up is
- line 3
- Welcome!
- 1
- share tasks to friends
- 50
- how fast a task is done
- 40
- test it again
- an avatar shop
- open the camera screen
- speaking a command
- line 2
- Welcome, Arjun!
- 61
- taking a photo
- UI
- dead end
- Test 1
- 2
- plan the screens
- True
- 10000
- a clear next step
- 11
- Home
- False
- what data is collected
- 47
- the idea stage
- 4
- Lessons
- earn stickers
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students