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.🐞 A comment in code (after //) is for ___. (a) the app store (b) people reading the code (c) the battery (d) the phone screen
- 2.🔘 Is this good or poor button design: a big, easy tap area? (a) poor design (b) good design
-
3.🔁 What is the LAST line this code shows?
let names = ["Kabir", "Meera", "Zoya", "Riya", "Arjun"];
for (let i = 0; i < names.length; i++) {
show("Hi, " + names[i]);
} (a) Hi, Kabir (b) Hi, Zoya (c) Hi, Meera (d) Hi, Arjun -
4.🐞 Each comment says what its line SHOULD do. Which line has the bug?
line 1: let points = 31; // start at 31
line 2: points = points * 2; // double it
line 3: points = points * 2; // double it
line 4: points = points + 5; // add 4
line 5: show(points); // show it (a) line 2 (b) line 1 (c) line 3 (d) line 4 - 5.🔍 Which is the odd one out? (a) colour as the only clue (b) tiny tap areas (c) fast-flashing lights (d) captions on videos
- 6.✏️ A box with a cross in a wireframe usually means ___. (a) a picture goes here (b) an error (c) a closed app (d) delete this
-
7.👆 The user taps the button 5 times. What number does the label show now?
let likes = 0;
button.onTap = function () {
if (likes < 2) {
likes = likes + 1;
}
label.text = likes;
}; - 8.✏️ Is this true of a wireframe or of a final design: has no real colours? (a) a wireframe (b) a final design
-
9.🔁 What is the LAST line this code shows?
let names = ["Aman", "Riya", "Meera"];
for (let i = 0; i < names.length; i++) {
show("Hi, " + names[i]);
} (a) Hi, Riya (b) Hi, Meera (c) Hi, Aman -
10.🧩 Which of these is a button on this screen?
[title] Settings
[button] Save
[switch] Dark mode
[button] Start
[text box] Phone
[text box] City (a) Phone (b) Start (c) Dark mode (d) City - 11.🔘 Is this good or poor button design: a tiny 20 px button? (a) poor design (b) good design
- 12.🧭 Which part of navigation sits at the bottom? (a) the back button (b) a menu button (c) a tab bar
-
13.👆 The user taps the button 5 times. What number does the label show now?
let coins = 5;
button.onTap = function () {
coins = coins + 1;
label.text = coins;
}; - 14.True or false: an app needs no installing. (a) False (b) True
-
15.🧪 One test case fails. Which one?
🎟️ Rule: a ticket costs 50 for children under 13, and 100 for everyone else.
function price(age) {
if (age <= 13) {
return 50;
}
return 100;
}
Test 1: price(13) → expected 100
Test 2: price(9) → expected 50
Test 3: price(17) → expected 100 (a) Test 2 (b) Test 3 (c) Test 1 - 16.True or false: a buzz (vibration) is an output. (a) False (b) True
- 17.🧩 In an app, what is tap to go Next? (a) an input (b) a button (c) data (d) a screen
- 18.📱 Which one opens from a link: an app or a website? (a) a website (b) an app
- 19.🎯 Is this a user need or a feature: a search bar? (a) a user need (b) a feature
- 20.🚀 Which version is newer: 1.1.16 or 1.1.4? (a) 1.1.16 (b) 1.1.4
-
21.🔁 What number does this code show?
let steps = [81, 97, 46, 99];
let count = 0;
for (let i = 0; i < steps.length; i++) {
if (steps[i] >= 70) {
count = count + 1;
}
}
show(count); - 22.🎨 A beautiful app that confuses everyone has ___. (a) good UI but poor UX (b) good UX but poor UI (c) perfect UX (d) no UI at all
-
23.🧭 The app has tabs Feed, Chat, Settings. You start on Feed, then:
1. open “Map”
2. tap Back
3. open “Help page”
4. tap Back
Which screen are you on now? (a) Map (b) Chat (c) Feed (d) Help page - 24.👥 A library app has 190 readers, 265 librarians and 250 volunteers as users. Which user group is the biggest? (a) volunteers (b) readers (c) librarians
- 25.🧩 In an app, what is your saved notes? (a) a screen (b) a button (c) data (d) an input
- 26.🛠️ At which stage do you try every button? (a) the release stage (b) the test stage (c) the plan stage (d) the build stage
-
27.🐞 This code has a bug. What number does it ACTUALLY show?
line 1: let stars = 48; // start at 48
line 2: stars = stars + 7; // add 6
line 3: stars = stars - 5; // take away 5
line 4: stars = stars - 1; // take away 1
line 5: show(stars); // show it -
28.🔁 What number does this code show?
let runs = [64, 90, 40, 61, 25];
let count = 0;
for (let i = 0; i < runs.length; i++) {
if (runs[i] >= 40) {
count = count + 1;
}
}
show(count); - 29.💡 Does an app idea like a bill splitter solve a real problem? (a) Yes (b) No
- 30.True or false: your last game level fits saving in the cloud. (a) True (b) False
- 31.🧰 In function tip(bill), what is bill? (a) a loop (b) a screen (c) an event (d) a parameter
-
32.🧰 What number does this code show?
function total(price, qty) {
return price * qty;
}
show(total(70, 2)); - 33.⚙️ In an app, is a buzz (vibration) an input, processing or an output? (a) input (b) processing (c) output
- 34.🗒️ You are planning version 1 of a bus tracker. Which feature can WAIT for a later version? (a) see where the bus is (b) pick your bus stop (c) change the bus icon (d) show arrival time
-
35.🖼️ In this wireframe (top to bottom), which part is at the very bottom?
[ Add button ]
[ top bar ]
[ menu icon ]
[ search box ] (a) top bar (b) Add button (c) search box (d) menu icon -
36.👆 The user taps the button 5 times. What number does the label show now?
let stars = 8;
button.onTap = function () {
stars = stars + 2;
label.text = stars;
}; - 37.💾 Where should the app save chat messages to friends: on the phone or in the cloud? (a) on the phone (b) in the cloud
- 38.True or false: tap to go Next is a button. (a) False (b) True
- 39.🔐 A torch app asks for your contacts. What should you do? (a) post them online (b) deny it (c) allow it (d) share them all
- 40.True or false: checking a password is an input. (a) True (b) False
Answer key
- people reading the code
- good design
- Hi, Arjun
- line 4
- captions on videos
- a picture goes here
- 2
- a wireframe
- Hi, Meera
- Start
- poor design
- a tab bar
- 10
- False
- Test 1
- True
- a button
- a website
- a feature
- 1.1.16
- 3
- good UI but poor UX
- Feed
- librarians
- data
- the test stage
- 49
- 4
- Yes
- False
- a parameter
- 140
- output
- change the bus icon
- search box
- 18
- in the cloud
- True
- deny it
- False
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students