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.🧪 One test case fails. Which one?
🎟️ Rule: a ticket costs 50 for children under 10, and 100 for everyone else.
function price(age) {
if (age <= 10) {
return 50;
}
return 100;
}
Test 1: price(10) → expected 100
Test 2: price(11) → expected 100
Test 3: price(6) → expected 50 (a) Test 3 (b) Test 2 (c) Test 1 - 2.True or false: you write the code at the build stage. (a) True (b) False
- 3.Which of these is an input? (a) sorting the scores (b) a result on screen (c) speaking a command (d) a buzz (vibration)
- 4.Which of these is true of a website? (a) opens from a link (b) has a home-screen icon (c) is installed on a phone (d) updates from the store
- 5.Which of these is a feature? (a) a dark mode switch (b) “I keep missing the bus” (c) “Small text is hard” (d) “What should I cook?”
- 6.🎨 Is this about UI or UX: how easy sign-up is? (a) UI (b) UX
-
7.🔀 What does this PIN rule show?
let pin = "741";
if (pin.length === 4) {
show("PIN saved");
} else {
show("Use 4 digits");
} (a) Use 4 digits (b) PIN saved - 8.✏️ Why draw a wireframe before coding? (a) it saves data (b) changes are quick (c) it runs the app (d) it adds colours
-
9.🧰 A museum app works out the entry fee. What number does this code show?
function fee(age) {
if (age < 5) {
return 0;
}
return 20;
}
show(fee(2) + fee(1)); -
10.🔘 Our rule: buttons are at least 48 px tall. Which button is too small?
Done button: 64 px tall
Back button: 40 px tall
Next button: 68 px tall (a) Done (b) Back (c) Next - 11.🗂️ What kind of app is a torch? (a) a game (b) a tool app (c) a health app (d) a learning app
-
12.📊 Survey: which problem bugs you most? Which problem should your app solve first?
losing water bottles: 8 votes
no quiet study place: 6 votes
wasting pocket money: 13 votes (a) losing water bottles (b) wasting pocket money (c) no quiet study place - 13.🧭 Where is a tab bar usually placed in a phone app? (a) inside a button (b) at the bottom (c) in the middle (d) nowhere
- 14.🔢 After an app is released, which comes first: “read user reviews” or “release an update”? (a) release an update (b) read user reviews
- 15.🔢 After an app is released, which comes first: “test it again” or “release an update”? (a) test it again (b) release an update
- 16.Which of these is about UI (the look)? (a) how fast a task is done (b) the font size (c) how users feel after (d) whether users get lost
- 17.🔀 What is a user flow? (a) a type of font (b) a colour theme (c) the path through screens (d) a charging cable
-
18.🔁 What number does this code show?
let scores = [54, 16, 60];
let count = 0;
for (let i = 0; i < scores.length; i++) {
if (scores[i] >= 40) {
count = count + 1;
}
}
show(count); -
19.🧪 How many of these test cases pass?
🎟️ Rule: a ticket costs 50 for children under 9, and 100 for everyone else.
function price(age) {
if (age < 9) {
return 50;
}
return 100;
}
Test 1: price(5) → expected 50
Test 2: price(10) → expected 100
Test 3: price(9) → expected 100 -
20.🖼️ How many parts (boxes) does this wireframe have?
[ search box ]
[ big picture ]
[ tab bar ]
[ Add button ]
[ title text ]
[ list of items ] -
21.🔁 What is the LAST line this code shows?
let names = ["Arjun", "Zoya", "Aman", "Riya", "Meera"];
for (let i = 0; i < names.length; i++) {
show("Hi, " + names[i]);
} (a) Hi, Meera (b) Hi, Aman (c) Hi, Arjun (d) Hi, Zoya -
22.🐞 This code has a bug. What number does it ACTUALLY show?
line 1: let points = 41; // start at 41
line 2: points = points * 2; // double it
line 3: points = points + 4; // take away 4
line 4: show(points); // show it -
23.🧩 Which of these is a button on this screen?
[title] New Note
[text box] City
[button] Back
[button] Cancel (a) City (b) Back - 24.Which of these fits saving in the cloud? (a) a draft you are typing (b) photos on two devices (c) notes to read offline (d) the sound on/off setting
-
25.🖼️ In this wireframe (top to bottom), what is right above the top bar?
[ Save button ]
[ search box ]
[ Add button ]
[ top bar ]
[ big picture ]
[ list of items ] (a) list of items (b) Save button (c) Add button (d) big picture -
26.⚙️ Which line does the processing (works out the answer)?
line 1: let km = 3; // typed by the user
line 2: let metres = km * 1000;
line 3: show(metres); (a) line 3 (b) line 2 (c) line 1 - 27.🔍 Which is the odd one out? (a) checking a password (b) working out a tip (c) a result on screen (d) sorting the scores
- 28.Which of these helps everyone use the app? (a) icons with no labels (b) fast-flashing lights (c) strong colour contrast (d) colour as the only clue
- 29.🗒️ You are planning version 1 of a quiz app. Which feature is a MUST-HAVE? (a) background music (b) confetti effects (c) an avatar shop (d) show a question
-
30.🧪 One test case fails. Which one?
🎟️ Rule: a ticket costs 50 for children under 8, and 100 for everyone else.
function price(age) {
if (age <= 8) {
return 50;
}
return 100;
}
Test 1: price(10) → expected 100
Test 2: price(8) → expected 100
Test 3: price(5) → expected 50 (a) Test 2 (b) Test 1 (c) Test 3 - 31.True or false: the icon shapes is about UI (the look). (a) True (b) False
-
32.👆 The user taps the button 6 times. What number does the label show now?
let points = 8;
button.onTap = function () {
points = points + 3;
label.text = points;
}; - 33.👆 Code that runs when an event happens is called a ___. (a) handler (b) headline (c) hashtag (d) header
-
34.🧭 The app has tabs Home, Search, Profile. You start on Home, then:
1. open “Map”
2. tap Back
3. tap the Home tab
4. tap the Profile tab
5. open “Score card”
Which screen are you on now? (a) Score card (b) Home (c) Map (d) Search - 35.Which colour pair is easy to read? (a) red on green (b) pale pink on white (c) dark blue on black (d) white on black
- 36.True or false: a countdown hits zero is a text event. (a) False (b) True
- 37.🔍 Which is the odd one out? (a) sketch the screens (b) put it on an app store (c) pick the features (d) draw the user flow
-
38.⚙️ What number does this app show?
let price = 45; // typed by the user
let qty = 6; // typed by the user
let total = price * qty;
show(total); -
39.👆 Two designs for the same task (each arrow is one tap). How many taps does the shorter design save?
Design A: Home → Offers → Confirm → Size → Results → Item
Design B: Home → Offers → Search → Menu - 40.🔢 In a food-order flow, which comes first: “pick a dish” or “check the cart”? (a) check the cart (b) pick a dish
Answer key
- Test 1
- True
- speaking a command
- opens from a link
- a dark mode switch
- UX
- Use 4 digits
- changes are quick
- 0
- Back
- a tool app
- wasting pocket money
- at the bottom
- read user reviews
- test it again
- the font size
- the path through screens
- 2
- 3
- 6
- Hi, Meera
- 86
- Back
- photos on two devices
- Add button
- line 2
- a result on screen
- strong colour contrast
- show a question
- Test 2
- True
- 26
- handler
- Score card
- white on black
- False
- put it on an app store
- 270
- 2
- pick a dish
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students