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 code show? (Positions start at 0.)
let notes = ["Art", "Science", "Music", "Sports"];
show(notes[0]); (a) Science (b) Music (c) Art (d) Sports -
2.🔀 Which badge does this quiz app show?
let marks = 64;
if (marks >= 80) {
show("Gold");
} else if (marks >= 50) {
show("Silver");
} else {
show("Bronze");
} (a) Silver (b) Gold (c) Bronze -
3.⚙️ Which line does the processing (works out the answer)?
line 1: let bill = 72; // typed by the user
line 2: let friends = 3; // typed by the user
line 3: let share = bill / friends;
line 4: show(share); (a) line 3 (b) line 4 (c) line 1 (d) line 2 -
4.🔀 What does this PIN rule show?
let pin = "377";
if (pin.length === 4) {
show("PIN saved");
} else {
show("Use 4 digits");
} (a) PIN saved (b) Use 4 digits -
5.👆 The user taps the button 4 times. What number does the label show now?
let points = 7;
button.onTap = function () {
points = points + 2;
label.text = points;
}; -
6.🧰 What number does this code show?
function total(price, qty) {
return price * qty;
}
show(total(50, 3)); -
7.🧭 The app has tabs Feed, Chat, Settings. You start on Feed, then:
1. open “Video”
2. tap Back
3. open “Map”
4. open “Map”
5. open “Score card”
How many times must you tap Back to reach the main screen of this tab? -
8.💾 What number does this code show?
let lives = 4;
lives = lives - 2;
lives = lives + 1;
show(lives); -
9.🔁 What is the LAST line this code shows?
let names = ["Riya", "Arjun", "Aman", "Kabir", "Meera"];
for (let i = 0; i < names.length; i++) {
show("Hi, " + names[i]);
} (a) Hi, Arjun (b) Hi, Riya (c) Hi, Meera (d) Hi, Aman - 10.Which of these is true of a final design? (a) is a quick sketch (b) has no real colours (c) uses the final pictures (d) shows where things go
-
11.🧪 How many of these test cases pass?
📝 Rule: a quiz is passed with 8 or more right answers.
function result(right) {
if (right >= 8) {
return "Pass";
}
return "Try again";
}
Test 1: result(9) → expected Pass
Test 2: result(5) → expected Try again
Test 3: result(8) → expected Pass -
12.🔀 What does this PIN rule show?
let pin = "6341";
if (pin.length === 4) {
show("PIN saved");
} else {
show("Use 4 digits");
} (a) PIN saved (b) Use 4 digits -
13.🧭 The app has tabs Lessons, Quiz, Me. You start on Lessons, then:
1. tap the Me tab
2. tap the Quiz tab
3. open “Friend list”
4. tap Back
How many times must you tap Back to reach the main screen of this tab? -
14.🔘 Our rule: buttons are at least 48 px tall. How many of these buttons follow the rule?
Save button: 44 px tall
Start button: 40 px tall
Cancel button: 64 px tall
Back button: 36 px tall - 15.🔢 In a photo-post flow, which comes LAST? (a) open the camera screen (b) post the photo (c) take the photo (d) write a caption
- 16.🔢 After an app is released, which comes first: “read user reviews” or “list what to fix”? (a) list what to fix (b) read user reviews
- 17.🔍 Which is the odd one out? (a) fast-flashing lights (b) sudden loud sounds (c) icons with no labels (d) strong colour contrast
- 18.🐞 A comment in code (after //) is for ___. (a) the battery (b) the app store (c) the phone screen (d) people reading the code
-
19.🔁 What is the LAST line this code shows?
let names = ["Aman", "Riya", "Arjun"];
for (let i = 0; i < names.length; i++) {
show("Hi, " + names[i]);
} (a) Hi, Arjun (b) Hi, Aman (c) Hi, Riya - 20.🎨 Fewer taps to finish a task usually means ___. (a) better UX (b) a bigger app (c) more colours (d) worse UX
- 21.🔍 Which is the odd one out? (a) a pop-up message (b) working out a tip (c) a result on screen (d) a buzz (vibration)
- 22.🎨 Is this about UI or UX: how fast a task is done? (a) UX (b) UI
-
23.🔁 What is the LAST line this code shows?
let names = ["Kabir", "Arjun", "Zoya", "Aman", "Meera"];
for (let i = 0; i < names.length; i++) {
show("Hi, " + names[i]);
} (a) Hi, Kabir (b) Hi, Arjun (c) Hi, Meera (d) Hi, Zoya - 24.🔘 Our rule: buttons are at least 48 px tall. The Help button is 24 px tall. How many px taller must it be?
- 25.🗒️ You are planning version 1 of a water reminder. Which feature can WAIT for a later version? (a) see today’s total (b) set a reminder time (c) share your streak (d) log a glass of water
- 26.🔍 Which is the odd one out? (a) labels on every icon (b) strong colour contrast (c) text that can grow (d) icons with no labels
- 27.Which colour pair is easy to read? (a) dark blue on black (b) red on green (c) light grey on white (d) black on pale grey
-
28.💾 What number does this code show?
let score = 9;
score = score - 7;
score = score + 1;
show(score); - 29.True or false: a final design uses plain grey boxes. (a) True (b) False
- 30.♿ Does this help everyone, or make the app harder to use: labels on every icon? (a) makes it harder (b) helps everyone
- 31.♿ Accessibility means an app works for ___. (a) only the coder (b) everyone (c) only experts (d) nobody
-
32.🔀 Which badge does this quiz app show?
let marks = 42;
if (marks >= 80) {
show("Gold");
} else if (marks >= 50) {
show("Silver");
} else {
show("Bronze");
} (a) Gold (b) Silver (c) Bronze - 33.Which of these is a screen? (a) your friends list (b) tap to Send (c) today’s step count (d) the log-in page
-
34.🔀 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! - 35.🧭 Tapping a tab usually takes you to ___. (a) that tab’s main screen (b) the last app used (c) a random page (d) the phone settings
-
36.🔁 What number does this code show?
let scores = [6, 10, 3, 11, 7];
let total = 0;
for (let i = 0; i < scores.length; i++) {
total = total + scores[i];
}
show(total); - 37.🌗 Is dark blue on white easy or hard to read on a button? (a) easy to read (b) hard to read
- 38.🧰 What does return do in a function? (a) deletes the app (b) sends back a value (c) closes the screen (d) repeats the code
- 39.True or false: a water reminder is the best fit for a gamer who forgets to drink. (a) False (b) True
- 40.🧭 Where is a tab bar usually placed in a phone app? (a) at the bottom (b) inside a button (c) nowhere (d) in the middle
Answer key
- Art
- Silver
- line 3
- Use 4 digits
- 15
- 150
- 3
- 3
- Hi, Meera
- uses the final pictures
- 3
- PIN saved
- 0
- 1
- post the photo
- read user reviews
- strong colour contrast
- people reading the code
- Hi, Arjun
- better UX
- working out a tip
- UX
- Hi, Meera
- 24
- share your streak
- icons with no labels
- black on pale grey
- 3
- False
- helps everyone
- everyone
- Bronze
- the log-in page
- Ask a parent
- that tab’s main screen
- 37
- easy to read
- sends back a value
- True
- at the bottom
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students