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.👆 Two designs for the same task (each arrow is one tap). How many taps does Design A need?
Design A: Home → Offers → Shop → Confirm → Menu → Item → Pay
Design B: Home → Search → Pay → Results - 2.👥 A cricket club app has 270 players, 135 coaches and 100 fans as users. Which user group is the biggest? (a) players (b) coaches (c) fans
- 3.👥 A school app has 175 students, 45 teachers and 290 parents as users. How many users does it have in all?
-
4.🧰 What number does this code show?
function total(price, qty) {
return price * qty;
}
show(total(55, 3)); - 5.True or false: a speak-to-type notes app needs the microphone. (a) True (b) False
- 6.True or false: you sketch the screens at the plan stage. (a) False (b) True
-
7.👆 The user types Meera in nameBox and taps the button 1 time. What does the label show?
button.onTap = function () {
label.text = "Hi, " + nameBox.text + "!";
}; (a) Hi! (b) Meera (c) Hi, Meera! (d) Hi, nameBox.text! - 8.🔍 Which is the odd one out? (a) the screen layout (b) the font size (c) how many taps it takes (d) the button colours
-
9.🧪 One test case fails. Which one?
🚚 Rule: delivery is free (0) when the order is 800 or more; otherwise it costs 40.
function delivery(total) {
if (total > 800) {
return 0;
}
return 40;
}
Test 1: delivery(700) → expected 40
Test 2: delivery(800) → expected 0
Test 3: delivery(900) → expected 0 (a) Test 2 (b) Test 1 (c) Test 3 - 10.🧪 Who else should try an app before release? (a) only the coder (b) the app icon (c) nobody (d) real users
- 11.🔐 A torch app asks for your contacts. What should you do? (a) allow it (b) deny it (c) share them all (d) post them online
-
12.💾 pop() takes off the last item. What does this code show?
let notes = ["Music", "Sports", "Maths"];
notes.pop();
show(notes[notes.length - 1]); (a) Music (b) Maths (c) Sports - 13.🧰 Why write a function? (a) to hide errors (b) to slow the app (c) to make code longer (d) to reuse code
-
14.🐞 Each comment says what its line SHOULD do. Which line has the bug?
line 1: let coins = 48; // start at 48
line 2: coins = coins - 5; // take away 5
line 3: coins = coins - 4; // add 4
line 4: coins = coins - 5; // take away 5
line 5: show(coins); // show it (a) line 2 (b) line 3 (c) line 1 (d) line 4 - 15.Which of these is true of a wireframe? (a) is a quick sketch (b) shows the real fonts (c) has the real colours (d) uses the final pictures
- 16.🔍 Which is the odd one out? (a) a buzz (vibration) (b) tapping a button (c) speaking a command (d) taking a photo
-
17.🧰 A museum app works out the entry fee. What number does this code show?
function fee(age) {
if (age < 5) {
return 0;
}
return 40;
}
show(fee(4) + fee(2)); -
18.♿ Our rule: text is at least 16 px. Which text on this screen is too small?
Menu: 24 px
Title: 10 px
Caption: 28 px (a) Menu (b) Caption (c) Title - 19.♿ Does this help everyone, or make the app harder to use: sudden loud sounds? (a) helps everyone (b) makes it harder
-
20.🔁 What number does this code show?
let scores = [10, 3, 7];
let best = 0;
for (let i = 0; i < scores.length; i++) {
if (scores[i] > best) {
best = scores[i];
}
}
show(best); - 21.True or false: the font size is about UX (the experience). (a) True (b) False
- 22.Which of these is a user need? (a) a search bar (b) “What should I cook?” (c) a share button (d) a reminder alarm
- 23.Which of these helps everyone use the app? (a) tiny tap areas (b) labels on every icon (c) colour as the only clue (d) sudden loud sounds
- 24.🧩 Which input is best for turning something ON or OFF? (a) a text box (b) a slider (c) a switch (d) a title
-
25.🧪 How many of these test cases pass?
🎟️ Rule: a ticket costs 50 for children under 8, and 100 for everyone else.
function price(age) {
if (age <= 8) {
return 50;
}
return 100;
}
Test 1: price(6) → expected 50
Test 2: price(12) → expected 100
Test 3: price(13) → expected 100 - 26.True or false: a water reminder is the best fit for a grandparent with weak eyesight. (a) False (b) True
-
27.🐞 Each comment says what its line SHOULD do. Which line has the bug?
line 1: let score = 38; // start at 35
line 2: score = score + 3; // add 3
line 3: score = score - 4; // take away 4
line 4: score = score * 2; // double it
line 5: show(score); // show it (a) line 2 (b) line 3 (c) line 1 (d) line 4 - 28.👆 Which of these is an event? (a) the user taps a button (b) a list of names (c) the font size (d) the icon colour
-
29.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
line 1: let coins = 42; // start at 42
line 2: coins = coins - 1; // take away 1
line 3: coins = coins - 6; // add 6
line 4: coins = coins - 3; // take away 3
line 5: show(coins); // show it -
30.🖼️ How many parts (boxes) does this wireframe have?
[ search box ]
[ top bar ]
[ big picture ]
[ tab bar ]
[ list of items ]
[ Add button ] -
31.💾 What number does this code show?
let coins = 7;
coins = coins - 3;
coins = coins + 5;
show(coins); - 32.True or false: a final design has the real colours. (a) True (b) False
- 33.True or false: the sound on/off setting fits saving on the phone. (a) False (b) True
-
34.🔁 What number does this code show?
let runs = [8, 1, 14];
let total = 0;
for (let i = 0; i < runs.length; i++) {
total = total + runs[i];
}
show(total); -
35.🧰 What number does this code show?
function triple(n) {
return n * 3;
}
show(triple(14)); - 36.Which of these is data? (a) your saved notes (b) the settings page (c) a box to type a name (d) tap to Send
- 37.👆 A tap handler runs how many times if the user taps 4 times? (a) 8 (b) 0 (c) 4 (d) 1
-
38.🔁 What is the LAST line this code shows?
let names = ["Kabir", "Arjun", "Aman"];
for (let i = 0; i < names.length; i++) {
show("Hi, " + names[i]);
} (a) Hi, Aman (b) Hi, Kabir (c) Hi, Arjun -
39.💾 What number does this code show?
let notes = ["Art", "Maths"];
notes.push("Music");
show(notes.length); - 40.♿ A screen has 6 icon buttons. Only 2 of them have a text label for screen readers. How many still need a label?
Answer key
- 6
- players
- 510
- 165
- True
- True
- Hi, Meera!
- how many taps it takes
- Test 2
- real users
- deny it
- Sports
- to reuse code
- line 3
- is a quick sketch
- a buzz (vibration)
- 0
- Title
- makes it harder
- 10
- False
- “What should I cook?”
- labels on every icon
- a switch
- 3
- False
- line 1
- the user taps a button
- 44
- 6
- 9
- True
- True
- 23
- 42
- your saved notes
- 4
- Hi, Aman
- 3
- 4
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students