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 is the odd one out? (a) adding up a bill (b) sorting the scores (c) a result on screen (d) checking a password
- 2.🔀 What is a user flow? (a) a colour theme (b) a charging cable (c) the path through screens (d) a type of font
- 3.True or false: your high score is data. (a) False (b) True
-
4.🔁 What number does this code show?
let runs = [10, 9, 17, 3];
let best = 0;
for (let i = 0; i < runs.length; i++) {
if (runs[i] > best) {
best = runs[i];
}
}
show(best); -
5.🧪 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(5) → expected Pass
Test 2: result(3) → expected Try again
Test 3: result(6) → expected Pass (a) Test 1 (b) Test 3 (c) Test 2 -
6.🔁 What number does this code show?
let marks = [17, 98, 18];
let count = 0;
for (let i = 0; i < marks.length; i++) {
if (marks[i] >= 50) {
count = count + 1;
}
}
show(count); - 7.True or false: an app has a home-screen icon. (a) False (b) True
- 8.💡 Which app idea solves this problem: a patient misses doses? (a) a study-room finder (b) a bill splitter (c) a homework planner (d) a medicine reminder
- 9.True or false: a big, easy tap area is poor button design. (a) True (b) False
-
10.🗒️ Version 1 of a bus tracker must be ready in 7 days. How many days are left for extras after the must-haves?
see where the bus is: 1 days
show arrival time: 2 days
pick your bus stop: 2 days - 11.🧩 In an app, what is today’s step count? (a) a screen (b) a button (c) data (d) an input
-
12.🧪 How many of these test cases pass?
📝 Rule: a quiz is passed with 8 or more right answers.
function result(right) {
if (right >= 8) {
return "Pass";
}
return "Try again";
}
Test 1: result(9) → expected Pass
Test 2: result(12) → expected Pass
Test 3: result(6) → expected Try again - 13.True or false: a barcode scanner needs the camera. (a) False (b) True
- 14.True or false: notes to read offline fits saving on the phone. (a) False (b) True
- 15.👆 What kind of event is this: the user taps Play? (a) a timer event (b) a load event (c) a text event (d) a tap event
- 16.Which of these is true of an app? (a) is installed on a phone (b) opens from a link (c) has a web address (d) opens in a web browser
- 17.🧰 What is a function? (a) a named block of code (b) a screen size (c) a list of colours (d) a type of phone
-
18.🔀 What does this PIN rule show?
let pin = "1990";
if (pin.length === 4) {
show("PIN saved");
} else {
show("Use 4 digits");
} (a) Use 4 digits (b) PIN saved -
19.🧩 Which of these is a button on this screen?
[title] Order Snacks
[text box] Phone
[button] Cancel
[text box] City
[button] Help (a) Help (b) City (c) Phone -
20.💾 What does this code show? (Positions start at 0.)
let friends = ["Meera", "Kabir", "Arjun", "Aman", "Riya"];
show(friends[3]); (a) Aman (b) Meera (c) Arjun (d) Kabir - 21.🔍 Which is the odd one out? (a) strong colour contrast (b) icons with no labels (c) tiny tap areas (d) colour as the only clue
-
22.🧩 Which of these is a button on this screen?
[title] Settings
[text box] Notes
[slider] Volume
[button] Done
[switch] Sound (a) Sound (b) Volume (c) Notes (d) Done - 23.✏️ A box with a cross in a wireframe usually means ___. (a) delete this (b) a closed app (c) a picture goes here (d) an error
-
24.🧪 How many of these test cases pass?
📝 Rule: a quiz is passed with 7 or more right answers.
function result(right) {
if (right > 7) {
return "Pass";
}
return "Try again";
}
Test 1: result(4) → expected Try again
Test 2: result(9) → expected Pass
Test 3: result(7) → expected Pass - 25.🗒️ You are planning version 1 of a pocket-money tracker. Which feature is a MUST-HAVE? (a) export to a file (b) add money received (c) pie-chart colours (d) savings stickers
- 26.Which of these is true of a final design? (a) is a quick sketch (b) shows where things go (c) shows the real fonts (d) has no real colours
- 27.🛠️ At which stage do you talk to possible users? (a) the build stage (b) the plan stage (c) the release stage (d) the idea stage
- 28.👆 What kind of event is this: a finger hits Like? (a) a text event (b) a load event (c) a tap event (d) a timer event
-
29.🧩 Which of these is a button on this screen?
[title] Order Snacks
[button] Next
[text box] City
[button] Done
[text box] Name
[button] Start
[switch] Show hints (a) Name (b) Show hints (c) City (d) Done -
30.🧰 What does this code show?
function greet(name) {
return "Welcome, " + name + "!";
}
show(greet("Kabir")); (a) Welcome, name! (b) Kabir (c) Welcome, Kabir! (d) greet - 31.Which of these app ideas solves no real problem? (a) an app that just says hi (b) a lost-and-found board (c) a medicine reminder (d) a bill splitter
- 32.True or false: the user presses Save is a text event. (a) False (b) True
-
33.👆 The user taps the button 7 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) ON (b) OFF - 34.True or false: a weather-near-me app needs your location. (a) False (b) True
- 35.Which of these is a button? (a) the home page of an app (b) your saved notes (c) tap to Start (d) a date picker
- 36.💡 An app that tries to do everything at once is usually ___. (a) hard to use (b) very small (c) easy to build (d) finished fast
-
37.🧪 What is the ACTUAL result of Test 3?
🎟️ 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(16) → expected 100
Test 2: price(15) → expected 100
Test 3: price(6) → expected 50 -
38.🐞 Each comment says what its line SHOULD do. Which line has the bug?
line 1: let score = 45; // start at 45
line 2: score = score - 2; // add 2
line 3: score = score - 3; // take away 3
line 4: show(score); // show it (a) line 2 (b) line 1 (c) line 3 - 39.Which of these requests asks for too much? (a) calling app → contacts (b) map app → location (c) camera app → camera (d) timer → your photos
- 40.🎯 An app for “everyone” with no clear user usually ___. (a) wins every prize (b) needs no testing (c) is easy to build (d) helps nobody well
Answer key
- a result on screen
- the path through screens
- True
- 17
- Test 1
- 1
- True
- a medicine reminder
- False
- 2
- data
- 3
- True
- True
- a tap event
- is installed on a phone
- a named block of code
- PIN saved
- Help
- Aman
- strong colour contrast
- Done
- a picture goes here
- 2
- add money received
- shows the real fonts
- the idea stage
- a tap event
- Done
- Welcome, Kabir!
- an app that just says hi
- False
- ON
- True
- tap to Start
- hard to use
- 50
- line 2
- timer → your photos
- helps nobody well
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students