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 this wireframe (top to bottom), what is right above the menu icon?
[ list of items ]
[ big picture ]
[ filter buttons ]
[ Add button ]
[ menu icon ] (a) list of items (b) Add button (c) big picture (d) filter buttons - 2.✏️ Do wireframes usually show the final colours? (a) Yes (b) No
- 3.🔁 What does a loop do? (a) saves photos (b) repeats code (c) deletes code (d) draws icons
- 4.🧰 In function tip(bill), what is bill? (a) a parameter (b) an event (c) a screen (d) a loop
- 5.🌗 Is dark blue on black easy or hard to read on a button? (a) hard to read (b) easy to read
-
6.🖼️ In this wireframe (top to bottom), what is right below the Add button?
[ top bar ]
[ Add button ]
[ tab bar ]
[ filter buttons ] (a) filter buttons (b) tab bar (c) top bar - 7.📅 An app team plans for 5 days, builds for 9 days, tests for 1 days and releases on 1 more day. Planning starts on day 1. On which day does building finish?
- 8.True or false: tap to Start is a button. (a) True (b) False
-
9.🐞 This code has a bug. What number does it ACTUALLY show?
line 1: let score = 36; // start at 36
line 2: score = score * 2; // double it
line 3: score = score - 5; // add 5
line 4: score = score * 2; // double it
line 5: show(score); // show it - 10.🧭 Tapping a tab usually takes you to ___. (a) the last app used (b) that tab’s main screen (c) the phone settings (d) a random page
- 11.True or false: an app needs no installing. (a) True (b) False
-
12.💾 What does this code show? (Positions start at 0.)
let notes = ["Maths", "Sports", "Hindi", "Art"];
show(notes[1]); (a) Art (b) Hindi (c) Sports (d) Maths - 13.🔘 Our rule: buttons are at least 48 px tall. The Cancel button is 20 px tall. How many px taller must it be?
-
14.🔀 What does this PIN rule show?
let pin = "57984";
if (pin.length === 4) {
show("PIN saved");
} else {
show("Use 4 digits");
} (a) Use 4 digits (b) PIN saved - 15.🧪 Values right at a limit, like age 12 for “under 12”, are called ___. (a) phone cases (b) easy cases (c) edge cases (d) old cases
- 16.🧰 How do you run (call) a function called greet? (a) #greet (b) greet() (c) greet[] (d) run greet
- 17.Which of these is data? (a) the log-in page (b) tap to go Next (c) your friends list (d) a slider for volume
- 18.🔐 Which permission does a homework photo scanner really need? (a) the camera (b) the microphone (c) contacts (d) location
-
19.🖼️ In this wireframe (top to bottom), what is right above the top bar?
[ Add button ]
[ tab bar ]
[ top bar ]
[ big picture ] (a) tab bar (b) Add button (c) big picture -
20.🔁 What number does this code show?
let scores = [17, 5, 18];
let total = 0;
for (let i = 0; i < scores.length; i++) {
total = total + scores[i];
}
show(total); -
21.🧭 The app has tabs Feed, Chat, Settings. You start on Feed, then:
1. open “Score card”
2. tap Back
3. tap the Settings tab
Which screen are you on now? (a) Score card (b) Feed (c) Settings (d) Chat -
22.🔀 What does this sign-up rule show?
let age = 10;
if (age >= 13) {
show("Welcome!");
} else {
show("Ask a parent");
} (a) Welcome! (b) Ask a parent - 23.🔢 After an app is released, what comes right after “fix and improve”? (a) list what to fix (b) read user reviews (c) release an update (d) test it again
-
24.🔁 What number does this code show?
let steps = [47, 40, 16];
let count = 0;
for (let i = 0; i < steps.length; i++) {
if (steps[i] >= 70) {
count = count + 1;
}
}
show(count); - 25.🔍 Which is the odd one out? (a) the button colours (b) the font size (c) the theme colours (d) how fast a task is done
-
26.🧰 What number does this code show?
function total(price, qty) {
return price * qty;
}
show(total(45, 4)); -
27.🔁 What number does this code show?
let marks = [16, 9, 17, 11];
let total = 0;
for (let i = 0; i < marks.length; i++) {
total = total + marks[i];
}
show(total); -
28.🖼️ In this wireframe (top to bottom), which part is at the very bottom?
[ title text ]
[ Save button ]
[ Add button ]
[ list of items ] (a) title text (b) Save button (c) list of items (d) Add button - 29.Which of these is processing? (a) a pop-up message (b) a beep sound (c) taking a photo (d) checking a password
- 30.🗂️ What kind of app is a word battle? (a) a learning app (b) a health app (c) a tool app (d) a game
- 31.💾 Which can hold many values in order? (a) a list (b) a single number (c) a button (d) a switch
- 32.💾 What is a variable? (a) a type of screen (b) a named box for a value (c) a picture (d) a phone setting
-
33.🧪 One test case fails. Which one?
📝 Rule: a quiz is passed with 7 or more right answers.
function result(right) {
if (right > 7) {
return "Pass";
}
return "Try again";
}
Test 1: result(5) → expected Try again
Test 2: result(7) → expected Pass
Test 3: result(9) → expected Pass (a) Test 2 (b) Test 3 (c) Test 1 - 34.🔍 Which is the odd one out? (a) let friends try it (b) write down the bugs (c) try every button (d) pick the features
- 35.🧭 Which part of navigation sits at the bottom? (a) the back button (b) a menu button (c) a tab bar
-
36.🧰 What number does this code show?
function points(stars) {
return stars * 10 + 5;
}
show(points(2) + points(0)); - 37.🔐 Is this permission request fair or too much: calculator → location? (a) fair (b) too much
-
38.🐞 Each comment says what its line SHOULD do. Which line has the bug?
line 1: let score = 39; // start at 39
line 2: score = score - 5; // take away 5
line 3: score = score - 4; // add 4
line 4: show(score); // show it (a) line 2 (b) line 3 (c) line 1 - 39.💡 Does an app idea like an app that just says hi solve a real problem? (a) Yes (b) No
-
40.🔁 What number does this code show?
let steps = [16, 11, 5, 10, 1];
let best = 0;
for (let i = 0; i < steps.length; i++) {
if (steps[i] > best) {
best = steps[i];
}
}
show(best);
Answer key
- Add button
- No
- repeats code
- a parameter
- hard to read
- tab bar
- 14
- True
- 134
- that tab’s main screen
- False
- Sports
- 28
- Use 4 digits
- edge cases
- greet()
- your friends list
- the camera
- tab bar
- 40
- Settings
- Ask a parent
- test it again
- 0
- how fast a task is done
- 180
- 53
- list of items
- checking a password
- a game
- a list
- a named box for a value
- Test 2
- pick the features
- a tab bar
- 30
- too much
- line 3
- No
- 16
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students