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) sudden loud sounds (b) captions on videos (c) colour as the only clue (d) tiny tap areas
- 2.🧰 What is a function? (a) a type of phone (b) a screen size (c) a named block of code (d) a list of colours
-
3.🧪 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(3) → expected Try again
Test 2: result(6) → expected Pass
Test 3: result(7) → expected Pass (a) Test 2 (b) Test 3 (c) Test 1 -
4.👆 Two designs for the same task (each arrow is one tap). Which needs FEWER taps?
Design A: Home → Pens → Shop → Results → Offers → Address → Menu
Design B: Home → Pens → Menu → Pay → Offers (a) Design A (b) Design B -
5.🔁 What is the LAST line this code shows?
let names = ["Aman", "Riya", "Meera"];
for (let i = 0; i < names.length; i++) {
show("Hi, " + names[i]);
} (a) Hi, Riya (b) Hi, Meera (c) Hi, Aman -
6.🧰 A museum app works out the entry fee. What number does this code show?
function fee(age) {
if (age < 5) {
return 0;
}
return 50;
}
show(fee(2) + fee(7)); - 7.🔢 In a food-order flow, which comes first: “open the menu” or “check the cart”? (a) check the cart (b) open the menu
- 8.📱 Which one has a home-screen icon: an app or a website? (a) a website (b) an app
- 9.📱 Which one comes from an app store: an app or a website? (a) an app (b) a website
-
10.👆 The user taps the button 3 times. What number does the label show now?
let likes = 0;
button.onTap = function () {
if (likes < 2) {
likes = likes + 1;
}
label.text = likes;
}; -
11.📊 Survey: which problem bugs you most? Which problem should your app solve first?
forgetting homework: 11 votes
no quiet study place: 25 votes
forgetting birthdays: 21 votes (a) forgetting birthdays (b) no quiet study place (c) forgetting homework -
12.🧰 What number does this code show?
function total(price, qty) {
return price * qty;
}
show(total(60, 3)); - 13.Which of these is true of a website? (a) updates from the store (b) has a home-screen icon (c) opens from a link (d) is installed on a phone
-
14.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
line 1: let coins = 41; // start at 41
line 2: coins = coins * 2; // double it
line 3: coins = coins * 2; // double it
line 4: coins = coins + 1; // take away 1
line 5: show(coins); // show it -
15.🧩 Which of these is a button on this screen?
[title] Edit Profile
[button] Back
[text box] Notes
[switch] Show hints (a) Notes (b) Show hints (c) Back - 16.🧭 Tapping a tab usually takes you to ___. (a) that tab’s main screen (b) the last app used (c) the phone settings (d) a random page
- 17.True or false: a library due-date alert solves no real problem. (a) False (b) True
- 18.True or false: notes to read offline fits saving on the phone. (a) True (b) False
- 19.🧪 What is the actual result of a test? (a) the test’s number (b) the app’s name (c) what the app really does (d) what we hope for
- 20.True or false: a big, easy tap area is poor button design. (a) True (b) False
- 21.🔁 In for (let i = 0; i < 3; i++), which values does i take? (a) 3 (b) 0, 1, 2, 3 (c) 1, 2, 3 (d) 0, 1, 2
-
22.🔁 What number does this code show?
let marks = [75, 58, 74];
let count = 0;
for (let i = 0; i < marks.length; i++) {
if (marks[i] >= 60) {
count = count + 1;
}
}
show(count); - 23.True or false: a recipe finder is the best fit for a teen learning to make snacks. (a) True (b) False
- 24.True or false: how many taps it takes is about UX (the experience). (a) False (b) True
-
25.🧩 How many buttons does this app screen have?
[title] Add Homework
[button] Back
[text box] City
[button] Cancel - 26.🔀 Why plan the user flow before building? (a) so each step is clear (b) to hide the buttons (c) to add more taps (d) to skip testing
- 27.🐞 What is a bug? (a) a nice icon (b) a new feature (c) a fast phone (d) a mistake in the code
-
28.🧪 What is the ACTUAL result of Test 1?
🚚 Rule: delivery is free (0) when the order is 600 or more; otherwise it costs 40.
function delivery(total) {
if (total > 600) {
return 0;
}
return 40;
}
Test 1: delivery(550) → expected 40
Test 2: delivery(600) → expected 0
Test 3: delivery(800) → expected 0 - 29.👥 A school app has 65 students, 245 teachers and 75 parents as users. How many more teachers than parents are there?
- 30.👆 A tap handler runs how many times if the user taps 4 times? (a) 0 (b) 8 (c) 4 (d) 1
-
31.🧩 Which of these is a button on this screen?
[title] Add Homework
[switch] Dark mode
[text box] Age
[button] Next
[button] Send
[text box] Name
[button] Done (a) Dark mode (b) Age (c) Send (d) Name -
32.🐞 This code has a bug. What number does it ACTUALLY show?
line 1: let lives = 51; // start at 49
line 2: lives = lives * 2; // double it
line 3: lives = lives + 6; // add 6
line 4: lives = lives * 2; // double it
line 5: show(lives); // show it - 33.🎯 Who are the users of an app? (a) only the coders (b) the people who use it (c) the app icons (d) only the testers
-
34.⚙️ Which line does the processing (works out the answer)?
line 1: let bill = 236; // typed by the user
line 2: let friends = 4; // typed by the user
line 3: let share = bill / friends;
line 4: show(share); (a) line 2 (b) line 1 (c) line 3 (d) line 4 - 35.🔢 In a sign-up flow, which comes FIRST? (a) make a password (b) type name and email (c) open the app (d) enter the code sent
- 36.True or false: a homework photo scanner needs your location. (a) False (b) True
- 37.True or false: an app that just says hi solves no real problem. (a) True (b) False
- 38.🔢 When you make an app, which comes FIRST? (a) release it (b) test the app (c) get an idea (d) build the app
- 39.True or false: taking a photo is an input. (a) False (b) True
-
40.📊 Survey: which problem bugs you most? Which problem should your app solve first?
losing water bottles: 19 votes
forgetting birthdays: 24 votes
wasting pocket money: 16 votes (a) wasting pocket money (b) losing water bottles (c) forgetting birthdays
Answer key
- captions on videos
- a named block of code
- Test 2
- Design B
- Hi, Meera
- 50
- open the menu
- an app
- an app
- 2
- no quiet study place
- 180
- opens from a link
- 163
- Back
- that tab’s main screen
- False
- True
- what the app really does
- False
- 0, 1, 2
- 2
- True
- True
- 2
- so each step is clear
- a mistake in the code
- 40
- 170
- 4
- Send
- 216
- the people who use it
- line 3
- open the app
- False
- True
- get an idea
- True
- forgetting birthdays
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students