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: notes to read offline fits saving in the cloud. (a) True (b) False
- 2.🧪 What is the actual result of a test? (a) the test’s number (b) the app’s name (c) what we hope for (d) what the app really does
-
3.🧪 One test case fails. Which one?
🎟️ 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(9) → expected 100
Test 2: price(11) → expected 100
Test 3: price(8) → expected 50 (a) Test 1 (b) Test 2 (c) Test 3 -
4.🧪 How many of these test cases pass?
🎟️ 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(11) → expected 100
Test 2: price(7) → expected 50
Test 3: price(16) → expected 100 - 5.🧰 Why write a function? (a) to slow the app (b) to make code longer (c) to hide errors (d) to reuse code
- 6.Which of these is true of a website? (a) has a home-screen icon (b) comes from an app store (c) is installed on a phone (d) opens in a web browser
- 7.🗒️ Why keep version 1 small? (a) to use up storage (b) to learn from users soon (c) to confuse users (d) to look bigger
-
8.🔁 What is the LAST line this code shows?
let names = ["Aman", "Riya", "Arjun", "Meera"];
for (let i = 0; i < names.length; i++) {
show("Hi, " + names[i]);
} (a) Hi, Meera (b) Hi, Arjun (c) Hi, Riya (d) Hi, Aman -
9.🔁 What number does this code show?
let marks = [1, 3, 11, 9];
let total = 0;
for (let i = 0; i < marks.length; i++) {
total = total + marks[i];
}
show(total); - 10.🎯 Is this a user need or a feature: “I forget my homework”? (a) a user need (b) a feature
-
11.🧪 How many of these test cases pass?
🎟️ Rule: a ticket costs 50 for children under 12, and 100 for everyone else.
function price(age) {
if (age <= 12) {
return 50;
}
return 100;
}
Test 1: price(14) → expected 100
Test 2: price(8) → expected 50
Test 3: price(12) → expected 100 - 12.🔢 After an app is released, which comes FIRST? (a) fix and improve (b) read user reviews (c) release an update (d) list what to fix
-
13.🔘 Our rule: buttons are at least 48 px tall. Which button is too small?
Next button: 28 px tall
Help button: 72 px tall
Send button: 48 px tall (a) Send (b) Next (c) Help - 14.💡 Which is a problem statement? (a) “Use blue buttons” (b) “Kids forget homework” (c) “Make it fast” (d) “Add a logo”
- 15.👥 A school app has 110 students, 185 teachers and 35 parents as users. How many users does it have in all?
-
16.🐞 This code has a bug. What number does it ACTUALLY show?
line 1: let score = 50; // start at 50
line 2: score = score - 2; // take away 1
line 3: score = score + 4; // add 4
line 4: score = score - 3; // take away 3
line 5: show(score); // show it -
17.🧰 What number does this code show?
function double(n) {
return n * 2;
}
show(double(12)); - 18.🚀 A privacy policy tells users ___. (a) the app’s price (b) what data is collected (c) the screen size (d) the app’s colours
- 19.Which of these is an input? (a) a buzz (vibration) (b) sorting the scores (c) a beep sound (d) typing your age
- 20.🔢 In a photo-post flow, what comes right after “write a caption”? (a) add a filter (b) open the camera screen (c) take the photo (d) post the photo
- 21.🐞 Finding and fixing bugs is called ___. (a) downloading (b) designing (c) decorating (d) debugging
- 22.🐞 A comment in code (after //) is for ___. (a) the battery (b) the phone screen (c) the app store (d) people reading the code
-
23.🐞 Each comment says what its line SHOULD do. Which line has the bug?
line 1: let lives = 40; // start at 39
line 2: lives = lives + 2; // add 2
line 3: lives = lives + 3; // add 3
line 4: show(lives); // show it (a) line 3 (b) line 2 (c) line 1 - 24.True or false: you spot a problem to solve at the test stage. (a) True (b) False
-
25.🔁 What number does this code show?
let marks = [13, 6, 12];
let total = 0;
for (let i = 0; i < marks.length; i++) {
total = total + marks[i];
}
show(total); -
26.🧩 How many buttons does this app screen have?
[title] Order Snacks
[button] Cancel
[text box] Name
[button] Next - 27.🔍 Which is the odd one out? (a) a times-table quiz (b) a spelling coach (c) a flashcard trainer (d) a step counter
- 28.🔍 Which is the odd one out? (a) tapping a button (b) taking a photo (c) speaking a command (d) a result on screen
-
29.🧭 The app has tabs Lessons, Quiz, Me. You start on Lessons, then:
1. open “Match report”
2. open “Help page”
3. open “Map”
Which screen are you on now? (a) Lessons (b) Match report (c) Map (d) Help page - 30.📱 Which one opens in a web browser: an app or a website? (a) an app (b) a website
-
31.🗒️ Version 1 of a quiz app must be ready in 11 days. How many days are left for extras after the must-haves?
show a question: 1 days
check the answer: 4 days
show the score: 5 days - 32.📅 An app team plans for 4 days, builds for 9 days, tests for 3 days and releases on 1 more day. Planning starts on day 1. On which day does building finish?
-
33.🧰 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(3) + fee(1)); - 34.🔢 In a quiz-app flow, which comes FIRST? (a) tap “Start quiz” (b) see if it is right (c) see the final score (d) read a question
- 35.Which of these app ideas solves no real problem? (a) a bill splitter (b) a library due-date alert (c) a lost-and-found board (d) a page of random dots
- 36.🗒️ In MVP, the M stands for ___. (a) mobile (b) maximum (c) music (d) minimum
- 37.🧩 Which input is best for typing your name? (a) a switch (b) a slider (c) a picture (d) a text box
- 38.True or false: sorting the scores is an input. (a) False (b) True
- 39.Which of these fits saving in the cloud? (a) notes to read offline (b) the sound on/off setting (c) a shared to-do list (d) a draft you are typing
- 40.👆 What kind of event is this: one second passes? (a) a load event (b) a timer event (c) a tap event (d) a text event
Answer key
- False
- what the app really does
- Test 1
- 3
- to reuse code
- opens in a web browser
- to learn from users soon
- Hi, Meera
- 24
- a user need
- 2
- read user reviews
- Next
- “Kids forget homework”
- 330
- 49
- 24
- what data is collected
- typing your age
- post the photo
- debugging
- people reading the code
- line 1
- False
- 31
- 2
- a step counter
- a result on screen
- Map
- a website
- 1
- 13
- 0
- tap “Start quiz”
- a page of random dots
- minimum
- a text box
- False
- a shared to-do list
- a timer event
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students