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.True or false: a result on screen is an output. (a) True (b) False
-
2.🔁 What number does this code show?
let runs = [15, 94, 98, 57];
let count = 0;
for (let i = 0; i < runs.length; i++) {
if (runs[i] >= 70) {
count = count + 1;
}
}
show(count); -
3.🧭 The app has tabs Lessons, Quiz, Me. You start on Lessons, then:
1. tap the Lessons tab
2. open “Edit photo”
3. tap the Lessons tab
Which screen are you on now? (a) Edit photo (b) Lessons (c) Quiz (d) Me -
4.🧪 One test case fails. Which one?
🚚 Rule: delivery is free (0) when the order is 800 or more; otherwise it costs 40.
function delivery(total) {
if (total > 800) {
return 0;
}
return 40;
}
Test 1: delivery(900) → expected 0
Test 2: delivery(800) → expected 0
Test 3: delivery(700) → expected 40 (a) Test 1 (b) Test 3 (c) Test 2 - 5.True or false: a finger hits Like is a text event. (a) True (b) False
- 6.👥 A clinic app has 275 patients, 100 doctors and 160 nurses as users. How many users does it have in all?
- 7.🔁 In for (let i = 0; i < 3; i++), which values does i take? (a) 0, 1, 2, 3 (b) 1, 2, 3 (c) 0, 1, 2 (d) 3
- 8.🧭 Why should every screen show where you are? (a) to hide the menu (b) to look busy (c) so users do not get lost (d) to use more battery
- 9.🔘 Is this good or poor button design: a tiny 20 px button? (a) good design (b) poor design
-
10.⚙️ What number does this app show?
let bill = 88; // typed by the user
let friends = 2; // typed by the user
let share = bill / friends;
show(share); - 11.🔢 In a quiz-app flow, which comes FIRST? (a) see if it is right (b) pick an answer (c) tap “Start quiz” (d) read a question
- 12.🗒️ You are planning version 1 of a water reminder. Which feature is a MUST-HAVE? (a) log a glass of water (b) water animations (c) custom alert sounds (d) share your streak
- 13.🗒️ You are planning version 1 of a homework planner. Which feature can WAIT for a later version? (a) set a due date (b) pick a theme colour (c) add a homework task (d) see tasks by day
- 14.True or false: a water reminder is a health app. (a) False (b) True
- 15.📱 Which one has a web address: an app or a website? (a) an app (b) a website
-
16.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
line 1: let points = 33; // start at 31
line 2: points = points * 2; // double it
line 3: points = points + 2; // add 2
line 4: show(points); // show it -
17.🧪 One test case fails. Which one?
📝 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(6) → expected Pass
Test 2: result(5) → expected Try again
Test 3: result(7) → expected Pass (a) Test 1 (b) Test 3 (c) Test 2 - 18.Which of these is true of a menu button? (a) opens a list of pages (b) goes to the last screen (c) shows 3 to 5 icons (d) sits at the bottom
- 19.Which of these is data? (a) a box to type a name (b) the settings page (c) your high score (d) the home page of an app
-
20.👆 Two designs for the same task (each arrow is one tap). How many taps does Design A need?
Design A: Home → Pay → Cart
Design B: Home → Pens → Address → Results - 21.Which of these is true of a final design? (a) has no real colours (b) shows where things go (c) uses plain grey boxes (d) looks like the real app
-
22.🔁 What number does this code show?
let runs = [70, 50, 81, 70];
let count = 0;
for (let i = 0; i < runs.length; i++) {
if (runs[i] >= 60) {
count = count + 1;
}
}
show(count); -
23.🔘 Our rule: buttons are at least 48 px tall. How many of these buttons follow the rule?
Save button: 40 px tall
Next button: 64 px tall
Cancel button: 52 px tall - 24.🔀 In a good flow, each screen should lead to ___. (a) a random page (b) the same screen (c) a dead end (d) a clear next step
- 25.👥 A school app has 20 students, 230 teachers and 35 parents as users. How many users does it have in all?
- 26.🔍 Which is the odd one out? (a) a sleep tracker (b) a racing challenge (c) a step counter (d) a water reminder
- 27.💾 What is a variable? (a) a type of screen (b) a named box for a value (c) a picture (d) a phone setting
-
28.🧪 How many of these test cases pass?
📝 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(7) → expected Pass
Test 3: result(2) → expected Try again - 29.Which of these is an input? (a) adding up a bill (b) working out a tip (c) a pop-up message (d) typing your age
- 30.🗒️ What is a must-have feature? (a) a colour theme (b) one the app cannot skip (c) a nice extra (d) a sound effect
-
31.🧰 What number does this code show?
function total(price, qty) {
return price * qty;
}
show(total(45, 6)); -
32.📊 Survey: which problem bugs you most? How many more votes did “forgetting homework” get than “forgetting birthdays”?
missing the bus: 5 votes
forgetting birthdays: 17 votes
forgetting homework: 25 votes -
33.🧰 A museum app works out the entry fee. What number does this code show?
function fee(age) {
if (age < 5) {
return 0;
}
return 60;
}
show(fee(8) + fee(2)); - 34.👆 What kind of event is this: a 5-minute alarm ends? (a) a timer event (b) a tap event (c) a load event (d) a text event
- 35.🌗 Is white on dark green easy or hard to read on a button? (a) hard to read (b) easy to read
- 36.🐞 What is a bug? (a) a fast phone (b) a mistake in the code (c) a new feature (d) a nice icon
- 37.True or false: a big-text reader is the best fit for a child saving up for a cycle. (a) False (b) True
- 38.True or false: an app is installed on a phone. (a) True (b) False
-
39.🔁 What is the LAST line this code shows?
let names = ["Zoya", "Meera", "Kabir", "Riya"];
for (let i = 0; i < names.length; i++) {
show("Hi, " + names[i]);
} (a) Hi, Meera (b) Hi, Riya (c) Hi, Zoya (d) Hi, Kabir -
40.🔘 Our rule: buttons are at least 48 px tall. Which button is too small?
Start button: 48 px tall
Save button: 64 px tall
Next button: 32 px tall (a) Save (b) Start (c) Next
Answer key
- True
- 2
- Lessons
- Test 2
- False
- 535
- 0, 1, 2
- so users do not get lost
- poor design
- 44
- tap “Start quiz”
- log a glass of water
- pick a theme colour
- True
- a website
- 64
- Test 1
- opens a list of pages
- your high score
- 2
- looks like the real app
- 3
- 2
- a clear next step
- 285
- a racing challenge
- a named box for a value
- 2
- typing your age
- one the app cannot skip
- 270
- 8
- 60
- a timer event
- easy to read
- a mistake in the code
- False
- True
- Hi, Riya
- Next
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students