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.🔢 In a food-order flow, which comes FIRST? (a) check the cart (b) add it to the cart (c) pay for the order (d) open the menu
-
2.🔁 What number does this code show?
let steps = [95, 24, 29, 73, 93];
let count = 0;
for (let i = 0; i < steps.length; i++) {
if (steps[i] >= 60) {
count = count + 1;
}
}
show(count); - 3.📅 An app team plans for 2 days, builds for 7 days, tests for 1 days and releases on 1 more day. How many more days does building take than testing?
-
4.🧪 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(17) → expected 100
Test 2: price(12) → expected 100
Test 3: price(9) → expected 50 (a) Test 3 (b) Test 2 (c) Test 1 - 5.🚀 Your app is at version 3.0.3. The next release fixes a small bug. What is its version number? (a) 4.0.0 (b) 3.0.4 (c) 3.1.3 (d) 3.1.0
- 6.👆 An event in an app is ___. (a) a kind of list (b) a colour theme (c) an app store (d) something that happens
-
7.🧩 How many buttons does this app screen have?
[title] Settings
[switch] Remind me
[text box] Email
[button] Send
[text box] Phone
[text box] Name -
8.💾 What number does this code show?
let friends = ["Meera", "Zoya", "Arjun"];
friends.push("Riya");
show(friends.length); -
9.♿ Our rule: text is at least 16 px. Which text on this screen is too small?
Body text: 19 px
Hint: 16 px
Footer: 21 px
Menu: 17 px
Caption: 13 px (a) Caption (b) Footer (c) Hint (d) Body text - 10.Which of these is true of a menu button? (a) sits at the bottom (b) undoes one move (c) goes to the last screen (d) hides extra links
- 11.🔍 Which is the odd one out? (a) sudden loud sounds (b) tiny tap areas (c) big touch targets (d) colour as the only clue
- 12.🔢 In a photo-post flow, what comes right after “write a caption”? (a) open the camera screen (b) take the photo (c) add a filter (d) post the photo
-
13.🐞 This code has a bug. What number does it ACTUALLY show?
line 1: let stars = 47; // start at 45
line 2: stars = stars + 5; // add 5
line 3: stars = stars + 2; // add 2
line 4: stars = stars * 2; // double it
line 5: show(stars); // show it -
14.🔁 What is the LAST line this code shows?
let names = ["Kabir", "Arjun", "Riya"];
for (let i = 0; i < names.length; i++) {
show("Hi, " + names[i]);
} (a) Hi, Kabir (b) Hi, Arjun (c) Hi, Riya - 15.Which of these is true of a tab bar? (a) goes to the last screen (b) hides extra links (c) undoes one move (d) switches main sections
-
16.👆 The user taps the button 2 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 - 17.🚀 A privacy policy tells users ___. (a) what data is collected (b) the app’s colours (c) the screen size (d) the app’s price
- 18.♿ What does a screen reader do? (a) makes text tiny (b) takes photos (c) plays music (d) reads the screen aloud
- 19.🎨 UX stands for user ___. (a) express (b) extra (c) example (d) experience
-
20.👆 The user taps the button 2 times. What number does the label show now?
let coins = 5;
button.onTap = function () {
coins = coins + 1;
label.text = coins;
}; - 21.🗒️ You are planning version 1 of a pocket-money tracker. Which feature is a MUST-HAVE? (a) export to a file (b) show the balance (c) pie-chart colours (d) savings stickers
-
22.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
line 1: let score = 35; // start at 34
line 2: score = score * 2; // double it
line 3: score = score * 2; // double it
line 4: show(score); // show it - 23.🔍 Which is the odd one out? (a) a spelling coach (b) a water reminder (c) a times-table quiz (d) a flashcard trainer
- 24.🔐 Which permission does a bus tracker really need? (a) the microphone (b) contacts (c) the camera (d) location
-
25.🧰 What number does this code show?
function triple(n) {
return n * 3;
}
show(triple(25)); - 26.✏️ A box with a cross in a wireframe usually means ___. (a) a picture goes here (b) delete this (c) an error (d) a closed app
- 27.True or false: “icons with no labels” helps everyone use the app. (a) True (b) False
- 28.🎨 Who should you test the UX with? (a) only yourself (b) nobody (c) the app icon (d) real users
-
29.🐞 This code has a bug. What number does it ACTUALLY show?
line 1: let score = 39; // start at 39
line 2: score = score + 8; // add 5
line 3: score = score - 1; // take away 1
line 4: score = score * 2; // double it
line 5: show(score); // show it -
30.🔀 What does this sign-up rule show?
let age = 8;
if (age >= 13) {
show("Welcome!");
} else {
show("Ask a parent");
} (a) Ask a parent (b) Welcome! -
31.🧪 One test case fails. Which one?
📝 Rule: a quiz is passed with 5 or more right answers.
function result(right) {
if (right > 5) {
return "Pass";
}
return "Try again";
}
Test 1: result(4) → expected Try again
Test 2: result(6) → expected Pass
Test 3: result(5) → expected Pass (a) Test 1 (b) Test 2 (c) Test 3 - 32.🔢 After an app is released, what comes right after “read user reviews”? (a) fix and improve (b) release an update (c) list what to fix (d) test it again
-
33.⚙️ What number does this app show?
let price = 90; // typed by the user
let qty = 2; // typed by the user
let total = price * qty;
show(total); - 34.♿ Does this help everyone, or make the app harder to use: fast-flashing lights? (a) makes it harder (b) helps everyone
-
35.🔘 Our rule: buttons are at least 48 px tall. How many of these buttons follow the rule?
Next button: 40 px tall
Cancel button: 60 px tall
Start button: 56 px tall
Back button: 36 px tall - 36.🎯 Which app would help this user most: a parent waiting at the bus stop? (a) a pocket-money tracker (b) a homework planner (c) a recipe finder (d) a bus tracker
-
37.🔀 What number does this shop app show?
let total = 460;
if (total > 500) {
total = total - 50;
}
show(total); - 38.Which of these app ideas solves no real problem? (a) a medicine reminder (b) a blank grey screen (c) a free study-room finder (d) a library due-date alert
- 39.🔢 After an app is released, which comes LAST? (a) test it again (b) read user reviews (c) release an update (d) fix and improve
-
40.📊 Survey: which problem bugs you most? How many students voted in all?
wasting pocket money: 17 votes
forgetting birthdays: 15 votes
no quiet study place: 3 votes
Answer key
- open the menu
- 3
- 6
- Test 2
- 3.0.4
- something that happens
- 1
- 4
- Caption
- hides extra links
- big touch targets
- post the photo
- 108
- Hi, Riya
- switches main sections
- OFF
- what data is collected
- reads the screen aloud
- experience
- 7
- show the balance
- 136
- a water reminder
- location
- 75
- a picture goes here
- False
- real users
- 92
- Ask a parent
- Test 3
- list what to fix
- 180
- makes it harder
- 2
- a bus tracker
- 460
- a blank grey screen
- release an update
- 35
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students