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 scores = [19, 1, 9];
let total = 0;
for (let i = 0; i < scores.length; i++) {
total = total + scores[i];
}
show(total); -
2.👆 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 - 3.Which of these happens at the release stage? (a) spot a problem to solve (b) put it on an app store (c) let friends try it (d) connect the data
- 4.🔐 Which permission does a selfie sticker app really need? (a) the microphone (b) the camera (c) contacts (d) location
- 5.🔐 Which permission does a guitar tuner really need? (a) contacts (b) the camera (c) location (d) the microphone
-
6.🐞 Each comment says what its line SHOULD do. Which line has the bug?
line 1: let lives = 32; // start at 32
line 2: lives = lives + 2; // add 2
line 3: lives = lives - 2; // add 2
line 4: lives = lives + 5; // add 5
line 5: show(lives); // show it (a) line 1 (b) line 2 (c) line 3 (d) line 4 -
7.🧰 What number does this code show?
function triple(n) {
return n * 3;
}
show(triple(28)); - 8.🔀 What does if / else let an app do? (a) draw a screen (b) save a photo (c) repeat forever (d) pick one of two actions
- 9.🧩 In an app, what is the game-over page? (a) a button (b) data (c) an input (d) a screen
- 10.True or false: a final design uses plain grey boxes. (a) False (b) True
-
11.🔘 Our rule: buttons are at least 48 px tall. How many of these buttons follow the rule?
Back button: 40 px tall
Start button: 36 px tall
Done button: 64 px tall - 12.🔢 In a food-order flow, which comes first: “add it to the cart” or “pay for the order”? (a) add it to the cart (b) pay for the order
- 13.True or false: a selfie sticker app needs the microphone. (a) False (b) True
- 14.🐞 What is a bug? (a) a fast phone (b) a nice icon (c) a mistake in the code (d) a new feature
- 15.📅 An app team plans for 2 days, builds for 11 days, tests for 3 days and releases on 1 more day. How many more days does building take than testing?
-
16.📊 Survey: which problem bugs you most? How many more votes did “forgetting homework” get than “wasting pocket money”?
forgetting homework: 19 votes
wasting pocket money: 4 votes
no quiet study place: 20 votes -
17.💾 What number does this code show?
let songs = ["Sunrise", "Monsoon", "Ocean"];
songs.push("Rain");
songs.push("Stars");
show(songs.length); - 18.🔢 In a food-order flow, which comes first: “pick a dish” or “add it to the cart”? (a) add it to the cart (b) pick a dish
- 19.🔍 Which is the odd one out? (a) fast-flashing lights (b) sudden loud sounds (c) text that can grow (d) colour as the only clue
-
20.💾 What number does this code show?
let stars = 3;
stars = stars - 2;
stars = stars + 4;
show(stars); - 21.💡 Which is a problem statement? (a) “Make it fast” (b) “Add a logo” (c) “Kids forget homework” (d) “Use blue buttons”
- 22.♿ Does this help everyone, or make the app harder to use: tiny tap areas? (a) makes it harder (b) helps everyone
-
23.🔀 What does this battery rule show?
let battery = 15;
if (battery < 20) {
show("Low battery");
} else {
show("Battery OK");
} (a) Battery OK (b) Low battery - 24.True or false: a homework planner is the best fit for a student who keeps forgetting due dates. (a) True (b) False
- 25.🔍 Which is the odd one out? (a) draw the user flow (b) sketch the screens (c) pick the features (d) try every button
-
26.🧪 One test case fails. Which one?
🚚 Rule: delivery is free (0) when the order is 500 or more; otherwise it costs 40.
function delivery(total) {
if (total > 500) {
return 0;
}
return 40;
}
Test 1: delivery(400) → expected 40
Test 2: delivery(500) → expected 0
Test 3: delivery(800) → expected 0 (a) Test 1 (b) Test 2 (c) Test 3 -
27.🧩 Which of these is a button on this screen?
[title] Sign Up
[button] Save
[text box] City
[slider] Volume
[button] Start (a) City (b) Volume (c) Save -
28.👆 Two designs for the same task (each arrow is one tap). How many taps does Design B need?
Design A: Home → Address → Menu
Design B: Home → Menu → Item → Offers → Confirm → Pay → Results - 29.🔍 Which is the odd one out? (a) a times-table quiz (b) a spelling coach (c) a calculator (d) a flashcard trainer
-
30.🔀 Which badge does this quiz app show?
let marks = 35;
if (marks >= 80) {
show("Gold");
} else if (marks >= 50) {
show("Silver");
} else {
show("Bronze");
} (a) Bronze (b) Gold (c) Silver -
31.🧪 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(6) → expected Pass
Test 2: result(5) → expected Try again
Test 3: result(7) → expected Pass (a) Test 2 (b) Test 3 (c) Test 1 - 32.🔀 What does >= mean? (a) greater than or equal (b) not equal (c) smaller or equal (d) less than
-
33.🔘 Our rule: buttons are at least 48 px tall. How many of these buttons follow the rule?
Send button: 64 px tall
Help button: 60 px tall
Done button: 44 px tall - 34.🗂️ What kind of app is a times-table quiz? (a) a learning app (b) a health app (c) a game (d) a tool app
-
35.🧩 How many buttons does this app screen have?
[title] Edit Profile
[text box] City
[text box] Notes
[button] Save
[button] Help
[text box] Subject
[button] Done - 36.⚙️ In an app, is sorting the scores an input, processing or an output? (a) input (b) output (c) processing
- 37.🐞 Finding and fixing bugs is called ___. (a) debugging (b) designing (c) downloading (d) decorating
-
38.📊 Survey: which problem bugs you most? How many more votes did “forgetting homework” get than “wasting pocket money”?
wasting pocket money: 19 votes
losing water bottles: 21 votes
forgetting homework: 20 votes -
39.⚙️ What number does this app show?
let price = 45; // typed by the user
let qty = 4; // typed by the user
let total = price * qty;
show(total); -
40.🐞 Each comment says what its line SHOULD do. Which line has the bug?
line 1: let coins = 36; // start at 34
line 2: coins = coins + 6; // add 6
line 3: coins = coins + 6; // add 6
line 4: show(coins); // show it (a) line 1 (b) line 2 (c) line 3
Answer key
- 29
- ON
- put it on an app store
- the camera
- the microphone
- line 3
- 84
- pick one of two actions
- a screen
- False
- 1
- add it to the cart
- False
- a mistake in the code
- 8
- 15
- 5
- pick a dish
- text that can grow
- 5
- “Kids forget homework”
- makes it harder
- Low battery
- True
- try every button
- Test 2
- Save
- 6
- a calculator
- Bronze
- Test 1
- greater than or equal
- 2
- a learning app
- 3
- processing
- debugging
- 1
- 180
- line 1
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students