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?
let scores = [5, 7, 14];
let total = 0;
for (let i = 0; i < scores.length; i++) {
total = total + scores[i];
}
show(total); - 2.👆 Which of these is an event? (a) the font size (b) the user taps a button (c) the icon colour (d) a list of names
- 3.🎨 Is this about UI or UX: the screen layout? (a) UX (b) UI
- 4.🎯 Which app would help this user most: a teen learning to make snacks? (a) a bus tracker (b) a recipe finder (c) a pocket-money tracker (d) a big-text reader
- 5.🔍 Which is the odd one out? (a) spot a problem to solve (b) talk to possible users (c) write the store text (d) list what users need
- 6.True or false: a water reminder is the best fit for a runner who forgets to sip water. (a) False (b) True
- 7.🔢 In a quiz-app flow, which comes first: “see the final score” or “see if it is right”? (a) see the final score (b) see if it is right
- 8.🐞 A comment in code (after //) is for ___. (a) the phone screen (b) the battery (c) the app store (d) people reading the code
-
9.🔀 What number does this shop app show?
let total = 310;
if (total > 500) {
total = total - 50;
}
show(total); -
10.🔀 What does this sign-up rule show?
let age = 9;
if (age >= 13) {
show("Welcome!");
} else {
show("Ask a parent");
} (a) Welcome! (b) Ask a parent - 11.🔁 In for (let i = 0; i < 3; i++), which values does i take? (a) 0, 1, 2, 3 (b) 1, 2, 3 (c) 3 (d) 0, 1, 2
- 12.🔢 In a food-order flow, what comes right after “open the menu”? (a) add it to the cart (b) track the order (c) check the cart (d) pick a dish
- 13.🔢 In a sign-up flow, which comes first: “make a password” or “enter the code sent”? (a) enter the code sent (b) make a password
-
14.🧩 How many buttons does this app screen have?
[title] Sign Up
[text box] Due date
[slider] Volume
[text box] City
[button] Save
[text box] Email
[switch] Sound -
15.🧭 The app has tabs Feed, Chat, Settings. You start on Feed, then:
1. open “Map”
2. tap Back
3. tap the Chat tab
4. open “Friend list”
How many times must you tap Back to reach the main screen of this tab? -
16.🧩 Which of these is a button on this screen?
[title] New Note
[text box] Name
[button] Cancel
[slider] Text size
[button] Next
[text box] Due date
[switch] Show hints (a) Show hints (b) Name (c) Next (d) Due date - 17.🗒️ 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
- 18.✏️ What is the easiest way to draw a first wireframe? (a) a microphone (b) a 3D printer (c) pencil and paper (d) a phone case
-
19.⚙️ What number does this app show?
let km = 9; // typed by the user
let metres = km * 1000;
show(metres); - 20.⚙️ In an app, is working out a tip an input, processing or an output? (a) processing (b) input (c) output
-
21.👆 The user taps the button 1 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) OFF (b) ON -
22.👆 The user types Meera in nameBox and taps the button 1 time. What does the label show?
button.onTap = function () {
label.text = "Well done, " + nameBox.text + "!";
}; (a) Well done! (b) Meera (c) Well done, Meera! (d) Well done, nameBox.text! - 23.🔐 Is this permission request fair or too much: voice notes → microphone? (a) fair (b) too much
- 24.🔢 In a food-order flow, which comes FIRST? (a) check the cart (b) pick a dish (c) pay for the order (d) open the menu
- 25.True or false: the sound on/off setting fits saving on the phone. (a) True (b) False
-
26.♿ Our rule: text is at least 16 px. Which text on this screen is too small?
Title: 10 px
Caption: 28 px
Footer: 17 px
Hint: 21 px (a) Footer (b) Title (c) Hint (d) Caption -
27.🧩 Which of these is a button on this screen?
[title] Order Snacks
[text box] Subject
[text box] City
[button] Help
[text box] Due date (a) Due date (b) City (c) Help (d) Subject -
28.🔁 What number does this code show?
let scores = [13, 13, 18, 5];
let total = 0;
for (let i = 0; i < scores.length; i++) {
total = total + scores[i];
}
show(total); - 29.🔀 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
- 30.🔁 Why use a loop to show 100 messages? (a) less code to write (b) it hides them (c) it is slower (d) it uses more lines
-
31.⚙️ Which line does the processing (works out the answer)?
line 1: let price = 170; // typed by the user
line 2: let off = 10; // typed by the user
line 3: let pay = price - off;
line 4: show(pay); (a) line 4 (b) line 1 (c) line 2 (d) line 3 -
32.🧪 How many of these test cases pass?
🚚 Rule: delivery is free (0) when the order is 400 or more; otherwise it costs 40.
function delivery(total) {
if (total >= 400) {
return 0;
}
return 40;
}
Test 1: delivery(300) → expected 40
Test 2: delivery(650) → expected 0
Test 3: delivery(400) → expected 0 - 33.🛠️ At which stage do you pick the features? (a) the build stage (b) the release stage (c) the plan stage (d) the test stage
-
34.♿ Our rule: text is at least 16 px. How many texts on this screen are too small?
Body text: 15 px
Label: 13 px
Title: 20 px -
35.🐞 Each comment says what its line SHOULD do. Which line has the bug?
line 1: let stars = 32; // start at 31
line 2: stars = stars + 6; // add 6
line 3: stars = stars + 5; // add 5
line 4: show(stars); // show it (a) line 3 (b) line 2 (c) line 1 - 36.🌐 Which program do you need to open a website? (a) an app store (b) a web browser (c) a camera app (d) a calculator
- 37.📱 Which one opens from a link: an app or a website? (a) an app (b) a website
-
38.👆 Two designs for the same task (each arrow is one tap). How many taps does the shorter design save?
Design A: Home → Address → Pens → Offers
Design B: Home → Results → Pens → Offers → Menu → Search - 39.♿ Does this help everyone, or make the app harder to use: captions on videos? (a) makes it harder (b) helps everyone
- 40.🔢 When you make an app, what comes right after “build the app”? (a) release it (b) plan the screens (c) get an idea (d) test the app
Answer key
- 26
- the user taps a button
- UI
- a recipe finder
- write the store text
- True
- see if it is right
- people reading the code
- 310
- Ask a parent
- 0, 1, 2
- pick a dish
- make a password
- 1
- 1
- Next
- change the bus icon
- pencil and paper
- 9000
- processing
- ON
- Well done, Meera!
- fair
- open the menu
- True
- Title
- Help
- 49
- pick one of two actions
- less code to write
- line 3
- 3
- the plan stage
- 2
- line 1
- a web browser
- a website
- 2
- helps everyone
- test the app
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students