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 does this PIN rule show?
let pin = "15769";
if (pin.length === 4) {
show("PIN saved");
} else {
show("Use 4 digits");
} (a) Use 4 digits (b) PIN saved - 2.Which of these is about UX (the experience)? (a) the button colours (b) the screen layout (c) the icon shapes (d) how users feel after
-
3.🔁 What number does this code show?
let scores = [51, 61, 84, 70];
let count = 0;
for (let i = 0; i < scores.length; i++) {
if (scores[i] >= 70) {
count = count + 1;
}
}
show(count); -
4.👆 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 -
5.🧩 Which of these is a button on this screen?
[title] Order Snacks
[button] Save
[text box] Age
[text box] City
[button] Done
[text box] Subject (a) Age (b) Subject (c) Save (d) City -
6.♿ Our rule: text is at least 16 px. Which text on this screen is too small?
Caption: 21 px
Hint: 11 px
Body text: 27 px (a) Hint (b) Caption (c) Body text - 7.🔍 Which is the odd one out? (a) write the code (b) add the buttons (c) connect the data (d) draw the user flow
- 8.🔢 In a sign-up flow, which comes first: “make a password” or “see the home screen”? (a) see the home screen (b) make a password
- 9.🚀 Your app is at version 2.6.1. The next release is a big redesign that changes how the app works. What is its version number? (a) 2.7.0 (b) 2.6.2 (c) 3.0.0 (d) 2.7.1
-
10.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
line 1: let points = 44; // start at 43
line 2: points = points * 2; // double it
line 3: points = points + 5; // add 5
line 4: show(points); // show it - 11.🔘 Our rule: buttons are at least 48 px tall. The Done button is 28 px tall. How many px taller must it be?
- 12.🚀 A privacy policy tells users ___. (a) the screen size (b) the app’s colours (c) the app’s price (d) what data is collected
- 13.Which of these app ideas solves no real problem? (a) a free study-room finder (b) a button with no action (c) a lost-and-found board (d) a bill splitter
- 14.🧰 What does return do in a function? (a) closes the screen (b) repeats the code (c) deletes the app (d) sends back a value
- 15.True or false: an app that just says hi solves no real problem. (a) True (b) False
-
16.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
line 1: let lives = 46; // start at 46
line 2: lives = lives + 4; // add 4
line 3: lives = lives + 6; // add 5
line 4: show(lives); // show it -
17.♿ Our rule: text is at least 16 px. Which text on this screen is too small?
Footer: 19 px
Caption: 25 px
Title: 12 px (a) Footer (b) Caption (c) Title -
18.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
line 1: let lives = 31; // start at 31
line 2: lives = lives + 2; // add 2
line 3: lives = lives + 1; // take away 1
line 4: lives = lives - 1; // take away 1
line 5: show(lives); // show it - 19.Which of these is processing? (a) tapping a button (b) taking a photo (c) a beep sound (d) working out a tip
-
20.🔁 What number does this code show?
let marks = [36, 78, 26, 12, 34];
let count = 0;
for (let i = 0; i < marks.length; i++) {
if (marks[i] >= 50) {
count = count + 1;
}
}
show(count); -
21.⚙️ What number does this app show?
let bill = 24; // typed by the user
let friends = 2; // typed by the user
let share = bill / friends;
show(share); -
22.💾 pop() takes off the last item. What does this code show?
let notes = ["Art", "Music", "Science", "Maths"];
notes.pop();
show(notes[notes.length - 1]); (a) Maths (b) Art (c) Music (d) Science -
23.🐞 This code has a bug. What number does it ACTUALLY show?
line 1: let stars = 36; // start at 34
line 2: stars = stars * 2; // double it
line 3: stars = stars + 4; // add 4
line 4: show(stars); // show it - 24.👥 A cricket club app has 245 players, 300 coaches and 230 fans as users. Which user group is the biggest? (a) players (b) fans (c) coaches
- 25.Which of these is true of a website? (a) is installed on a phone (b) opens in a web browser (c) has a home-screen icon (d) comes from an app store
- 26.True or false: a button with no action solves a real problem. (a) False (b) True
-
27.🧰 What number does this code show?
function double(n) {
return n * 2;
}
show(double(40)); - 28.♿ A screen has 7 icon buttons. Only 2 of them have a text label for screen readers. How many still need a label?
- 29.🔢 When you make an app, what comes right after “plan the screens”? (a) test the app (b) build the app (c) get an idea (d) release it
-
30.💾 What number does this code show?
let coins = 7;
coins = coins - 6;
coins = coins + 2;
show(coins); - 31.🔀 Why plan the user flow before building? (a) to hide the buttons (b) to add more taps (c) to skip testing (d) so each step is clear
- 32.Which of these helps everyone use the app? (a) captions on videos (b) tiny tap areas (c) sudden loud sounds (d) icons with no labels
-
33.👆 The user taps the button 6 times. What number does the label show now?
let likes = 0;
button.onTap = function () {
if (likes < 5) {
likes = likes + 1;
}
label.text = likes;
}; - 34.Which of these is a feature? (a) a share button (b) “I forget my homework” (c) “What should I cook?” (d) “I keep missing the bus”
- 35.🎯 An app for “everyone” with no clear user usually ___. (a) is easy to build (b) wins every prize (c) needs no testing (d) helps nobody well
- 36.Which of these is true of a wireframe? (a) shows the real fonts (b) uses plain grey boxes (c) looks like the real app (d) has the real colours
-
37.🧰 What number does this code show?
function triple(n) {
return n * 3;
}
show(triple(7)); - 38.🔍 Which is the odd one out? (a) checking a password (b) speaking a command (c) working out a tip (d) adding up a bill
- 39.🧪 A test case is an input together with its ___. (a) font size (b) expected result (c) app icon (d) screen colour
-
40.🐞 Each comment says what its line SHOULD do. Which line has the bug?
line 1: let stars = 43; // start at 43
line 2: stars = stars - 5; // add 5
line 3: stars = stars * 2; // double it
line 4: show(stars); // show it (a) line 1 (b) line 3 (c) line 2
Answer key
- Use 4 digits
- how users feel after
- 2
- OFF
- Save
- Hint
- draw the user flow
- make a password
- 3.0.0
- 91
- 20
- what data is collected
- a button with no action
- sends back a value
- True
- 55
- Title
- 31
- working out a tip
- 1
- 12
- Science
- 76
- coaches
- opens in a web browser
- False
- 80
- 5
- build the app
- 3
- so each step is clear
- captions on videos
- 5
- a share button
- helps nobody well
- uses plain grey boxes
- 21
- speaking a command
- expected result
- line 2
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students