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.Which of these is a button? (a) the game-over page (b) a switch for dark mode (c) a date picker (d) tap to Send
- 2.💾 Where should the app save your last game level: on the phone or in the cloud? (a) in the cloud (b) on the phone
-
3.♿ Our rule: text is at least 16 px. How many texts on this screen are too small?
Title: 19 px
Menu: 15 px
Footer: 15 px - 4.🔢 In a food-order flow, what comes right after “pick a dish”? (a) track the order (b) pay for the order (c) open the menu (d) add it to the cart
-
5.🔁 What number does this code show?
let runs = [20, 21, 27];
let count = 0;
for (let i = 0; i < runs.length; i++) {
if (runs[i] >= 40) {
count = count + 1;
}
}
show(count); -
6.🧭 The app has tabs Lessons, Quiz, Me. You start on Lessons, then:
1. open “Badges”
2. open “Map”
3. tap Back
Which screen are you on now? (a) Lessons (b) Badges (c) Map (d) Quiz -
7.🧰 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(6) + fee(12)); - 8.🔢 When you make an app, which comes FIRST? (a) release it (b) get an idea (c) test the app (d) build the app
- 9.True or false: a big-text reader is the best fit for a parent waiting at the bus stop. (a) False (b) True
- 10.🔢 After an app is released, what comes right after “list what to fix”? (a) test it again (b) release an update (c) fix and improve (d) read user reviews
- 11.📲 What happens when you tap an app’s icon? (a) the phone charges (b) the app opens (c) the app is deleted (d) the sound turns off
-
12.🔁 What number does this code show?
let scores = [10, 96, 62];
let count = 0;
for (let i = 0; i < scores.length; i++) {
if (scores[i] >= 50) {
count = count + 1;
}
}
show(count); -
13.🧭 The app has tabs Feed, Chat, Settings. You start on Feed, then:
1. open “Map”
2. open “Help page”
3. tap the Feed tab
4. open “Edit photo”
How many times must you tap Back to reach the main screen of this tab? -
14.🔁 What number does this code show?
let steps = [7, 16, 17];
let total = 0;
for (let i = 0; i < steps.length; i++) {
total = total + steps[i];
}
show(total); - 15.🛠️ At which stage do you try every button? (a) the release stage (b) the plan stage (c) the test stage (d) the build stage
- 16.🔢 In a photo-post flow, which comes first: “write a caption” or “take the photo”? (a) take the photo (b) write a caption
-
17.💾 What number does this code show?
let songs = ["Kites", "Rain", "Monsoon"];
songs.push("Ocean");
show(songs.length); -
18.🧩 How many buttons does this app screen have?
[title] Order Snacks
[text box] Age
[button] Next
[text box] City
[text box] Name
[button] Start -
19.🐞 Each comment says what its line SHOULD do. Which line has the bug?
line 1: let stars = 38; // start at 38
line 2: stars = stars * 2; // double it
line 3: stars = stars * 2; // double it
line 4: stars = stars + 7; // add 6
line 5: show(stars); // show it (a) line 2 (b) line 1 (c) line 3 (d) line 4 -
20.🔁 What number does this code show?
let marks = [3, 13, 7, 17];
let total = 0;
for (let i = 0; i < marks.length; i++) {
total = total + marks[i];
}
show(total); - 21.🗒️ You are planning version 1 of a homework planner. Which feature is a MUST-HAVE? (a) share tasks to friends (b) earn stickers (c) pick a theme colour (d) add a homework task
-
22.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
line 1: let score = 34; // start at 34
line 2: score = score + 4; // add 4
line 3: score = score - 2; // add 2
line 4: show(score); // show it -
23.🔁 What number does this code show?
let runs = [3, 20, 8, 12];
let total = 0;
for (let i = 0; i < runs.length; i++) {
total = total + runs[i];
}
show(total); - 24.Which of these is true of a wireframe? (a) uses plain grey boxes (b) shows the real fonts (c) has the real colours (d) looks like the real app
-
25.🐞 Each comment says what its line SHOULD do. Which line has the bug?
line 1: let coins = 41; // start at 41
line 2: coins = coins - 4; // take away 3
line 3: coins = coins * 2; // double it
line 4: show(coins); // show it (a) line 2 (b) line 3 (c) line 1 - 26.🔘 Our rule: buttons are at least 48 px tall. The Start button is 28 px tall. How many px taller must it be?
-
27.🧪 How many of these test cases pass?
🎟️ 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(9) → expected 50
Test 2: price(13) → expected 100
Test 3: price(12) → expected 100 - 28.True or false: the user taps Play is a tap event. (a) True (b) False
- 29.🔘 Our rule: buttons are at least 48 px tall. The Send button is 32 px tall. How many px taller must it be?
- 30.📱 Which one has a web address: an app or a website? (a) an app (b) a website
-
31.🔀 What does this sign-up rule show?
let age = 9;
if (age >= 13) {
show("Welcome!");
} else {
show("Ask a parent");
} (a) Ask a parent (b) Welcome! -
32.🖼️ In this wireframe (top to bottom), which part is at the very bottom?
[ top bar ]
[ tab bar ]
[ big picture ]
[ Save button ]
[ title text ] (a) top bar (b) tab bar (c) title text (d) Save button -
33.🔀 What number does this shop app show?
let total = 820;
if (total > 500) {
total = total - 50;
}
show(total); -
34.⚙️ Which line does the processing (works out the answer)?
line 1: let price = 500; // typed by the user
line 2: let off = 20; // typed by the user
line 3: let pay = price - off;
line 4: show(pay); (a) line 4 (b) line 2 (c) line 3 (d) line 1 - 35.Which of these is true of an app? (a) updates from the store (b) has a web address (c) needs no installing (d) opens from a link
-
36.🧰 What does this code show?
function greet(name) {
return "Hello, " + name + "!";
}
show(greet("Riya")); (a) greet (b) Riya (c) Hello, Riya! (d) Hello, name! -
37.🧭 The app has tabs Home, Search, Profile. You start on Home, then:
1. open “Video”
2. open “Map”
3. open “Badges”
4. open “Help page”
Which screen are you on now? (a) Map (b) Video (c) Help page (d) Badges - 38.📱 Which one opens in a web browser: an app or a website? (a) an app (b) a website
- 39.🔢 In a sign-up flow, what comes right after “open the app”? (a) type name and email (b) see the home screen (c) make a password (d) tap “Sign up”
- 40.True or false: a website has a home-screen icon. (a) False (b) True
Answer key
- tap to Send
- on the phone
- 2
- add it to the cart
- 0
- Badges
- 80
- get an idea
- False
- fix and improve
- the app opens
- 2
- 1
- 40
- the test stage
- take the photo
- 4
- 2
- line 4
- 40
- add a homework task
- 40
- 43
- uses plain grey boxes
- line 2
- 20
- 3
- True
- 16
- a website
- Ask a parent
- title text
- 770
- line 3
- updates from the store
- Hello, Riya!
- Help page
- a website
- tap “Sign up”
- False
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students