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) the battery (c) people reading the code (d) the phone screen
- 2.💾 Where should the app save a draft you are typing: on the phone or in the cloud? (a) in the cloud (b) on the phone
-
3.🔘 Our rule: buttons are at least 48 px tall. Which button is too small?
Back button: 48 px tall
Next button: 36 px tall
Cancel button: 64 px tall (a) Cancel (b) Back (c) Next -
4.🔀 What does this sign-up rule show?
let age = 8;
if (age >= 13) {
show("Welcome!");
} else {
show("Ask a parent");
} (a) Ask a parent (b) Welcome! - 5.🎯 Is this a user need or a feature: “I forget my homework”? (a) a user need (b) a feature
-
6.🧰 A museum app works out the entry fee. What number does this code show?
function fee(age) {
if (age < 5) {
return 0;
}
return 20;
}
show(fee(10) + fee(12)); -
7.🧭 The app has tabs Lessons, Quiz, Me. You start on Lessons, then:
1. open “Match report”
2. tap the Quiz tab
3. open “Match report”
4. tap the Quiz tab
5. tap the Quiz tab
Which screen are you on now? (a) Match report (b) Lessons (c) Me (d) Quiz -
8.🧭 The app has tabs Feed, Chat, Settings. You start on Feed, then:
1. open “Help page”
2. open “Video”
3. tap the Chat tab
4. open “Help page”
Which screen are you on now? (a) Feed (b) Help page (c) Video (d) Chat - 9.True or false: a bill splitter solves a real problem. (a) True (b) False
-
10.👆 Two designs for the same task (each arrow is one tap). Which needs FEWER taps?
Design A: Home → Pay → Confirm → Search → Cart
Design B: Home → Item → Cart → Confirm → Pay → Shop → Search (a) Design A (b) Design B - 11.🔐 Which permission does a speak-to-type notes app really need? (a) the microphone (b) location (c) the camera (d) contacts
-
12.🔁 What number does this code show?
let steps = [12, 15, 15, 12];
let total = 0;
for (let i = 0; i < steps.length; i++) {
total = total + steps[i];
}
show(total); -
13.🧰 What number does this code show?
function total(price, qty) {
return price * qty;
}
show(total(85, 6)); -
14.🔁 What is the LAST line this code shows?
let names = ["Riya", "Zoya", "Aman"];
for (let i = 0; i < names.length; i++) {
show("Hi, " + names[i]);
} (a) Hi, Riya (b) Hi, Aman (c) Hi, Zoya - 15.♿ Showing right or wrong only in red and green is a problem for ___. (a) fast typists (b) the server (c) the battery (d) colour-blind users
-
16.🧭 The app has tabs Home, Search, Profile. You start on Home, then:
1. open “Badges”
2. tap the Search tab
3. open “Score card”
4. open “Match report”
5. open “Video”
How many times must you tap Back to reach the main screen of this tab? -
17.🔘 Our rule: buttons are at least 48 px tall. How many of these buttons follow the rule?
Done button: 40 px tall
Send button: 60 px tall
Cancel button: 32 px tall - 18.💡 Which app idea solves this problem: projects pile up at once? (a) a homework planner (b) a medicine reminder (c) a bill splitter (d) a study-room finder
-
19.🖼️ How many parts (boxes) does this wireframe have?
[ menu icon ]
[ top bar ]
[ big picture ]
[ filter buttons ]
[ search box ] -
20.🐞 Each comment says what its line SHOULD do. Which line has the bug?
line 1: let stars = 31; // start at 31
line 2: stars = stars + 4; // add 4
line 3: stars = stars - 4; // add 4
line 4: stars = stars * 2; // double it
line 5: show(stars); // show it (a) line 1 (b) line 4 (c) line 3 (d) line 2 - 21.True or false: tapping a button is processing. (a) True (b) False
-
22.🧭 The app has tabs Home, Search, Profile. You start on Home, then:
1. open “Score card”
2. tap Back
3. open “Map”
How many times must you tap Back to reach the main screen of this tab? - 23.🧰 In function tip(bill), what is bill? (a) a parameter (b) a loop (c) an event (d) a screen
- 24.👥 A clinic app has 130 patients, 135 doctors and 160 nurses as users. How many more nurses than doctors are there?
- 25.True or false: a wireframe shows where things go. (a) False (b) True
- 26.🎯 Which app would help this user most: a runner who forgets to sip water? (a) a bus tracker (b) a big-text reader (c) a water reminder (d) a homework planner
- 27.True or false: a speak-to-type notes app needs your contacts. (a) True (b) False
-
28.📊 Survey: which problem bugs you most? Which problem should your app solve first?
missing the bus: 20 votes
no quiet study place: 10 votes
losing water bottles: 13 votes (a) losing water bottles (b) no quiet study place (c) missing the bus - 29.🔁 A loop over a list of 5 items runs its body how many times? (a) 5 (b) 6 (c) 4 (d) 1
- 30.Which of these requests is fair? (a) quiz app → microphone (b) map app → location (c) timer → your photos (d) torch → contacts
-
31.🔁 What number does this code show?
let scores = [93, 53, 91, 16, 43];
let count = 0;
for (let i = 0; i < scores.length; i++) {
if (scores[i] >= 40) {
count = count + 1;
}
}
show(count); - 32.Which of these is true of a final design? (a) uses plain grey boxes (b) is a quick sketch (c) has no real colours (d) uses the final pictures
- 33.True or false: “icons with no labels” helps everyone use the app. (a) False (b) True
- 34.🧭 Tapping a tab usually takes you to ___. (a) a random page (b) that tab’s main screen (c) the phone settings (d) the last app used
- 35.📴 Which of these can often still work with no internet? (a) a new website (b) an online search (c) a video call (d) an installed app
- 36.🔀 What does >= mean? (a) less than (b) smaller or equal (c) not equal (d) greater than or equal
- 37.Which colour pair is easy to read? (a) black on pale grey (b) pale pink on white (c) dark blue on black (d) yellow on white
- 38.True or false: the home page of an app is a screen. (a) False (b) True
-
39.🧪 One test case fails. Which one?
🚚 Rule: delivery is free (0) when the order is 700 or more; otherwise it costs 40.
function delivery(total) {
if (total > 700) {
return 0;
}
return 40;
}
Test 1: delivery(700) → expected 0
Test 2: delivery(750) → expected 0
Test 3: delivery(550) → expected 40 (a) Test 2 (b) Test 3 (c) Test 1 -
40.🧪 What is the ACTUAL result of Test 3?
🚚 Rule: delivery is free (0) when the order is 700 or more; otherwise it costs 40.
function delivery(total) {
if (total >= 700) {
return 0;
}
return 40;
}
Test 1: delivery(800) → expected 0
Test 2: delivery(700) → expected 0
Test 3: delivery(600) → expected 40
Answer key
- people reading the code
- on the phone
- Next
- Ask a parent
- a user need
- 40
- Quiz
- Help page
- True
- Design A
- the microphone
- 54
- 510
- Hi, Aman
- colour-blind users
- 3
- 1
- a homework planner
- 5
- line 3
- False
- 1
- a parameter
- 25
- True
- a water reminder
- False
- missing the bus
- 5
- map app → location
- 4
- uses the final pictures
- False
- that tab’s main screen
- an installed app
- greater than or equal
- black on pale grey
- True
- Test 1
- 40
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students