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.🧰 What number does this code show?
function double(n) {
return n * 2;
}
show(double(23)); -
2.🧭 The app has tabs Feed, Chat, Settings. You start on Feed, then:
1. open “Match report”
2. tap Back
3. open “Friend list”
4. tap Back
How many times must you tap Back to reach the main screen of this tab? - 3.💾 Where should the app save photos on two devices: on the phone or in the cloud? (a) on the phone (b) in the cloud
-
4.🧪 One test case fails. Which one?
📝 Rule: a quiz is passed with 5 or more right answers.
function result(right) {
if (right > 5) {
return "Pass";
}
return "Try again";
}
Test 1: result(4) → expected Try again
Test 2: result(5) → expected Pass
Test 3: result(6) → expected Pass (a) Test 1 (b) Test 2 (c) Test 3 - 5.Which of these is a feature? (a) “I keep missing the bus” (b) “I forget my homework” (c) “Small text is hard” (d) a search bar
- 6.🔘 Is this good or poor button design: a clear word like Save? (a) good design (b) poor design
- 7.Which of these is true of a wireframe? (a) shows where things go (b) uses the final pictures (c) looks like the real app (d) has the real colours
- 8.🗒️ You are planning version 1 of a homework planner. Which feature can WAIT for a later version? (a) add a homework task (b) see tasks by day (c) set a due date (d) share tasks to friends
-
9.🧰 What number does this code show?
function points(stars) {
return stars * 10 + 5;
}
show(points(5) + points(3)); - 10.🧰 What does return do in a function? (a) deletes the app (b) closes the screen (c) sends back a value (d) repeats the code
-
11.👆 The user taps the button 2 times. What does the label show now?
let on = false;
button.onTap = function () {
on = !on;
if (on) {
label.text = "ON";
} else {
label.text = "OFF";
}
}; (a) ON (b) OFF - 12.⚙️ In an app, is a result on screen an input, processing or an output? (a) processing (b) input (c) output
-
13.📊 Survey: which problem bugs you most? How many more votes did “wasting pocket money” get than “missing the bus”?
forgetting birthdays: 3 votes
wasting pocket money: 8 votes
missing the bus: 5 votes -
14.🧰 What number does this code show?
function double(n) {
return n * 2;
}
show(double(35)); -
15.🧰 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(7) + fee(5)); -
16.👆 Two designs for the same task (each arrow is one tap). How many taps does Design B need?
Design A: Home → Cart → Results → Address → Search
Design B: Home → Results → Offers → Cart - 17.👥 A school app has 255 students, 90 teachers and 140 parents as users. How many users does it have in all?
- 18.👆 Code that runs when an event happens is called a ___. (a) hashtag (b) handler (c) headline (d) header
- 19.🧰 In function tip(bill), what is bill? (a) a screen (b) a parameter (c) an event (d) a loop
- 20.🔢 In a photo-post flow, which comes first: “write a caption” or “post the photo”? (a) post the photo (b) write a caption
- 21.True or false: a lost-and-found board solves no real problem. (a) False (b) True
-
22.👆 The user taps the button 6 times. What number does the label show now?
let likes = 0;
button.onTap = function () {
if (likes < 3) {
likes = likes + 1;
}
label.text = likes;
}; -
23.🔀 What does this PIN rule show?
let pin = "546";
if (pin.length === 4) {
show("PIN saved");
} else {
show("Use 4 digits");
} (a) Use 4 digits (b) PIN saved - 24.🗒️ In MVP, the M stands for ___. (a) minimum (b) mobile (c) maximum (d) music
- 25.🔀 Why plan the user flow before building? (a) to skip testing (b) so each step is clear (c) to add more taps (d) to hide the buttons
-
26.♿ Our rule: text is at least 16 px. How many texts on this screen are too small?
Caption: 20 px
Title: 20 px
Hint: 12 px
Menu: 13 px -
27.💾 What does this code show? (Positions start at 0.)
let songs = ["Kites", "Sunrise", "Rain", "Stars"];
show(songs[2]); (a) Sunrise (b) Stars (c) Rain (d) Kites - 28.🚀 Your app is at version 2.7.1. The next release adds a new feature. What is its version number? (a) 2.8.0 (b) 2.7.2 (c) 2.8.1 (d) 3.0.0
- 29.🔁 list.length tells you ___. (a) the first item (b) the last item (c) the biggest item (d) how many items it has
- 30.Which of these is about UI (the look)? (a) the icon shapes (b) how easy sign-up is (c) how fast a task is done (d) how many taps it takes
-
31.🧰 What number does this code show?
function double(n) {
return n * 2;
}
show(double(11)); -
32.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
line 1: let lives = 42; // start at 42
line 2: lives = lives - 3; // add 3
line 3: lives = lives - 2; // take away 2
line 4: show(lives); // show it -
33.🧰 What number does this code show?
function double(n) {
return n * 2;
}
show(double(7)); -
34.⚙️ What number does this app show?
let price = 70; // typed by the user
let qty = 3; // typed by the user
let total = price * qty;
show(total); - 35.💡 An app that tries to do everything at once is usually ___. (a) finished fast (b) very small (c) hard to use (d) easy to build
- 36.True or false: a unit converter is a tool app. (a) False (b) True
- 37.⚙️ In an app, is working out a tip an input, processing or an output? (a) processing (b) output (c) input
-
38.🧪 What is the ACTUAL result of Test 2?
🎟️ Rule: a ticket costs 50 for children under 12, and 100 for everyone else.
function price(age) {
if (age < 12) {
return 50;
}
return 100;
}
Test 1: price(8) → expected 50
Test 2: price(12) → expected 100
Test 3: price(13) → expected 100 - 39.💡 After a survey, which need should version 1 solve? (a) a random need (b) the rarest need (c) the most common need (d) the newest trend
-
40.📊 Survey: which problem bugs you most? Which problem should your app solve first?
missing the bus: 14 votes
forgetting homework: 17 votes
wasting pocket money: 13 votes (a) wasting pocket money (b) forgetting homework (c) missing the bus
Answer key
- 46
- 0
- in the cloud
- Test 2
- a search bar
- good design
- shows where things go
- share tasks to friends
- 90
- sends back a value
- OFF
- output
- 3
- 70
- 40
- 3
- 485
- handler
- a parameter
- write a caption
- False
- 3
- Use 4 digits
- minimum
- so each step is clear
- 2
- Rain
- 2.8.0
- how many items it has
- the icon shapes
- 22
- 43
- 14
- 210
- hard to use
- True
- processing
- 100
- the most common need
- forgetting homework
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students