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 MVP, the M stands for ___. (a) music (b) mobile (c) minimum (d) maximum
-
2.🔁 What is the LAST line this code shows?
let names = ["Riya", "Arjun", "Kabir"];
for (let i = 0; i < names.length; i++) {
show("Hi, " + names[i]);
} (a) Hi, Riya (b) Hi, Arjun (c) Hi, Kabir - 3.🛠️ At which stage do you write the code? (a) the release stage (b) the idea stage (c) the build stage (d) the plan stage
- 4.🧩 In an app, what is a date picker? (a) a button (b) an input (c) a screen (d) data
- 5.🔢 After an app is released, what comes right after “fix and improve”? (a) read user reviews (b) list what to fix (c) test it again (d) release an update
-
6.🧰 What number does this code show?
function triple(n) {
return n * 3;
}
show(triple(33)); - 7.Which of these is a user need? (a) a reminder alarm (b) “I keep missing the bus” (c) a share button (d) a search bar
- 8.🎯 Is this a user need or a feature: “I keep missing the bus”? (a) a feature (b) a user need
-
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.✏️ What is a wireframe? (a) a type of password (b) the finished app (c) a simple screen sketch (d) a charging cable
- 11.🔍 Which is the odd one out? (a) captions on videos (b) sudden loud sounds (c) text that can grow (d) labels on every icon
-
12.🧭 The app has tabs Home, Search, Profile. You start on Home, then:
1. open “Edit photo”
2. open “Edit photo”
3. open “Score card”
Which screen are you on now? (a) Score card (b) Search (c) Home (d) Edit photo - 13.🌐 Which program do you need to open a website? (a) a calculator (b) a web browser (c) a camera app (d) an app store
- 14.Which of these is true of a wireframe? (a) is a quick sketch (b) has the real colours (c) uses the final pictures (d) shows the real fonts
-
15.🧪 What is the ACTUAL result of Test 3?
🎟️ Rule: a ticket costs 50 for children under 14, and 100 for everyone else.
function price(age) {
if (age <= 14) {
return 50;
}
return 100;
}
Test 1: price(11) → expected 50
Test 2: price(14) → expected 100
Test 3: price(15) → expected 100 - 16.Which of these is true of the back button? (a) opens a list of pages (b) shows 3 to 5 icons (c) switches main sections (d) undoes one move
-
17.🧪 What is the ACTUAL result of Test 2?
🎟️ Rule: a ticket costs 50 for children under 14, and 100 for everyone else.
function price(age) {
if (age <= 14) {
return 50;
}
return 100;
}
Test 1: price(18) → expected 100
Test 2: price(16) → expected 100
Test 3: price(10) → expected 50 -
18.🧭 The app has tabs Lessons, Quiz, Me. You start on Lessons, then:
1. tap the Lessons tab
2. open “Score card”
3. tap the Quiz tab
Which screen are you on now? (a) Me (b) Lessons (c) Quiz (d) Score card - 19.Which of these is true of an app? (a) updates from the store (b) opens in a web browser (c) needs no installing (d) has a web address
- 20.👆 What kind of event is this: the app starts up? (a) a tap event (b) a timer event (c) a load event (d) a text event
- 21.👆 A tap handler runs how many times if the user taps 4 times? (a) 0 (b) 4 (c) 1 (d) 8
-
22.🧪 How many of these test cases pass?
📝 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(7) → expected Pass
Test 2: result(10) → expected Pass
Test 3: result(4) → expected Try again - 23.🔍 Which is the odd one out? (a) a torch (b) a puzzle with levels (c) a unit converter (d) a calculator
- 24.True or false: “captions on videos” makes the app harder to use. (a) True (b) False
- 25.🗒️ You are planning version 1 of a pocket-money tracker. Which feature is a MUST-HAVE? (a) savings stickers (b) add money spent (c) export to a file (d) pie-chart colours
- 26.🗒️ Why keep version 1 small? (a) to learn from users soon (b) to look bigger (c) to confuse users (d) to use up storage
- 27.🧰 What does return do in a function? (a) deletes the app (b) sends back a value (c) repeats the code (d) closes the screen
- 28.Which of these is a user need? (a) a dark mode switch (b) a reminder alarm (c) “I forget my homework” (d) a search bar
- 29.True or false: a 5-minute alarm ends is a load event. (a) True (b) False
- 30.🎨 Is this about UI or UX: how easy sign-up is? (a) UI (b) UX
- 31.Which of these is an output? (a) speaking a command (b) a beep sound (c) sorting the scores (d) working out a tip
- 32.♿ A screen has 7 icon buttons. Only 6 of them have a text label for screen readers. How many still need a label?
- 33.⚙️ In an app, is sorting the scores an input, processing or an output? (a) output (b) processing (c) input
-
34.🧪 One test case fails. Which one?
🚚 Rule: delivery is free (0) when the order is 400 or more; otherwise it costs 40.
function delivery(total) {
if (total > 400) {
return 0;
}
return 40;
}
Test 1: delivery(400) → expected 0
Test 2: delivery(550) → expected 0
Test 3: delivery(250) → expected 40 (a) Test 1 (b) Test 3 (c) Test 2 -
35.⚙️ What number does this app show?
let km = 9; // typed by the user
let metres = km * 1000;
show(metres); - 36.💾 Where should the app save chat messages to friends: on the phone or in the cloud? (a) in the cloud (b) on the phone
-
37.🔀 What does this battery rule show?
let battery = 12;
if (battery < 20) {
show("Low battery");
} else {
show("Battery OK");
} (a) Battery OK (b) Low battery -
38.🧰 A museum app works out the entry fee. What number does this code show?
function fee(age) {
if (age < 5) {
return 0;
}
return 40;
}
show(fee(1) + fee(8)); - 39.🔀 What does >= mean? (a) less than (b) smaller or equal (c) not equal (d) greater than or equal
- 40.True or false: a draft you are typing fits saving in the cloud. (a) True (b) False
Answer key
- minimum
- Hi, Kabir
- the build stage
- an input
- test it again
- 99
- “I keep missing the bus”
- a user need
- 0
- a simple screen sketch
- sudden loud sounds
- Score card
- a web browser
- is a quick sketch
- 100
- undoes one move
- 100
- Quiz
- updates from the store
- a load event
- 4
- 3
- a puzzle with levels
- False
- add money spent
- to learn from users soon
- sends back a value
- “I forget my homework”
- False
- UX
- a beep sound
- 1
- processing
- Test 1
- 9000
- in the cloud
- Low battery
- 40
- greater than or equal
- False
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students