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 number does this code show?
let scores = [20, 8, 3, 2, 10];
let total = 0;
for (let i = 0; i < scores.length; i++) {
total = total + scores[i];
}
show(total); - 2.🎯 What is the best first step to learn what users need? (a) write the code (b) pick the colours (c) guess on your own (d) ask and watch users
-
3.🧰 What number does this code show?
function points(stars) {
return stars * 10 + 5;
}
show(points(4) + points(0)); - 4.👥 A school app has 45 students, 275 teachers and 130 parents as users. How many users does it have in all?
- 5.💡 Does an app idea like a library due-date alert solve a real problem? (a) No (b) Yes
-
6.♿ Our rule: text is at least 16 px. Which text on this screen is too small?
Title: 20 px
Hint: 13 px
Footer: 20 px (a) Footer (b) Title (c) Hint - 7.True or false: sorting the scores is an output. (a) False (b) True
-
8.🧪 One test case fails. Which one?
🎟️ Rule: a ticket costs 50 for children under 10, and 100 for everyone else.
function price(age) {
if (age <= 10) {
return 50;
}
return 100;
}
Test 1: price(10) → expected 100
Test 2: price(6) → expected 50
Test 3: price(11) → expected 100 (a) Test 2 (b) Test 3 (c) Test 1 -
9.🔀 What does this sign-up rule show?
let age = 17;
if (age >= 13) {
show("Welcome!");
} else {
show("Ask a parent");
} (a) Ask a parent (b) Welcome! - 10.Which of these makes the app harder to use? (a) fast-flashing lights (b) strong colour contrast (c) big touch targets (d) labels on every icon
-
11.🔀 What number does this shop app show?
let total = 770;
if (total > 500) {
total = total - 50;
}
show(total); - 12.🔍 Which is the odd one out? (a) adding up a bill (b) a result on screen (c) a pop-up message (d) a beep sound
- 13.🔍 Which is the odd one out? (a) icons with no labels (b) captions on videos (c) tiny tap areas (d) sudden loud sounds
-
14.🔁 What is the LAST line this code shows?
let names = ["Aman", "Zoya", "Arjun"];
for (let i = 0; i < names.length; i++) {
show("Hi, " + names[i]);
} (a) Hi, Aman (b) Hi, Arjun (c) Hi, Zoya - 15.Which of these is processing? (a) tapping a button (b) working out a tip (c) typing your age (d) a result on screen
-
16.💾 What number does this code show?
let notes = ["Music", "Hindi"];
notes.push("Art");
show(notes.length); - 17.🛠️ At which stage do you spot a problem to solve? (a) the build stage (b) the release stage (c) the plan stage (d) the idea stage
- 18.✏️ Is this true of a wireframe or of a final design: shows where things go? (a) a final design (b) a wireframe
- 19.🧭 What does the back button usually do? (a) goes to the last screen (b) closes all apps (c) deletes the page (d) opens settings
- 20.🔢 After an app is released, which comes first: “release an update” or “fix and improve”? (a) release an update (b) fix and improve
- 21.⚙️ In an app, is working out a tip an input, processing or an output? (a) processing (b) input (c) output
-
22.🔀 What number does this shop app show?
let total = 410;
if (total > 500) {
total = total - 50;
}
show(total); - 23.👥 A cricket club app has 20 players, 25 coaches and 180 fans as users. How many users does it have in all?
- 24.🔍 Which is the odd one out? (a) a beep sound (b) a pop-up message (c) tapping a button (d) a result on screen
- 25.🎯 Is this a user need or a feature: “I forget my homework”? (a) a feature (b) a user need
- 26.True or false: your friends list is data. (a) True (b) False
- 27.🧭 Which part of navigation goes to the last screen? (a) a menu button (b) the back button (c) a tab bar
- 28.🎨 A beautiful app that confuses everyone has ___. (a) perfect UX (b) good UI but poor UX (c) no UI at all (d) good UX but poor UI
-
29.🔀 What does this battery rule show?
let battery = 19;
if (battery < 20) {
show("Low battery");
} else {
show("Battery OK");
} (a) Battery OK (b) Low battery -
30.🧩 How many buttons does this app screen have?
[title] New Note
[text box] Name
[slider] Brightness
[text box] Email
[text box] Due date
[button] Help - 31.🔀 In a good flow, each screen should lead to ___. (a) a clear next step (b) a dead end (c) a random page (d) the same screen
- 32.🧩 In an app, what is tap to Save? (a) a button (b) data (c) an input (d) a screen
- 33.Which of these is a screen? (a) the home page of an app (b) a box to type a name (c) your friends list (d) your high score
- 34.👆 What kind of event is this: the user presses Save? (a) a timer event (b) a tap event (c) a text event (d) a load event
-
35.🧩 Which of these is a button on this screen?
[title] New Note
[slider] Brightness
[button] Back
[switch] Remind me
[text box] Due date (a) Brightness (b) Due date (c) Back (d) Remind me -
36.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
line 1: let points = 38; // start at 38
line 2: points = points + 3; // add 3
line 3: points = points - 4; // take away 4
line 4: points = points + 4; // add 3
line 5: show(points); // show it - 37.Which of these is an input? (a) a result on screen (b) tapping a button (c) adding up a bill (d) sorting the scores
- 38.🗒️ A to-do app with no “add a task” feature is ___. (a) a nice extra (b) ready to release (c) well planned (d) missing a must-have
-
39.🧰 What number does this code show?
function total(price, qty) {
return price * qty;
}
show(total(75, 3)); - 40.🗒️ When should nice-to-have features be built? (a) on day one (b) never (c) after the must-haves (d) before anything
Answer key
- 43
- ask and watch users
- 50
- 450
- Yes
- Hint
- False
- Test 1
- Welcome!
- fast-flashing lights
- 720
- adding up a bill
- captions on videos
- Hi, Arjun
- working out a tip
- 3
- the idea stage
- a wireframe
- goes to the last screen
- fix and improve
- processing
- 410
- 225
- tapping a button
- a user need
- True
- the back button
- good UI but poor UX
- Low battery
- 1
- a clear next step
- a button
- the home page of an app
- a tap event
- Back
- 40
- tapping a button
- missing a must-have
- 225
- after the must-haves
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students