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?
function triple(n) {
return n * 3;
}
show(triple(12)); -
2.💾 What number does this code show?
let points = 7;
points = points - 2;
points = points + 4;
show(points); - 3.🚀 In version 2.5.1, which number is the major version? (a) 2 (b) 1 (c) 251 (d) 5
-
4.🧪 What is the ACTUAL result of Test 3?
🎟️ 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(15) → expected 100
Test 2: price(9) → expected 50
Test 3: price(14) → expected 100 -
5.🔁 What number does this code show?
let steps = [8, 2, 6];
let best = 0;
for (let i = 0; i < steps.length; i++) {
if (steps[i] > best) {
best = steps[i];
}
}
show(best); - 6.🔘 Is this good or poor button design: a big, easy tap area? (a) poor design (b) good design
- 7.Which of these is a button? (a) tap to go Next (b) your saved notes (c) the settings page (d) a box to type a name
- 8.🔢 In a photo-post flow, what comes right after “add a filter”? (a) open the camera screen (b) post the photo (c) take the photo (d) write a caption
- 9.🐞 What is a good first step when an app gives a wrong result? (a) find where it goes wrong (b) buy a new phone (c) add more colours (d) delete the app
- 10.True or false: a word battle is a learning app. (a) True (b) False
- 11.♿ What should every icon-only button have for screen readers? (a) a bright colour (b) a long animation (c) a text label (d) a sound
-
12.📊 Survey: which problem bugs you most? Which problem should your app solve first?
wasting pocket money: 3 votes
forgetting homework: 9 votes
forgetting birthdays: 24 votes (a) forgetting homework (b) forgetting birthdays (c) wasting pocket money - 13.Which of these makes the app harder to use? (a) text that can grow (b) tiny tap areas (c) captions on videos (d) big touch targets
-
14.👆 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) OFF (b) ON - 15.🐞 After fixing a bug you should ___. (a) never test (b) test it again (c) release at once (d) delete the test
- 16.🧭 Which part of navigation sits at the bottom? (a) the back button (b) a tab bar (c) a menu button
-
17.📊 Survey: which problem bugs you most? Which problem should your app solve first?
wasting pocket money: 4 votes
losing water bottles: 11 votes
no quiet study place: 17 votes (a) no quiet study place (b) wasting pocket money (c) losing water bottles -
18.🧩 How many buttons does this app screen have?
[title] Add Homework
[slider] Brightness
[text box] Age
[button] Save
[button] Send -
19.👆 The user taps the button 4 times. What number does the label show now?
let likes = 0;
button.onTap = function () {
if (likes < 5) {
likes = likes + 1;
}
label.text = likes;
}; - 20.🔢 In a quiz-app flow, which comes first: “see the final score” or “tap “Start quiz””? (a) see the final score (b) tap “Start quiz”
- 21.🔍 Which is the odd one out? (a) a buzz (vibration) (b) a pop-up message (c) a beep sound (d) typing your age
- 22.Which of these is processing? (a) a pop-up message (b) sorting the scores (c) taking a photo (d) a beep sound
- 23.👥 A school app has 35 students, 260 teachers and 155 parents as users. How many more teachers than students are there?
-
24.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
line 1: let stars = 44; // start at 42
line 2: stars = stars * 2; // double it
line 3: stars = stars * 2; // double it
line 4: stars = stars + 3; // add 3
line 5: show(stars); // show it -
25.📊 Survey: which problem bugs you most? How many students voted in all?
no quiet study place: 23 votes
losing water bottles: 21 votes
forgetting homework: 5 votes - 26.🎯 Who are the users of an app? (a) the people who use it (b) the app icons (c) only the coders (d) only the testers
- 27.✏️ What is the easiest way to draw a first wireframe? (a) a 3D printer (b) a microphone (c) pencil and paper (d) a phone case
- 28.🧭 Which part of navigation switches main sections? (a) a tab bar (b) a menu button (c) the back button
- 29.👥 A cricket club app has 190 players, 105 coaches and 135 fans as users. How many users does it have in all?
- 30.⚙️ In an app, is taking a photo an input, processing or an output? (a) input (b) output (c) processing
- 31.🔐 Is this permission request fair or too much: map app → location? (a) too much (b) fair
-
32.🔀 What does this PIN rule show?
let pin = "2439";
if (pin.length === 4) {
show("PIN saved");
} else {
show("Use 4 digits");
} (a) PIN saved (b) Use 4 digits - 33.True or false: a clear word like Save is good button design. (a) True (b) False
- 34.👆 Code that runs when an event happens is called a ___. (a) hashtag (b) headline (c) handler (d) header
-
35.🔁 What number does this code show?
let marks = [9, 5, 19, 14, 18];
let total = 0;
for (let i = 0; i < marks.length; i++) {
total = total + marks[i];
}
show(total); -
36.🚀 Which of these versions is the NEWEST?
2.20.3, 3.12.5, 3.5.9, 3.3.1 (a) 3.3.1 (b) 3.5.9 (c) 2.20.3 (d) 3.12.5 -
37.🗒️ Version 1 of a homework planner must be ready in 11 days. How many days are left for extras after the must-haves?
add a homework task: 1 days
set a due date: 3 days
see tasks by day: 3 days - 38.🗒️ You are planning version 1 of a quiz app. Which feature can WAIT for a later version? (a) show the score (b) show a question (c) check the answer (d) confetti effects
- 39.🔘 Our rule: buttons are at least 48 px tall. The Save button is 20 px tall. How many px taller must it be?
-
40.🐞 This code has a bug. What number does it ACTUALLY show?
line 1: let points = 41; // start at 38
line 2: points = points * 2; // double it
line 3: points = points * 2; // double it
line 4: show(points); // show it
Answer key
- 36
- 9
- 2
- 100
- 8
- good design
- tap to go Next
- write a caption
- find where it goes wrong
- False
- a text label
- forgetting birthdays
- tiny tap areas
- ON
- test it again
- a tab bar
- no quiet study place
- 2
- 4
- tap “Start quiz”
- typing your age
- sorting the scores
- 225
- 171
- 49
- the people who use it
- pencil and paper
- a tab bar
- 430
- input
- fair
- PIN saved
- True
- handler
- 65
- 3.12.5
- 4
- confetti effects
- 28
- 164
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students