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.👆 The user taps the button 8 times. What number does the label show now?
let likes = 0;
button.onTap = function () {
if (likes < 5) {
likes = likes + 1;
}
label.text = likes;
}; - 2.🔀 In this course’s code, which sign tests “is equal to”? (a) = (b) !== (c) => (d) ===
- 3.Which of these is data? (a) a switch for dark mode (b) the settings page (c) a date picker (d) today’s step count
-
4.📊 Survey: which problem bugs you most? How many more votes did “missing the bus” get than “no quiet study place”?
missing the bus: 24 votes
losing water bottles: 12 votes
no quiet study place: 5 votes - 5.♿ What does a screen reader do? (a) takes photos (b) makes text tiny (c) plays music (d) reads the screen aloud
-
6.🖼️ In this wireframe (top to bottom), what is right above the Save button?
[ search box ]
[ Save button ]
[ top bar ]
[ filter buttons ]
[ menu icon ] (a) filter buttons (b) top bar (c) search box (d) menu icon -
7.🔀 What number does this shop app show?
let total = 250;
if (total > 500) {
total = total - 50;
}
show(total); -
8.💾 What does this code show? (Positions start at 0.)
let songs = ["Monsoon", "Rain", "Ocean"];
show(songs[2]); (a) Monsoon (b) Rain (c) Ocean -
9.♿ Our rule: text is at least 16 px. Which text on this screen is too small?
Hint: 23 px
Label: 25 px
Title: 23 px
Caption: 23 px
Menu: 12 px (a) Menu (b) Hint (c) Label (d) Title -
10.🔀 What does this battery rule show?
let battery = 4;
if (battery < 20) {
show("Low battery");
} else {
show("Battery OK");
} (a) Low battery (b) Battery OK -
11.🧰 What number does this code show?
function points(stars) {
return stars * 10 + 5;
}
show(points(1) + points(4)); -
12.🔁 What number does this code show?
let marks = [12, 19, 20];
let best = 0;
for (let i = 0; i < marks.length; i++) {
if (marks[i] > best) {
best = marks[i];
}
}
show(best); - 13.🔍 Which is the odd one out? (a) the icon shapes (b) the screen layout (c) the button colours (d) how fast a task is done
-
14.⚙️ What number does this app show?
let bill = 32; // typed by the user
let friends = 2; // typed by the user
let share = bill / friends;
show(share); -
15.🔁 What is the LAST line this code shows?
let names = ["Meera", "Aman", "Arjun", "Zoya", "Riya"];
for (let i = 0; i < names.length; i++) {
show("Hi, " + names[i]);
} (a) Hi, Meera (b) Hi, Riya (c) Hi, Aman (d) Hi, Arjun -
16.🚀 Which of these versions is the OLDEST?
3.5.4, 2.23.8, 3.3.6, 3.18.9 (a) 3.5.4 (b) 3.18.9 (c) 2.23.8 (d) 3.3.6 - 17.🗒️ You are planning version 1 of a water reminder. Which feature can WAIT for a later version? (a) see today’s total (b) share your streak (c) log a glass of water (d) set a reminder time
- 18.🎯 What is a user need? (a) a type of button (b) a colour theme (c) a problem a user has (d) a phone setting
- 19.🧩 In an app, what is your high score? (a) an input (b) a screen (c) data (d) a button
-
20.🔁 What number does this code show?
let steps = [1, 9, 5];
let total = 0;
for (let i = 0; i < steps.length; i++) {
total = total + steps[i];
}
show(total); - 21.✏️ Is this true of a wireframe or of a final design: looks like the real app? (a) a wireframe (b) a final design
-
22.💾 What number does this code show?
let stars = 5;
stars = stars - 1;
stars = stars + 1;
show(stars); - 23.👆 What kind of event is this: a finger hits Like? (a) a load event (b) a text event (c) a tap event (d) a timer event
- 24.🗒️ You are planning version 1 of a bus tracker. Which feature is a MUST-HAVE? (a) change the bus icon (b) rate the driver (c) see where the bus is (d) a dark mode
- 25.👆 A tap handler runs how many times if the user taps 4 times? (a) 0 (b) 4 (c) 1 (d) 8
- 26.True or false: the button colours is about UI (the look). (a) True (b) False
- 27.Which of these is processing? (a) tapping a button (b) adding up a bill (c) taking a photo (d) a result on screen
- 28.🔀 When does the else part run? (a) never (b) always (c) when the test is false (d) when the test is true
- 29.🗒️ You are planning version 1 of a water reminder. Which feature is a MUST-HAVE? (a) share your streak (b) custom alert sounds (c) water animations (d) set a reminder time
-
30.🔀 What does this sign-up rule show?
let age = 12;
if (age >= 13) {
show("Welcome!");
} else {
show("Ask a parent");
} (a) Welcome! (b) Ask a parent -
31.🧭 The app has tabs Feed, Chat, Settings. You start on Feed, then:
1. open “Match report”
2. open “Help page”
3. open “Video”
4. open “Score card”
5. tap Back
How many times must you tap Back to reach the main screen of this tab? - 32.🔢 In a photo-post flow, which comes LAST? (a) write a caption (b) take the photo (c) open the camera screen (d) post the photo
- 33.🗒️ A to-do app with no “add a task” feature is ___. (a) missing a must-have (b) ready to release (c) well planned (d) a nice extra
- 34.Which of these helps everyone use the app? (a) labels on every icon (b) colour as the only clue (c) fast-flashing lights (d) tiny tap areas
- 35.True or false: the screen first opens is a text event. (a) True (b) False
- 36.True or false: a spelling coach is a game. (a) True (b) False
-
37.🐞 Each comment says what its line SHOULD do. Which line has the bug?
line 1: let score = 50; // start at 50
line 2: score = score * 2; // double it
line 3: score = score + 9; // add 6
line 4: show(score); // show it (a) line 3 (b) line 2 (c) line 1 -
38.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
line 1: let coins = 46; // start at 46
line 2: coins = coins + 4; // add 4
line 3: coins = coins - 4; // take away 4
line 4: coins = coins - 5; // take away 4
line 5: show(coins); // show it - 39.🚀 Your app is at version 1.3.4. The next release fixes a small bug. What is its version number? (a) 1.4.4 (b) 2.0.0 (c) 1.4.0 (d) 1.3.5
- 40.🧩 What does a button do when you tap it? (a) starts an action (b) saves the battery (c) shows the time (d) changes the phone
Answer key
- 5
- ===
- today’s step count
- 19
- reads the screen aloud
- search box
- 250
- Ocean
- Menu
- Low battery
- 60
- 20
- how fast a task is done
- 16
- Hi, Riya
- 2.23.8
- share your streak
- a problem a user has
- data
- 15
- a final design
- 5
- a tap event
- see where the bus is
- 4
- True
- adding up a bill
- when the test is false
- set a reminder time
- Ask a parent
- 3
- post the photo
- missing a must-have
- labels on every icon
- False
- False
- line 3
- 42
- 1.3.5
- starts an action
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students