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.🧩 In an app, what is a switch for dark mode? (a) a screen (b) a button (c) data (d) an input
-
2.🔁 What number does this code show?
let runs = [26, 71, 11];
let count = 0;
for (let i = 0; i < runs.length; i++) {
if (runs[i] >= 40) {
count = count + 1;
}
}
show(count); -
3.📊 Survey: which problem bugs you most? How many students voted in all?
no quiet study place: 11 votes
wasting pocket money: 5 votes
forgetting birthdays: 6 votes -
4.⚙️ Which line does the processing (works out the answer)?
line 1: let price = 15; // typed by the user
line 2: let qty = 2; // typed by the user
line 3: let total = price * qty;
line 4: show(total); (a) line 2 (b) line 3 (c) line 1 (d) line 4 -
5.🔘 Our rule: buttons are at least 48 px tall. How many of these buttons follow the rule?
Save button: 64 px tall
Send button: 56 px tall
Cancel button: 48 px tall
Done button: 52 px tall - 6.🗒️ Why keep version 1 small? (a) to look bigger (b) to use up storage (c) to confuse users (d) to learn from users soon
- 7.Which of these is about UX (the experience)? (a) the screen layout (b) the icon shapes (c) the theme colours (d) how easy sign-up is
- 8.Which of these app ideas solves no real problem? (a) a lost-and-found board (b) a button with no action (c) a free study-room finder (d) a medicine reminder
- 9.🔍 Which is the odd one out? (a) how fast a task is done (b) how easy sign-up is (c) the font size (d) whether users get lost
-
10.🖼️ In this wireframe (top to bottom), which part is at the very bottom?
[ tab bar ]
[ search box ]
[ title text ]
[ list of items ]
[ filter buttons ] (a) tab bar (b) title text (c) filter buttons (d) list of items -
11.💾 pop() takes off the last item. What does this code show?
let songs = ["Stars", "Ocean", "Rain", "Sunrise"];
songs.pop();
show(songs[songs.length - 1]); (a) Sunrise (b) Stars (c) Rain (d) Ocean - 12.🗒️ When should nice-to-have features be built? (a) never (b) before anything (c) on day one (d) after the must-haves
- 13.True or false: a speak-to-type notes app needs the microphone. (a) False (b) True
-
14.🔁 What number does this code show?
let marks = [14, 83, 14, 50, 61];
let count = 0;
for (let i = 0; i < marks.length; i++) {
if (marks[i] >= 60) {
count = count + 1;
}
}
show(count); -
15.👆 The user taps the button 5 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 -
16.📊 Survey: which problem bugs you most? Which problem should your app solve first?
forgetting homework: 17 votes
forgetting birthdays: 13 votes
no quiet study place: 21 votes (a) forgetting homework (b) no quiet study place (c) forgetting birthdays -
17.🧭 The app has tabs Lessons, Quiz, Me. You start on Lessons, then:
1. tap the Me tab
2. open “Help page”
3. open “Edit photo”
How many times must you tap Back to reach the main screen of this tab? -
18.🐞 This code has a bug. What number does it ACTUALLY show?
line 1: let stars = 32; // start at 32
line 2: stars = stars * 2; // double it
line 3: stars = stars - 6; // add 6
line 4: stars = stars - 5; // take away 5
line 5: show(stars); // show it - 19.True or false: a website has a home-screen icon. (a) True (b) False
-
20.🔁 What number does this code show?
let runs = [4, 1, 12, 1];
let total = 0;
for (let i = 0; i < runs.length; i++) {
total = total + runs[i];
}
show(total); - 21.🔢 In a photo-post flow, what comes right after “take the photo”? (a) open the camera screen (b) post the photo (c) add a filter (d) write a caption
- 22.🔢 After an app is released, which comes LAST? (a) release an update (b) test it again (c) read user reviews (d) list what to fix
- 23.🔍 Which is the odd one out? (a) a result on screen (b) working out a tip (c) a pop-up message (d) a buzz (vibration)
-
24.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
line 1: let lives = 42; // start at 42
line 2: lives = lives + 3; // add 3
line 3: lives = lives - 5; // add 5
line 4: show(lives); // show it -
25.🗒️ Version 1 of a homework planner must be ready in 8 days. How many days are left for extras after the must-haves?
add a homework task: 1 days
set a due date: 2 days
see tasks by day: 3 days - 26.True or false: a wireframe shows where things go. (a) True (b) False
-
27.🧩 How many inputs (text boxes, switches and sliders) does this screen have?
[title] Edit Profile
[text box] Email
[switch] Show hints
[button] Done - 28.🔢 In a sign-up flow, which comes FIRST? (a) tap “Sign up” (b) open the app (c) see the home screen (d) make a password
- 29.🧰 In function tip(bill), what is bill? (a) an event (b) a loop (c) a screen (d) a parameter
-
30.🔁 What is the LAST line this code shows?
let names = ["Zoya", "Kabir", "Riya", "Arjun"];
for (let i = 0; i < names.length; i++) {
show("Hi, " + names[i]);
} (a) Hi, Zoya (b) Hi, Riya (c) Hi, Arjun (d) Hi, Kabir - 31.True or false: icons with no meaning is good button design. (a) False (b) True
- 32.👥 A clinic app has 45 patients, 20 doctors and 100 nurses as users. How many users does it have in all?
- 33.🐞 After fixing a bug you should ___. (a) release at once (b) delete the test (c) test it again (d) never test
- 34.💡 Does an app idea like a library due-date alert solve a real problem? (a) No (b) Yes
- 35.True or false: a bill splitter solves no real problem. (a) False (b) True
-
36.♿ Our rule: text is at least 16 px. Which text on this screen is too small?
Body text: 17 px
Hint: 20 px
Menu: 14 px
Label: 23 px
Footer: 27 px (a) Hint (b) Body text (c) Label (d) Menu - 37.True or false: you spot a problem to solve at the release stage. (a) False (b) True
-
38.🧪 How many of these test cases pass?
🎟️ Rule: a ticket costs 50 for children under 10, and 100 for everyone else.
function price(age) {
if (age < 10) {
return 50;
}
return 100;
}
Test 1: price(14) → expected 100
Test 2: price(9) → expected 50
Test 3: price(12) → expected 100 - 39.True or false: “icons with no labels” makes the app harder to use. (a) True (b) False
- 40.Which of these is true of a final design? (a) uses plain grey boxes (b) looks like the real app (c) shows where things go (d) is a quick sketch
Answer key
- an input
- 1
- 22
- line 3
- 4
- to learn from users soon
- how easy sign-up is
- a button with no action
- the font size
- filter buttons
- Rain
- after the must-haves
- True
- 2
- ON
- no quiet study place
- 2
- 53
- False
- 18
- add a filter
- release an update
- working out a tip
- 50
- 2
- True
- 2
- open the app
- a parameter
- Hi, Arjun
- False
- 165
- test it again
- Yes
- False
- Menu
- False
- 3
- True
- looks like the real app
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students