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.🧪 One test case fails. Which one?
📝 Rule: a quiz is passed with 6 or more right answers.
function result(right) {
if (right > 6) {
return "Pass";
}
return "Try again";
}
Test 1: result(3) → expected Try again
Test 2: result(7) → expected Pass
Test 3: result(6) → expected Pass (a) Test 1 (b) Test 2 (c) Test 3 - 2.True or false: a lost-and-found board solves no real problem. (a) False (b) True
- 3.🗒️ You are planning version 1 of a quiz app. Which feature can WAIT for a later version? (a) show a question (b) an avatar shop (c) check the answer (d) show the score
- 4.Which of these is true of an app? (a) needs no installing (b) updates from the store (c) opens from a link (d) has a web address
- 5.🎨 Is this about UI or UX: the icon shapes? (a) UI (b) UX
- 6.🎨 Is this about UI or UX: how many taps it takes? (a) UI (b) UX
- 7.✏️ Is this true of a wireframe or of a final design: is a quick sketch? (a) a wireframe (b) a final design
-
8.🧰 A museum app works out the entry fee. What number does this code show?
function fee(age) {
if (age < 5) {
return 0;
}
return 30;
}
show(fee(6) + fee(6)); -
9.🧭 The app has tabs Feed, Chat, Settings. You start on Feed, then:
1. open “Map”
2. tap the Settings tab
3. open “Map”
4. open “Friend list”
5. open “Map”
How many times must you tap Back to reach the main screen of this tab? -
10.🔀 What number does this shop app show?
let total = 340;
if (total > 500) {
total = total - 50;
}
show(total); - 11.📱 Which one has a web address: an app or a website? (a) a website (b) an app
- 12.💡 An app that tries to do everything at once is usually ___. (a) very small (b) hard to use (c) easy to build (d) finished fast
- 13.🚀 What should an app ask for only when it really needs it? (a) its icon (b) a permission (c) its name (d) a font
-
14.🔁 What number does this code show?
let steps = [27, 87, 66, 10];
let count = 0;
for (let i = 0; i < steps.length; i++) {
if (steps[i] >= 60) {
count = count + 1;
}
}
show(count); -
15.🧰 What number does this code show?
function triple(n) {
return n * 3;
}
show(triple(18)); - 16.🗒️ 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) see tasks by day (d) add a homework task
-
17.🐞 This code has a bug. What number does it ACTUALLY show?
line 1: let lives = 34; // start at 34
line 2: lives = lives - 6; // take away 3
line 3: lives = lives - 5; // take away 5
line 4: lives = lives * 2; // double it
line 5: show(lives); // show it - 18.🧩 Which part lets the user give the app information? (a) an icon (b) an input (c) a title (d) a logo
-
19.👆 The user types Kabir in nameBox and taps the button 1 time. What does the label show?
button.onTap = function () {
label.text = "Hello, " + nameBox.text + "!";
}; (a) Hello, nameBox.text! (b) Kabir (c) Hello, Kabir! (d) Hello! - 20.🔀 What is a user flow? (a) a type of font (b) a charging cable (c) the path through screens (d) a colour theme
- 21.True or false: a button with no action solves a real problem. (a) False (b) True
-
22.🧰 What number does this code show?
function total(price, qty) {
return price * qty;
}
show(total(95, 3)); -
23.🧰 What does this code show?
function greet(name) {
return "Welcome, " + name + "!";
}
show(greet("Meera")); (a) Meera (b) Welcome, name! (c) Welcome, Meera! (d) greet -
24.🧰 What number does this code show?
function total(price, qty) {
return price * qty;
}
show(total(40, 2)); - 25.True or false: an app needs no installing. (a) False (b) True
- 26.🧩 Which input is best for choosing a volume level? (a) a text box (b) a switch (c) a title (d) a slider
- 27.🧭 Which part of navigation opens a list of pages? (a) the back button (b) a menu button (c) a tab bar
-
28.🔁 What is the LAST line this code shows?
let names = ["Zoya", "Aman", "Arjun"];
for (let i = 0; i < names.length; i++) {
show("Hi, " + names[i]);
} (a) Hi, Zoya (b) Hi, Arjun (c) Hi, Aman - 29.🧭 What does the back button usually do? (a) goes to the last screen (b) opens settings (c) deletes the page (d) closes all apps
- 30.True or false: a wireframe has no real colours. (a) False (b) True
- 31.🔍 Which is the odd one out? (a) a pop-up message (b) a beep sound (c) a buzz (vibration) (d) typing your age
- 32.🐞 What is a bug? (a) a fast phone (b) a nice icon (c) a mistake in the code (d) a new feature
- 33.🔢 After an app is released, what comes right after “list what to fix”? (a) test it again (b) release an update (c) read user reviews (d) fix and improve
- 34.🧰 In function tip(bill), what is bill? (a) a screen (b) an event (c) a parameter (d) a loop
-
35.🖼️ In this wireframe (top to bottom), what is right above the search box?
[ title text ]
[ Save button ]
[ tab bar ]
[ search box ]
[ top bar ] (a) title text (b) Save button (c) top bar (d) tab bar -
36.🐞 Each comment says what its line SHOULD do. Which line has the bug?
line 1: let coins = 46; // start at 43
line 2: coins = coins + 4; // add 4
line 3: coins = coins * 2; // double it
line 4: coins = coins - 4; // take away 4
line 5: show(coins); // show it (a) line 3 (b) line 1 (c) line 4 (d) line 2 -
37.👆 Two designs for the same task (each arrow is one tap). How many taps does Design A need?
Design A: Home → Address → Menu → Item
Design B: Home → Results → Search → Shop → Address → Pens → Offers - 38.🔢 After an app is released, which comes FIRST? (a) release an update (b) read user reviews (c) test it again (d) list what to fix
- 39.True or false: a homework photo scanner needs the camera. (a) True (b) False
-
40.🧰 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(7) + fee(12));
Answer key
- Test 3
- False
- an avatar shop
- updates from the store
- UI
- UX
- a wireframe
- 60
- 3
- 340
- a website
- hard to use
- a permission
- 2
- 54
- pick a theme colour
- 46
- an input
- Hello, Kabir!
- the path through screens
- False
- 285
- Welcome, Meera!
- 80
- False
- a slider
- a menu button
- Hi, Arjun
- goes to the last screen
- True
- typing your age
- a mistake in the code
- fix and improve
- a parameter
- tab bar
- line 1
- 3
- read user reviews
- True
- 80
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students