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.🔀 When does the else part run? (a) when the test is true (b) when the test is false (c) never (d) always
-
2.👆 Two designs for the same task (each arrow is one tap). Which needs FEWER taps?
Design A: Home → Shop → Cart → Offers → Confirm → Menu → Search
Design B: Home → Shop → Address (a) Design A (b) Design B - 3.True or false: the screen first opens is a timer event. (a) True (b) False
-
4.🧰 What number does this code show?
function double(n) {
return n * 2;
}
show(double(38)); - 5.🔢 After an app is released, which comes LAST? (a) fix and improve (b) test it again (c) read user reviews (d) release an update
-
6.🧩 How many buttons does this app screen have?
[title] Add Homework
[text box] Age
[text box] Subject
[button] Done
[button] Back
[text box] Notes
[button] Start - 7.💾 What is a variable? (a) a picture (b) a named box for a value (c) a type of screen (d) a phone setting
- 8.🔘 Is this good or poor button design: strong colour contrast? (a) good design (b) poor design
-
9.🔁 What is the LAST line this code shows?
let names = ["Aman", "Meera", "Arjun", "Zoya"];
for (let i = 0; i < names.length; i++) {
show("Hi, " + names[i]);
} (a) Hi, Zoya (b) Hi, Arjun (c) Hi, Aman (d) Hi, Meera -
10.👆 The user taps the button 1 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 -
11.🧪 How many of these test cases pass?
📝 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(8) → expected Pass
Test 2: result(5) → expected Try again
Test 3: result(7) → expected Pass -
12.🧰 What number does this code show?
function points(stars) {
return stars * 10 + 5;
}
show(points(4) + points(1)); - 13.🚀 Which version is newer: 3.11.0 or 3.2.1? (a) 3.2.1 (b) 3.11.0
- 14.🗒️ In MVP, the M stands for ___. (a) maximum (b) music (c) minimum (d) mobile
-
15.🐞 This code has a bug. What number does it ACTUALLY show?
line 1: let lives = 32; // start at 31
line 2: lives = lives * 2; // double it
line 3: lives = lives * 2; // double it
line 4: show(lives); // show it - 16.🔍 Which is the odd one out? (a) the theme colours (b) how fast a task is done (c) how many taps it takes (d) how easy sign-up is
- 17.🎯 An app for “everyone” with no clear user usually ___. (a) helps nobody well (b) is easy to build (c) needs no testing (d) wins every prize
-
18.🔁 What number does this code show?
let scores = [2, 4, 17];
let total = 0;
for (let i = 0; i < scores.length; i++) {
total = total + scores[i];
}
show(total); -
19.👆 The user taps the button 5 times. What number does the label show now?
let lives = 9;
button.onTap = function () {
lives = lives + 5;
label.text = lives;
}; -
20.👆 The user types Riya in nameBox and taps the button 1 time. What does the label show?
button.onTap = function () {
label.text = "Welcome, " + nameBox.text + "!";
}; (a) Welcome, nameBox.text! (b) Riya (c) Welcome, Riya! (d) Welcome! - 21.🔢 When you make an app, which comes LAST? (a) release it (b) plan the screens (c) get an idea (d) test the app
- 22.💡 Which app idea solves this problem: pupils forget due dates? (a) a homework planner (b) a lost-and-found board (c) a bill splitter (d) a medicine reminder
-
23.🧰 What number does this code show?
function points(stars) {
return stars * 10 + 5;
}
show(points(1) + points(2)); - 24.👥 A school app has 40 students, 85 teachers and 270 parents as users. Which user group is the biggest? (a) students (b) parents (c) teachers
- 25.True or false: a final design uses plain grey boxes. (a) True (b) False
-
26.🔀 What does this sign-up rule show?
let age = 15;
if (age >= 13) {
show("Welcome!");
} else {
show("Ask a parent");
} (a) Welcome! (b) Ask a parent -
27.🧩 How many buttons does this app screen have?
[title] Edit Profile
[slider] Brightness
[button] Save
[text box] City
[text box] Age
[button] Help
[button] Start - 28.✏️ Is this true of a wireframe or of a final design: has no real colours? (a) a final design (b) a wireframe
- 29.Which colour pair is easy to read? (a) light grey on white (b) black on pale grey (c) dark blue on black (d) yellow on white
-
30.👆 The user types Kabir in nameBox and taps the button 1 time. What does the label show?
button.onTap = function () {
label.text = "Hi, " + nameBox.text + "!";
}; (a) Kabir (b) Hi, nameBox.text! (c) Hi! (d) Hi, Kabir! -
31.📊 Survey: which problem bugs you most? How many students voted in all?
missing the bus: 9 votes
forgetting birthdays: 5 votes
losing water bottles: 12 votes - 32.👆 What kind of event is this: the screen first opens? (a) a timer event (b) a text event (c) a tap event (d) a load event
- 33.♿ Does this help everyone, or make the app harder to use: tiny tap areas? (a) helps everyone (b) makes it harder
- 34.True or false: notes to read offline fits saving on the phone. (a) False (b) True
- 35.True or false: the search box changes is a text event. (a) True (b) False
-
36.🔀 What does this battery rule show?
let battery = 42;
if (battery < 20) {
show("Low battery");
} else {
show("Battery OK");
} (a) Low battery (b) Battery OK - 37.🔁 list.length tells you ___. (a) the first item (b) how many items it has (c) the biggest item (d) the last item
-
38.🧩 How many buttons does this app screen have?
[title] Settings
[text box] Subject
[text box] Due date
[text box] City
[button] Cancel
[button] Next - 39.Which of these makes the app harder to use? (a) fast-flashing lights (b) big touch targets (c) text that can grow (d) labels on every icon
-
40.📊 Survey: which problem bugs you most? How many more votes did “wasting pocket money” get than “forgetting homework”?
forgetting homework: 13 votes
wasting pocket money: 14 votes
losing water bottles: 7 votes
Answer key
- when the test is false
- Design B
- False
- 76
- release an update
- 3
- a named box for a value
- good design
- Hi, Zoya
- ON
- 2
- 60
- 3.11.0
- minimum
- 128
- the theme colours
- helps nobody well
- 23
- 34
- Welcome, Riya!
- release it
- a homework planner
- 40
- parents
- False
- Welcome!
- 3
- a wireframe
- black on pale grey
- Hi, Kabir!
- 26
- a load event
- makes it harder
- True
- True
- Battery OK
- how many items it has
- 2
- fast-flashing lights
- 1
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students