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: space between buttons is poor button design. (a) True (b) False
-
2.⚙️ What number does this app show?
let price = 95; // typed by the user
let qty = 6; // typed by the user
let total = price * qty;
show(total); -
3.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
line 1: let points = 33; // start at 33
line 2: points = points + 2; // add 2
line 3: points = points - 4; // take away 1
line 4: points = points * 2; // double it
line 5: show(points); // show it - 4.🔁 Why use a loop to show 100 messages? (a) it uses more lines (b) it is slower (c) less code to write (d) it hides them
-
5.🔀 What does this sign-up rule show?
let age = 8;
if (age >= 13) {
show("Welcome!");
} else {
show("Ask a parent");
} (a) Welcome! (b) Ask a parent -
6.🧭 The app has tabs Home, Search, Profile. You start on Home, then:
1. open “Help page”
2. open “Map”
3. open “Friend list”
4. tap Back
5. open “Badges”
Which screen are you on now? (a) Map (b) Badges (c) Friend list (d) Help page - 7.True or false: a wireframe shows the real fonts. (a) True (b) False
- 8.♿ Accessibility means an app works for ___. (a) only the coder (b) only experts (c) everyone (d) nobody
-
9.🗒️ Version 1 of a water reminder must be ready in 10 days. How many days are left for extras after the must-haves?
set a reminder time: 1 days
log a glass of water: 4 days
see today’s total: 2 days - 10.Which of these requests asks for too much? (a) voice notes → microphone (b) camera app → camera (c) calling app → contacts (d) timer → your photos
-
11.🧩 How many inputs (text boxes, switches and sliders) does this screen have?
[title] Order Snacks
[text box] Notes
[button] Next
[button] Cancel
[button] Send
[text box] City
[text box] Name - 12.🧭 Which part of navigation shows 3 to 5 icons? (a) a menu button (b) the back button (c) a tab bar
- 13.📱 Which one needs no installing: an app or a website? (a) a website (b) an app
- 14.🔁 What does a loop do? (a) draws icons (b) repeats code (c) deletes code (d) saves photos
- 15.🐞 What is a good first step when an app gives a wrong result? (a) buy a new phone (b) delete the app (c) find where it goes wrong (d) add more colours
-
16.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
line 1: let score = 50; // start at 50
line 2: score = score + 6; // add 5
line 3: score = score * 2; // double it
line 4: score = score + 6; // add 6
line 5: show(score); // show it - 17.🚀 Your app is at version 1.8.1. The next release adds a new feature. What is its version number? (a) 1.9.1 (b) 2.0.0 (c) 1.9.0 (d) 1.8.2
-
18.🧰 What number does this code show?
function total(price, qty) {
return price * qty;
}
show(total(100, 4)); - 19.Which colour pair is easy to read? (a) black on yellow (b) light grey on white (c) dark blue on black (d) yellow on white
- 20.🗂️ What kind of app is a cricket run chase? (a) a health app (b) a learning app (c) a tool app (d) a game
- 21.🔀 What does if / else let an app do? (a) pick one of two actions (b) repeat forever (c) draw a screen (d) save a photo
- 22.🔀 When does the else part run? (a) always (b) never (c) when the test is true (d) when the test is false
- 23.🐞 A comment in code (after //) is for ___. (a) the phone screen (b) the app store (c) people reading the code (d) the battery
-
24.🐞 This code has a bug. What number does it ACTUALLY show?
line 1: let lives = 34; // start at 31
line 2: lives = lives + 6; // add 6
line 3: lives = lives + 4; // add 4
line 4: show(lives); // show it - 25.🎯 Which app would help this user most: a pupil juggling five projects? (a) a bus tracker (b) a big-text reader (c) a homework planner (d) a pocket-money tracker
-
26.💾 What number does this code show?
let points = 3;
points = points - 2;
points = points + 4;
show(points); - 27.🧩 In an app, what is tap to Start? (a) a screen (b) an input (c) data (d) a button
- 28.True or false: you write the code at the idea stage. (a) False (b) True
-
29.🖼️ How many parts (boxes) does this wireframe have?
[ title text ]
[ big picture ]
[ list of items ]
[ top bar ]
[ search box ]
[ filter buttons ] - 30.Which of these fits saving in the cloud? (a) the sound on/off setting (b) photos on two devices (c) a draft you are typing (d) notes to read offline
-
31.🐞 Each comment says what its line SHOULD do. Which line has the bug?
line 1: let coins = 38; // start at 35
line 2: coins = coins + 5; // add 5
line 3: coins = coins * 2; // double it
line 4: show(coins); // show it (a) line 3 (b) line 1 (c) line 2 -
32.📊 Survey: which problem bugs you most? How many more votes did “forgetting homework” get than “forgetting birthdays”?
forgetting homework: 20 votes
forgetting birthdays: 19 votes
wasting pocket money: 14 votes - 33.🎨 A beautiful app that confuses everyone has ___. (a) perfect UX (b) good UX but poor UI (c) good UI but poor UX (d) no UI at all
- 34.📅 An app team plans for 4 days, builds for 7 days, tests for 3 days and releases on 1 more day. Planning starts on day 1. On which day does building finish?
- 35.🔢 In a quiz-app flow, which comes first: “see the final score” or “read a question”? (a) read a question (b) see the final score
-
36.🔘 Our rule: buttons are at least 48 px tall. How many of these buttons follow the rule?
Next button: 36 px tall
Help button: 48 px tall
Done button: 44 px tall -
37.🧭 The app has tabs Home, Search, Profile. You start on Home, then:
1. open “Map”
2. tap the Home tab
3. tap the Home tab
How many times must you tap Back to reach the main screen of this tab? - 38.True or false: an app that just says hi solves a real problem. (a) False (b) True
-
39.🧰 What number does this code show?
function total(price, qty) {
return price * qty;
}
show(total(10, 3)); -
40.🔁 What is the LAST line this code shows?
let names = ["Riya", "Kabir", "Zoya", "Arjun"];
for (let i = 0; i < names.length; i++) {
show("Hi, " + names[i]);
} (a) Hi, Kabir (b) Hi, Arjun (c) Hi, Riya (d) Hi, Zoya
Answer key
- False
- 570
- 68
- less code to write
- Ask a parent
- Badges
- False
- everyone
- 3
- timer → your photos
- 3
- a tab bar
- a website
- repeats code
- find where it goes wrong
- 116
- 1.9.0
- 400
- black on yellow
- a game
- pick one of two actions
- when the test is false
- people reading the code
- 44
- a homework planner
- 5
- a button
- False
- 6
- photos on two devices
- line 1
- 1
- good UI but poor UX
- 11
- read a question
- 1
- 0
- False
- 30
- Hi, Arjun
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students