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.Which of these is a button? (a) the settings page (b) your high score (c) the game-over page (d) tap to Save
-
2.🖼️ In this wireframe (top to bottom), what is right below the filter buttons?
[ title text ]
[ search box ]
[ top bar ]
[ filter buttons ]
[ Add button ]
[ menu icon ] (a) menu icon (b) Add button (c) top bar (d) search box -
3.🧪 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(15) → expected 100
Test 2: price(9) → expected 50
Test 3: price(11) → expected 100 (a) Test 3 (b) Test 1 (c) Test 2 -
4.🖼️ In this wireframe (top to bottom), what is right below the menu icon?
[ tab bar ]
[ filter buttons ]
[ Save button ]
[ search box ]
[ menu icon ]
[ title text ] (a) tab bar (b) filter buttons (c) title text (d) Save button -
5.🧩 Which of these is a button on this screen?
[title] Settings
[button] Start
[text box] Notes
[text box] Due date
[text box] Phone (a) Notes (b) Due date (c) Phone (d) Start -
6.🧪 What is the ACTUAL result of Test 1?
🚚 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(300) → expected 0
Test 2: delivery(150) → expected 40
Test 3: delivery(450) → expected 0 - 7.🔢 In a food-order flow, which comes first: “add it to the cart” or “track the order”? (a) add it to the cart (b) track the order
- 8.🧰 In function tip(bill), what is bill? (a) a screen (b) a parameter (c) an event (d) a loop
- 9.🧪 What is the actual result of a test? (a) the test’s number (b) what we hope for (c) what the app really does (d) the app’s name
-
10.🔀 What does this PIN rule show?
let pin = "682";
if (pin.length === 4) {
show("PIN saved");
} else {
show("Use 4 digits");
} (a) PIN saved (b) Use 4 digits -
11.⚙️ What number does this app show?
let price = 150; // typed by the user
let off = 10; // typed by the user
let pay = price - off;
show(pay); -
12.🗒️ Version 1 of a bus tracker must be ready in 15 days. How many days are left for extras after the must-haves?
see where the bus is: 4 days
show arrival time: 4 days
pick your bus stop: 5 days -
13.🧩 Which of these is a button on this screen?
[title] Add Homework
[text box] Notes
[slider] Text size
[switch] Sound
[text box] Age
[button] Send
[text box] City (a) Send (b) Notes (c) Age (d) City - 14.🗒️ In MVP, the M stands for ___. (a) music (b) minimum (c) mobile (d) maximum
-
15.🧰 What number does this code show?
function points(stars) {
return stars * 10 + 5;
}
show(points(2) + points(1)); - 16.♿ Does this help everyone, or make the app harder to use: colour as the only clue? (a) helps everyone (b) makes it harder
-
17.🔀 What does this battery rule show?
let battery = 65;
if (battery < 20) {
show("Low battery");
} else {
show("Battery OK");
} (a) Battery OK (b) Low battery -
18.💾 What number does this code show?
let score = 7;
score = score - 6;
score = score + 4;
show(score); -
19.👆 The user taps the button 5 times. What number does the label show now?
let stars = 9;
button.onTap = function () {
stars = stars + 1;
label.text = stars;
}; - 20.True or false: checking a password is an input. (a) True (b) False
- 21.🚀 Your app is at version 1.3.3. The next release fixes a small bug. What is its version number? (a) 1.4.0 (b) 2.0.0 (c) 1.4.3 (d) 1.3.4
- 22.🧭 What does the back button usually do? (a) goes to the last screen (b) deletes the page (c) opens settings (d) closes all apps
- 23.🚀 Your app is at version 2.0.9. The next release adds a new feature. What is its version number? (a) 2.0.10 (b) 2.1.0 (c) 3.0.0 (d) 2.1.9
- 24.Which of these happens at the build stage? (a) write the store text (b) try every button (c) write the code (d) talk to possible users
- 25.Which of these is an output? (a) tapping a button (b) speaking a command (c) a result on screen (d) adding up a bill
- 26.🧪 A test case is an input together with its ___. (a) app icon (b) expected result (c) screen colour (d) font size
- 27.🎯 Who are the users of an app? (a) the app icons (b) only the testers (c) only the coders (d) the people who use it
-
28.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
line 1: let score = 48; // start at 47
line 2: score = score * 2; // double it
line 3: score = score * 2; // double it
line 4: show(score); // show it - 29.🔀 A screen with no way forward or back is called a ___. (a) dead end (b) home screen (c) tab bar (d) shortcut
- 30.🎨 UI stands for user ___. (a) input (b) interface (c) internet (d) idea
- 31.🔢 When you make an app, which comes first: “get an idea” or “build the app”? (a) get an idea (b) build the app
- 32.True or false: a pocket-money tracker is the best fit for a teen whose money runs out by Friday. (a) True (b) False
- 33.🧩 In an app, what is your saved notes? (a) data (b) a button (c) an input (d) a screen
- 34.✏️ Is this true of a wireframe or of a final design: is a quick sketch? (a) a final design (b) a wireframe
-
35.🔘 Our rule: buttons are at least 48 px tall. Which button is too small?
Next button: 48 px tall
Done button: 52 px tall
Start button: 28 px tall
Cancel button: 68 px tall (a) Cancel (b) Next (c) Done (d) Start -
36.💾 What does this code show? (Positions start at 0.)
let notes = ["Sports", "Science", "Music", "Hindi"];
show(notes[1]); (a) Science (b) Hindi (c) Music (d) Sports - 37.🎨 Is this about UI or UX: the font size? (a) UI (b) UX
- 38.True or false: strong colour contrast is good button design. (a) True (b) False
-
39.🔁 What number does this code show?
let scores = [10, 74, 70];
let count = 0;
for (let i = 0; i < scores.length; i++) {
if (scores[i] >= 40) {
count = count + 1;
}
}
show(count); -
40.🔀 What does this battery rule show?
let battery = 55;
if (battery < 20) {
show("Low battery");
} else {
show("Battery OK");
} (a) Low battery (b) Battery OK
Answer key
- tap to Save
- Add button
- Test 3
- title text
- Start
- 40
- add it to the cart
- a parameter
- what the app really does
- Use 4 digits
- 140
- 2
- Send
- minimum
- 40
- makes it harder
- Battery OK
- 5
- 14
- False
- 1.3.4
- goes to the last screen
- 2.1.0
- write the code
- a result on screen
- expected result
- the people who use it
- 188
- dead end
- interface
- get an idea
- True
- data
- a wireframe
- Start
- Science
- UI
- True
- 2
- Battery OK
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students