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.True or false: a slider for volume is a screen. (a) False (b) True
-
2.🔁 What number does this code show?
let steps = [16, 17, 1, 7, 3];
let best = 0;
for (let i = 0; i < steps.length; i++) {
if (steps[i] > best) {
best = steps[i];
}
}
show(best); - 3.🎯 Is this a user need or a feature: a share button? (a) a feature (b) a user need
-
4.🔀 What does this PIN rule show?
let pin = "1697";
if (pin.length === 4) {
show("PIN saved");
} else {
show("Use 4 digits");
} (a) PIN saved (b) Use 4 digits -
5.💾 pop() takes off the last item. What does this code show?
let friends = ["Riya", "Aman", "Arjun", "Zoya", "Kabir"];
friends.pop();
show(friends[friends.length - 1]); (a) Riya (b) Aman (c) Zoya (d) Arjun - 6.🔀 When does the else part run? (a) when the test is false (b) always (c) never (d) when the test is true
- 7.🔍 Which is the odd one out? (a) talk to possible users (b) spot a problem to solve (c) write down the bugs (d) list what users need
-
8.📊 Survey: which problem bugs you most? Which problem should your app solve first?
no quiet study place: 8 votes
forgetting homework: 20 votes
forgetting birthdays: 11 votes (a) forgetting homework (b) forgetting birthdays (c) no quiet study place - 9.👆 Which of these is an event? (a) a list of names (b) the font size (c) the user taps a button (d) the icon colour
- 10.💾 What is a variable? (a) a named box for a value (b) a phone setting (c) a picture (d) a type of screen
- 11.🧭 What does the back button usually do? (a) deletes the page (b) goes to the last screen (c) closes all apps (d) opens settings
-
12.🖼️ How many parts (boxes) does this wireframe have?
[ menu icon ]
[ Add button ]
[ top bar ]
[ title text ]
[ Save button ] -
13.🐞 Each comment says what its line SHOULD do. Which line has the bug?
line 1: let stars = 45; // start at 45
line 2: stars = stars + 5; // add 5
line 3: stars = stars + 6; // add 3
line 4: show(stars); // show it (a) line 3 (b) line 1 (c) line 2 - 14.👆 A tap handler runs how many times if the user taps 4 times? (a) 1 (b) 8 (c) 0 (d) 4
- 15.👆 An event in an app is ___. (a) an app store (b) something that happens (c) a kind of list (d) a colour theme
- 16.♿ A screen has 5 icon buttons. Only 2 of them have a text label for screen readers. How many still need a label?
-
17.🔁 What number does this code show?
let steps = [12, 7, 6];
let best = 0;
for (let i = 0; i < steps.length; i++) {
if (steps[i] > best) {
best = steps[i];
}
}
show(best); - 18.💡 How can you check that people really have the problem? (a) ask possible users (b) pick a colour (c) just guess (d) copy another app
- 19.♿ A screen has 10 icon buttons. Only 3 of them have a text label for screen readers. How many still need a label?
- 20.Which colour pair is easy to read? (a) red on green (b) dark blue on white (c) dark blue on black (d) light grey on white
-
21.👆 The user types Meera in nameBox and taps the button 1 time. What does the label show?
button.onTap = function () {
label.text = "Welcome, " + nameBox.text + "!";
}; (a) Meera (b) Welcome! (c) Welcome, Meera! (d) Welcome, nameBox.text! - 22.🧭 Which part of navigation switches main sections? (a) a menu button (b) the back button (c) a tab bar
- 23.💡 Which app idea solves this problem: the library is always full? (a) a bill splitter (b) a lost-and-found board (c) a medicine reminder (d) a study-room finder
- 24.🗒️ You are planning version 1 of a homework planner. Which feature can WAIT for a later version? (a) pick a theme colour (b) set a due date (c) add a homework task (d) see tasks by day
- 25.🔍 Which is the odd one out? (a) list what users need (b) spot a problem to solve (c) add the buttons (d) talk to possible users
-
26.🖼️ In this wireframe (top to bottom), which part is at the very bottom?
[ search box ]
[ list of items ]
[ Add button ]
[ big picture ] (a) Add button (b) search box (c) list of items (d) big picture -
27.👆 The user taps the button 6 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 -
28.💾 What number does this code show?
let songs = ["Monsoon", "Ocean"];
songs.push("Sunrise");
show(songs.length); -
29.🧪 What is the ACTUAL result of Test 3?
🎟️ Rule: a ticket costs 50 for children under 11, and 100 for everyone else.
function price(age) {
if (age < 11) {
return 50;
}
return 100;
}
Test 1: price(16) → expected 100
Test 2: price(14) → expected 100
Test 3: price(9) → expected 50 -
30.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
line 1: let score = 37; // start at 34
line 2: score = score + 4; // add 4
line 3: score = score + 3; // add 3
line 4: show(score); // show it - 31.🔢 In a sign-up flow, what comes right after “type name and email”? (a) enter the code sent (b) see the home screen (c) make a password (d) open the app
- 32.True or false: a website needs no installing. (a) True (b) False
-
33.🔀 What does this battery rule show?
let battery = 47;
if (battery < 20) {
show("Low battery");
} else {
show("Battery OK");
} (a) Low battery (b) Battery OK -
34.🔁 What is the LAST line this code shows?
let names = ["Meera", "Aman", "Kabir", "Zoya"];
for (let i = 0; i < names.length; i++) {
show("Hi, " + names[i]);
} (a) Hi, Aman (b) Hi, Kabir (c) Hi, Zoya (d) Hi, Meera - 35.Which of these fits saving in the cloud? (a) chat messages to friends (b) your last game level (c) the sound on/off setting (d) a draft you are typing
-
36.🧪 One test case fails. Which one?
🎟️ 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(16) → expected 100
Test 2: price(10) → expected 100
Test 3: price(9) → expected 50 (a) Test 1 (b) Test 3 (c) Test 2 - 37.🗒️ You are planning version 1 of a quiz app. Which feature can WAIT for a later version? (a) background music (b) show a question (c) check the answer (d) show the score
-
38.🧰 What number does this code show?
function double(n) {
return n * 2;
}
show(double(27)); -
39.🚀 Which of these versions is the OLDEST?
4.14.9, 4.5.7, 3.28.5, 4.3.7 (a) 3.28.5 (b) 4.14.9 (c) 4.5.7 (d) 4.3.7 -
40.💾 What number does this code show?
let songs = ["Ocean", "Kites", "Rain", "Sunrise"];
songs.push("Monsoon");
show(songs.length);
Answer key
- False
- 17
- a feature
- PIN saved
- Zoya
- when the test is false
- write down the bugs
- forgetting homework
- the user taps a button
- a named box for a value
- goes to the last screen
- 5
- line 3
- 4
- something that happens
- 3
- 12
- ask possible users
- 7
- dark blue on white
- Welcome, Meera!
- a tab bar
- a study-room finder
- pick a theme colour
- add the buttons
- big picture
- OFF
- 3
- 50
- 41
- make a password
- True
- Battery OK
- Hi, Zoya
- chat messages to friends
- Test 2
- background music
- 54
- 3.28.5
- 5
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students