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 steps = [3, 9, 12, 3];
let best = 0;
for (let i = 0; i < steps.length; i++) {
if (steps[i] > best) {
best = steps[i];
}
}
show(best); -
2.🐞 Each comment says what its line SHOULD do. Which line has the bug?
line 1: let score = 35; // start at 35
line 2: score = score + 4; // add 4
line 3: score = score + 6; // add 6
line 4: score = score + 2; // double it
line 5: show(score); // show it (a) line 1 (b) line 3 (c) line 2 (d) line 4 - 3.🗒️ You are planning version 1 of a water reminder. Which feature can WAIT for a later version? (a) water animations (b) set a reminder time (c) see today’s total (d) log a glass of water
- 4.🔢 In a photo-post flow, which comes FIRST? (a) take the photo (b) open the camera screen (c) post the photo (d) add a filter
- 5.🎯 Who are the users of an app? (a) the app icons (b) only the testers (c) the people who use it (d) only the coders
- 6.🔢 In a sign-up flow, what comes right after “type name and email”? (a) enter the code sent (b) open the app (c) see the home screen (d) make a password
- 7.True or false: icons with no meaning is good button design. (a) True (b) False
- 8.Which of these is true of a menu button? (a) switches main sections (b) hides extra links (c) shows 3 to 5 icons (d) goes to the last screen
-
9.💾 What number does this code show?
let notes = ["Art", "Maths", "Sports"];
notes.push("Music");
show(notes.length); - 10.Which of these is about UX (the experience)? (a) the screen layout (b) how users feel after (c) the font size (d) the theme colours
-
11.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
line 1: let score = 30; // start at 30
line 2: score = score + 7; // add 5
line 3: score = score - 1; // take away 1
line 4: score = score * 2; // double it
line 5: show(score); // show it - 12.Which of these is a user need? (a) a dark mode switch (b) a search bar (c) “Small text is hard” (d) a reminder alarm
- 13.Which of these fits saving on the phone? (a) chat messages to friends (b) photos on two devices (c) a class leaderboard (d) your last game level
-
14.♿ Our rule: text is at least 16 px. How many texts on this screen are too small?
Title: 13 px
Label: 20 px
Footer: 13 px - 15.🔢 In a sign-up flow, which comes first: “open the app” or “enter the code sent”? (a) open the app (b) enter the code sent
- 16.True or false: you write down the bugs at the plan stage. (a) True (b) False
-
17.🧩 How many buttons does this app screen have?
[title] New Note
[button] Save
[text box] Phone
[button] Back
[switch] Show hints
[button] Done - 18.Which of these is true of a tab bar? (a) goes to the last screen (b) switches main sections (c) hides extra links (d) opens a list of pages
- 19.🗒️ You are planning version 1 of a homework planner. Which feature is a MUST-HAVE? (a) earn stickers (b) share tasks to friends (c) set a due date (d) pick a theme colour
-
20.👆 The user taps the button 3 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) ON (b) OFF -
21.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
line 1: let points = 31; // start at 31
line 2: points = points - 3; // take away 3
line 3: points = points + 8; // add 5
line 4: show(points); // show it -
22.🔁 What number does this code show?
let runs = [6, 11, 4, 20, 5];
let best = 0;
for (let i = 0; i < runs.length; i++) {
if (runs[i] > best) {
best = runs[i];
}
}
show(best); - 23.🔢 In a sign-up flow, which comes first: “make a password” or “tap “Sign up””? (a) make a password (b) tap “Sign up”
- 24.🔢 In a quiz-app flow, which comes first: “tap “Start quiz”” or “see if it is right”? (a) see if it is right (b) tap “Start quiz”
-
25.🔀 Which badge does this quiz app show?
let marks = 78;
if (marks >= 80) {
show("Gold");
} else if (marks >= 50) {
show("Silver");
} else {
show("Bronze");
} (a) Gold (b) Bronze (c) Silver - 26.🎨 Is this about UI or UX: how many taps it takes? (a) UI (b) UX
-
27.🔀 What does this battery rule show?
let battery = 5;
if (battery < 20) {
show("Low battery");
} else {
show("Battery OK");
} (a) Battery OK (b) Low battery - 28.🔢 After an app is released, which comes FIRST? (a) fix and improve (b) release an update (c) test it again (d) read user reviews
- 29.Which of these is true of a final design? (a) shows where things go (b) is a quick sketch (c) has the real colours (d) has no real colours
-
30.💾 What number does this code show?
let friends = ["Riya", "Arjun", "Zoya"];
friends.push("Aman");
friends.push("Kabir");
show(friends.length); -
31.🔁 What number does this code show?
let scores = [94, 61, 58];
let count = 0;
for (let i = 0; i < scores.length; i++) {
if (scores[i] >= 60) {
count = count + 1;
}
}
show(count); - 32.🧩 Which input is best for choosing a volume level? (a) a title (b) a text box (c) a switch (d) a slider
- 33.💾 Which works with no internet at all? (a) a shared chat (b) a cloud backup (c) a cloud leaderboard (d) data saved on the phone
-
34.🔘 Our rule: buttons are at least 48 px tall. How many of these buttons follow the rule?
Help button: 52 px tall
Done button: 32 px tall
Next button: 44 px tall - 35.🔐 Is this permission request fair or too much: timer → your photos? (a) fair (b) too much
-
36.🧩 How many buttons does this app screen have?
[title] Edit Profile
[switch] Remind me
[button] Send
[button] Start
[text box] Due date -
37.📊 Survey: which problem bugs you most? How many students voted in all?
losing water bottles: 24 votes
wasting pocket money: 4 votes
forgetting birthdays: 15 votes - 38.🎨 Is this about UI or UX: the icon shapes? (a) UX (b) UI
-
39.🔘 Our rule: buttons are at least 48 px tall. How many of these buttons follow the rule?
Back button: 40 px tall
Start button: 64 px tall
Save button: 32 px tall
Cancel button: 64 px tall - 40.Which of these fits saving on the phone? (a) chat messages to friends (b) a class leaderboard (c) notes to read offline (d) photos on two devices
Answer key
- 12
- line 4
- water animations
- open the camera screen
- the people who use it
- make a password
- False
- hides extra links
- 4
- how users feel after
- 68
- “Small text is hard”
- your last game level
- 2
- open the app
- False
- 3
- switches main sections
- set a due date
- ON
- 33
- 20
- tap “Sign up”
- tap “Start quiz”
- Silver
- UX
- Low battery
- read user reviews
- has the real colours
- 5
- 2
- a slider
- data saved on the phone
- 1
- too much
- 2
- 43
- UI
- 2
- notes to read offline
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students