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.🔁 What number does this code show?
let scores = [1, 3, 14];
let total = 0;
for (let i = 0; i < scores.length; i++) {
total = total + scores[i];
}
show(total); - 2.🗒️ You are planning version 1 of a pocket-money tracker. Which feature is a MUST-HAVE? (a) pie-chart colours (b) show the balance (c) export to a file (d) savings stickers
- 3.🎯 Is this a user need or a feature: “Small text is hard”? (a) a feature (b) a user need
- 4.True or false: a tiny 20 px button is poor button design. (a) False (b) True
- 5.True or false: a draft you are typing fits saving in the cloud. (a) False (b) True
-
6.🔀 Which badge does this quiz app show?
let marks = 50;
if (marks >= 80) {
show("Gold");
} else if (marks >= 50) {
show("Silver");
} else {
show("Bronze");
} (a) Silver (b) Gold (c) Bronze - 7.🔁 list.length tells you ___. (a) the first item (b) how many items it has (c) the last item (d) the biggest item
- 8.📅 An app team plans for 2 days, builds for 10 days, tests for 1 days and releases on 1 more day. How many days does the whole project take?
- 9.⚙️ In an app, is taking a photo an input, processing or an output? (a) output (b) processing (c) input
-
10.🧪 What is the ACTUAL result of Test 1?
🎟️ 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(11) → expected 50
Test 2: price(18) → expected 100
Test 3: price(12) → expected 100 -
11.📊 Survey: which problem bugs you most? Which problem should your app solve first?
missing the bus: 24 votes
forgetting homework: 11 votes
wasting pocket money: 22 votes (a) wasting pocket money (b) forgetting homework (c) missing the bus -
12.👆 Two designs for the same task (each arrow is one tap). How many taps does the shorter design save?
Design A: Home → Cart → Shop
Design B: Home → Item → Pay → Shop → Menu → Confirm - 13.Which of these is true of a tab bar? (a) undoes one move (b) opens a list of pages (c) goes to the last screen (d) switches main sections
- 14.🗂️ What kind of app is a step counter? (a) a tool app (b) a learning app (c) a health app (d) a game
-
15.🧪 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(10) → expected Pass
Test 2: result(8) → expected Pass
Test 3: result(6) → expected Try again - 16.💾 What is a variable? (a) a phone setting (b) a type of screen (c) a named box for a value (d) a picture
- 17.💡 A good app idea starts with ___. (a) a cool logo (b) a problem to solve (c) many colours (d) a long name
- 18.Which of these is an input? (a) tap to go Next (b) the home page of an app (c) a slider for volume (d) your high score
- 19.💡 Does an app idea like a medicine reminder solve a real problem? (a) No (b) Yes
- 20.👥 A library app has 90 readers, 25 librarians and 225 volunteers as users. How many users does it have in all?
-
21.🖼️ In this wireframe (top to bottom), what is right above the Save button?
[ tab bar ]
[ filter buttons ]
[ list of items ]
[ menu icon ]
[ top bar ]
[ Save button ] (a) top bar (b) tab bar (c) filter buttons (d) list of items -
22.🖼️ In this wireframe (top to bottom), what is right above the tab bar?
[ list of items ]
[ filter buttons ]
[ menu icon ]
[ Save button ]
[ top bar ]
[ tab bar ] (a) Save button (b) menu icon (c) list of items (d) top bar -
23.🧪 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(7) → expected Pass
Test 2: result(2) → expected Try again
Test 3: result(10) → expected Pass -
24.🔘 Our rule: buttons are at least 48 px tall. How many of these buttons follow the rule?
Done button: 64 px tall
Send button: 32 px tall
Next button: 36 px tall - 25.🎯 Why learn about users before you build? (a) to make it longer (b) to build what they need (c) to pick a logo (d) to slow it down
-
26.🧪 How many of these test cases pass?
🚚 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(200) → expected 40
Test 2: delivery(450) → expected 0
Test 3: delivery(400) → expected 0 - 27.True or false: a water reminder is the best fit for a teen whose money runs out by Friday. (a) False (b) True
- 28.True or false: the user taps Play is a timer event. (a) True (b) False
- 29.♿ A screen has 7 icon buttons. Only 4 of them have a text label for screen readers. How many still need a label?
- 30.✏️ Is this true of a wireframe or of a final design: is a quick sketch? (a) a final design (b) a wireframe
-
31.🧪 One test case fails. Which one?
📝 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(9) → expected Pass
Test 2: result(7) → expected Pass
Test 3: result(4) → expected Try again (a) Test 2 (b) Test 1 (c) Test 3 - 32.👥 A library app has 100 readers, 300 librarians and 35 volunteers as users. How many more librarians than readers are there?
- 33.True or false: how users feel after is about UX (the experience). (a) True (b) False
-
34.🧰 What does this code show?
function greet(name) {
return "Welcome, " + name + "!";
}
show(greet("Arjun")); (a) Welcome, Arjun! (b) Arjun (c) Welcome, name! (d) greet - 35.📅 An app team plans for 2 days, builds for 11 days, tests for 1 days and releases on 1 more day. How many more days does building take than testing?
- 36.🎯 Is this a user need or a feature: “I forget my homework”? (a) a feature (b) a user need
- 37.🧩 What do we call one full page of an app? (a) a screen (b) a battery (c) a variable (d) a cable
- 38.🎯 Is this a user need or a feature: a share button? (a) a feature (b) a user need
- 39.🔐 Is this permission request fair or too much: map app → location? (a) too much (b) fair
- 40.🔍 Which is the odd one out? (a) the screen layout (b) how users feel after (c) the button colours (d) the icon shapes
Answer key
- 18
- show the balance
- a user need
- True
- False
- Silver
- how many items it has
- 14
- input
- 50
- missing the bus
- 3
- switches main sections
- a health app
- 3
- a named box for a value
- a problem to solve
- a slider for volume
- Yes
- 340
- top bar
- top bar
- 3
- 1
- to build what they need
- 3
- False
- False
- 3
- a wireframe
- Test 2
- 200
- True
- Welcome, Arjun!
- 10
- a user need
- a screen
- a feature
- fair
- how users feel after
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students