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.🧰 In function tip(bill), what is bill? (a) an event (b) a loop (c) a screen (d) a parameter
- 2.🧪 What is the actual result of a test? (a) what the app really does (b) the app’s name (c) what we hope for (d) the test’s number
- 3.🔀 In this course’s code, which sign tests “is equal to”? (a) => (b) !== (c) = (d) ===
-
4.🔘 Our rule: buttons are at least 48 px tall. Which button is too small?
Done button: 36 px tall
Send button: 48 px tall
Next button: 56 px tall
Back button: 64 px tall (a) Back (b) Done (c) Send (d) Next -
5.⚙️ Which line does the processing (works out the answer)?
line 1: let price = 470; // typed by the user
line 2: let off = 40; // typed by the user
line 3: let pay = price - off;
line 4: show(pay); (a) line 4 (b) line 1 (c) line 3 (d) line 2 - 6.🔍 Which is the odd one out? (a) let friends try it (b) try every button (c) list what users need (d) write down the bugs
-
7.♿ Our rule: text is at least 16 px. Which text on this screen is too small?
Caption: 22 px
Menu: 19 px
Body text: 14 px
Title: 25 px
Footer: 28 px (a) Menu (b) Title (c) Body text (d) Caption - 8.True or false: typing your age is an input. (a) True (b) False
-
9.📊 Survey: which problem bugs you most? Which problem should your app solve first?
missing the bus: 16 votes
forgetting homework: 7 votes
wasting pocket money: 8 votes (a) wasting pocket money (b) missing the bus (c) forgetting homework - 10.Which of these app ideas solves no real problem? (a) a medicine reminder (b) a free study-room finder (c) a page of random dots (d) a bill splitter
- 11.✏️ Is this true of a wireframe or of a final design: is a quick sketch? (a) a wireframe (b) a final design
- 12.🚀 A change from version 1.4.2 to 1.4.3 usually means ___. (a) a new app (b) a big redesign (c) a new feature (d) a bug fix
- 13.🚀 In version 2.5.1, which number is the major version? (a) 5 (b) 2 (c) 1 (d) 251
- 14.True or false: an app needs no installing. (a) False (b) True
- 15.🧰 What does return do in a function? (a) closes the screen (b) sends back a value (c) deletes the app (d) repeats the code
- 16.♿ What should every icon-only button have for screen readers? (a) a bright colour (b) a sound (c) a text label (d) a long animation
-
17.👆 The user taps the button 4 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 - 18.👥 A clinic app has 260 patients, 125 doctors and 165 nurses as users. How many more patients than doctors are there?
-
19.⚙️ Which line does the processing (works out the answer)?
line 1: let km = 11; // typed by the user
line 2: let metres = km * 1000;
line 3: show(metres); (a) line 2 (b) line 3 (c) line 1 - 20.🔢 When you make an app, what comes right after “build the app”? (a) plan the screens (b) test the app (c) release it (d) get an idea
- 21.Which of these happens at the build stage? (a) connect the data (b) list what users need (c) talk to possible users (d) write the store text
- 22.🧭 Tapping a tab usually takes you to ___. (a) the phone settings (b) the last app used (c) a random page (d) that tab’s main screen
- 23.True or false: an app updates from the store. (a) True (b) False
-
24.🔀 What does this sign-up rule show?
let age = 14;
if (age >= 13) {
show("Welcome!");
} else {
show("Ask a parent");
} (a) Welcome! (b) Ask a parent -
25.🔀 What does this battery rule show?
let battery = 54;
if (battery < 20) {
show("Low battery");
} else {
show("Battery OK");
} (a) Battery OK (b) Low battery - 26.True or false: chat messages to friends fits saving in the cloud. (a) False (b) True
- 27.👆 Which of these is an event? (a) the user taps a button (b) a list of names (c) the icon colour (d) the font size
-
28.🔀 What does this PIN rule show?
let pin = "12801";
if (pin.length === 4) {
show("PIN saved");
} else {
show("Use 4 digits");
} (a) Use 4 digits (b) PIN saved -
29.🐞 Each comment says what its line SHOULD do. Which line has the bug?
line 1: let stars = 41; // start at 38
line 2: stars = stars + 4; // add 4
line 3: stars = stars - 5; // take away 5
line 4: stars = stars - 5; // take away 5
line 5: show(stars); // show it (a) line 4 (b) line 1 (c) line 3 (d) line 2 - 30.🗒️ You are planning version 1 of a water reminder. Which feature is a MUST-HAVE? (a) share your streak (b) see today’s total (c) custom alert sounds (d) water animations
- 31.✏️ Why draw a wireframe before coding? (a) it adds colours (b) it saves data (c) it runs the app (d) changes are quick
-
32.🧩 How many inputs (text boxes, switches and sliders) does this screen have?
[title] Add Homework
[button] Done
[button] Back
[text box] Age
[slider] Volume
[button] Cancel -
33.👆 The user taps the button 3 times. What number does the label show now?
let coins = 1;
button.onTap = function () {
coins = coins + 4;
label.text = coins;
}; - 34.🧩 Scores, notes and settings that an app keeps are called ___. (a) buttons (b) data (c) screens (d) tabs
-
35.🐞 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; // add 2
line 3: stars = stars + 4; // add 3
line 4: show(stars); // show it (a) line 1 (b) line 2 (c) line 3 - 36.True or false: a homework photo scanner needs the microphone. (a) False (b) True
-
37.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
line 1: let stars = 41; // start at 41
line 2: stars = stars - 3; // take away 3
line 3: stars = stars + 2; // double it
line 4: show(stars); // show it - 38.💾 Data saved only on the phone is lost when ___. (a) the phone is lost (b) you send a message (c) the app is closed (d) the screen turns off
-
39.👆 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) OFF (b) ON - 40.🔢 In a sign-up flow, which comes FIRST? (a) open the app (b) tap “Sign up” (c) make a password (d) type name and email
Answer key
- a parameter
- what the app really does
- ===
- Done
- line 3
- list what users need
- Body text
- True
- missing the bus
- a page of random dots
- a wireframe
- a bug fix
- 2
- False
- sends back a value
- a text label
- OFF
- 135
- line 2
- test the app
- connect the data
- that tab’s main screen
- True
- Welcome!
- Battery OK
- True
- the user taps a button
- Use 4 digits
- line 1
- see today’s total
- changes are quick
- 2
- 13
- data
- line 3
- False
- 76
- the phone is lost
- OFF
- open the app
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students