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.🔘 Our rule: buttons are at least 48 px tall. The Next button is 44 px tall. How many px taller must it be?
- 2.True or false: a medicine reminder solves a real problem. (a) False (b) True
-
3.📊 Survey: which problem bugs you most? How many more votes did “missing the bus” get than “no quiet study place”?
forgetting birthdays: 18 votes
no quiet study place: 16 votes
missing the bus: 22 votes -
4.🧰 What number does this code show?
function double(n) {
return n * 2;
}
show(double(27)); -
5.🔀 What does this PIN rule show?
let pin = "802";
if (pin.length === 4) {
show("PIN saved");
} else {
show("Use 4 digits");
} (a) Use 4 digits (b) PIN saved - 6.🔘 Our rule: buttons are at least 48 px tall. The Help button is 20 px tall. How many px taller must it be?
-
7.💾 What does this code show? (Positions start at 0.)
let friends = ["Zoya", "Meera", "Aman"];
show(friends[1]); (a) Zoya (b) Meera (c) Aman -
8.📊 Survey: which problem bugs you most? How many more votes did “forgetting homework” get than “missing the bus”?
missing the bus: 6 votes
no quiet study place: 24 votes
forgetting homework: 20 votes - 9.Which of these is an output? (a) tapping a button (b) checking a password (c) a result on screen (d) sorting the scores
- 10.Which of these is true of a tab bar? (a) hides extra links (b) goes to the last screen (c) shows 3 to 5 icons (d) undoes one move
- 11.True or false: icons with no meaning is poor button design. (a) False (b) True
-
12.🧰 A museum app works out the entry fee. What number does this code show?
function fee(age) {
if (age < 5) {
return 0;
}
return 50;
}
show(fee(4) + fee(8)); - 13.True or false: a beep sound is an output. (a) True (b) False
- 14.🔢 When you make an app, which comes first: “get an idea” or “plan the screens”? (a) plan the screens (b) get an idea
- 15.🔢 In a photo-post flow, which comes first: “post the photo” or “take the photo”? (a) post the photo (b) take the photo
- 16.🔁 A loop over a list of 5 items runs its body how many times? (a) 1 (b) 5 (c) 6 (d) 4
- 17.🗒️ You are planning version 1 of a quiz app. Which feature can WAIT for a later version? (a) show the score (b) check the answer (c) show a question (d) background music
- 18.🧰 What does return do in a function? (a) closes the screen (b) repeats the code (c) deletes the app (d) sends back a value
-
19.🧪 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(10) → expected Pass
Test 2: result(8) → expected Pass
Test 3: result(7) → expected Try again -
20.🔁 What number does this code show?
let steps = [9, 10, 4];
let total = 0;
for (let i = 0; i < steps.length; i++) {
total = total + steps[i];
}
show(total); -
21.🖼️ In this wireframe (top to bottom), what is right below the search box?
[ Add button ]
[ search box ]
[ tab bar ]
[ title text ] (a) Add button (b) title text (c) tab bar - 22.🗒️ You are planning version 1 of a homework planner. Which feature is a MUST-HAVE? (a) earn stickers (b) see tasks by day (c) share tasks to friends (d) pick a theme colour
- 23.🧪 A test case is an input together with its ___. (a) expected result (b) font size (c) screen colour (d) app icon
- 24.Which of these is true of a website? (a) has a home-screen icon (b) updates from the store (c) is installed on a phone (d) opens from a link
- 25.🔢 In a sign-up flow, which comes first: “type name and email” or “tap “Sign up””? (a) type name and email (b) tap “Sign up”
-
26.🔁 What number does this code show?
let marks = [5, 10, 2, 5];
let total = 0;
for (let i = 0; i < marks.length; i++) {
total = total + marks[i];
}
show(total); - 27.🔍 Which is the odd one out? (a) taking a photo (b) tapping a button (c) a result on screen (d) speaking a command
- 28.🧰 How do you run (call) a function called greet? (a) #greet (b) greet[] (c) greet() (d) run greet
-
29.🔁 What number does this code show?
let scores = [95, 92, 29];
let count = 0;
for (let i = 0; i < scores.length; i++) {
if (scores[i] >= 50) {
count = count + 1;
}
}
show(count); -
30.🖼️ In this wireframe (top to bottom), what is right below the Save button?
[ big picture ]
[ title text ]
[ search box ]
[ Save button ]
[ tab bar ]
[ list of items ] (a) big picture (b) tab bar (c) list of items (d) title text - 31.🔘 Is this good or poor button design: buttons almost touching? (a) good design (b) poor design
- 32.🎯 Is this a user need or a feature: “I forget my homework”? (a) a feature (b) a user need
- 33.True or false: a big-text reader is the best fit for a pupil juggling five projects. (a) True (b) False
-
34.⚙️ What number does this app show?
let km = 2; // typed by the user
let metres = km * 1000;
show(metres); -
35.👆 The user taps the button 5 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 - 36.🔍 Which is the odd one out? (a) try every button (b) draw the user flow (c) pick the features (d) sketch the screens
-
37.🔀 What does this battery rule show?
let battery = 70;
if (battery < 20) {
show("Low battery");
} else {
show("Battery OK");
} (a) Battery OK (b) Low battery -
38.🧰 What does this code show?
function greet(name) {
return "Hello, " + name + "!";
}
show(greet("Arjun")); (a) Hello, Arjun! (b) greet (c) Arjun (d) Hello, name! -
39.👆 The user taps the button 2 times. What number does the label show now?
let lives = 7;
button.onTap = function () {
lives = lives + 2;
label.text = lives;
}; -
40.🔀 What number does this shop app show?
let total = 330;
if (total > 500) {
total = total - 50;
}
show(total);
Answer key
- 4
- True
- 6
- 54
- Use 4 digits
- 28
- Meera
- 14
- a result on screen
- shows 3 to 5 icons
- True
- 50
- True
- get an idea
- take the photo
- 5
- background music
- sends back a value
- 2
- 23
- tab bar
- see tasks by day
- expected result
- opens from a link
- tap “Sign up”
- 22
- a result on screen
- greet()
- 2
- tab bar
- poor design
- a user need
- False
- 2000
- ON
- try every button
- Battery OK
- Hello, Arjun!
- 11
- 330
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students