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.👆 Two designs for the same task (each arrow is one tap). How many taps does Design A need?
Design A: Home → Cart → Pens → Offers → Menu
Design B: Home → Shop → Confirm → Menu → Offers → Results - 2.Which of these is true of a website? (a) updates from the store (b) has a home-screen icon (c) comes from an app store (d) opens from a link
- 3.🧰 Why write a function? (a) to slow the app (b) to make code longer (c) to hide errors (d) to reuse code
-
4.🔘 Our rule: buttons are at least 48 px tall. Which button is too small?
Start button: 60 px tall
Done button: 24 px tall
Send button: 52 px tall (a) Send (b) Start (c) Done - 5.🔀 When does the else part run? (a) never (b) when the test is false (c) always (d) when the test is true
- 6.True or false: the screen first opens is a text event. (a) True (b) False
-
7.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
line 1: let coins = 47; // start at 47
line 2: coins = coins - 3; // take away 3
line 3: coins = coins + 2; // double it
line 4: coins = coins - 3; // take away 3
line 5: show(coins); // show it -
8.💾 What does this code show? (Positions start at 0.)
let friends = ["Kabir", "Arjun", "Riya", "Zoya", "Aman"];
show(friends[1]); (a) Riya (b) Kabir (c) Zoya (d) Arjun - 9.🧩 Which input is best for turning something ON or OFF? (a) a title (b) a text box (c) a switch (d) a slider
- 10.🎯 Which app would help this user most: a student who keeps forgetting due dates? (a) a bus tracker (b) a homework planner (c) a big-text reader (d) a pocket-money tracker
-
11.🧰 What number does this code show?
function double(n) {
return n * 2;
}
show(double(17)); -
12.🧰 What number does this code show?
function total(price, qty) {
return price * qty;
}
show(total(40, 2)); - 13.🔁 Why use a loop to show 100 messages? (a) it hides them (b) less code to write (c) it uses more lines (d) it is slower
-
14.👆 Two designs for the same task (each arrow is one tap). How many taps does the shorter design save?
Design A: Home → Confirm → Address
Design B: Home → Offers → Shop → Item - 15.🧪 Values right at a limit, like age 12 for “under 12”, are called ___. (a) old cases (b) edge cases (c) easy cases (d) phone cases
- 16.🔢 When you make an app, which comes FIRST? (a) plan the screens (b) release it (c) build the app (d) get an idea
- 17.🎨 Is this about UI or UX: whether users get lost? (a) UX (b) UI
-
18.🔁 What number does this code show?
let marks = [12, 20, 8, 13, 17];
let best = 0;
for (let i = 0; i < marks.length; i++) {
if (marks[i] > best) {
best = marks[i];
}
}
show(best); -
19.🧰 What number does this code show?
function total(price, qty) {
return price * qty;
}
show(total(45, 2)); - 20.🔢 When you make an app, what comes right after “plan the screens”? (a) test the app (b) get an idea (c) release it (d) build the app
- 21.💡 A good app idea starts with ___. (a) a cool logo (b) a long name (c) many colours (d) a problem to solve
- 22.🔘 Is this good or poor button design: grey text on grey? (a) poor design (b) good design
-
23.🐞 Each comment says what its line SHOULD do. Which line has the bug?
line 1: let score = 43; // start at 41
line 2: score = score + 2; // add 2
line 3: score = score + 6; // add 6
line 4: show(score); // show it (a) line 1 (b) line 2 (c) line 3 - 24.Which of these happens at the plan stage? (a) put it on an app store (b) sketch the screens (c) list what users need (d) try every button
-
25.🔁 What number does this code show?
let runs = [4, 9, 17, 6];
let total = 0;
for (let i = 0; i < runs.length; i++) {
total = total + runs[i];
}
show(total); -
26.🧰 What number does this code show?
function total(price, qty) {
return price * qty;
}
show(total(100, 3)); - 27.Which colour pair is hard to read? (a) white on dark green (b) black on yellow (c) yellow on white (d) black on pale grey
- 28.💾 Saving data in the cloud lets you ___. (a) never need a password (b) use it on any device (c) shrink the app (d) skip the internet
-
29.🐞 Each comment says what its line SHOULD do. Which line has the bug?
line 1: let lives = 38; // start at 38
line 2: lives = lives + 7; // add 4
line 3: lives = lives * 2; // double it
line 4: show(lives); // show it (a) line 1 (b) line 2 (c) line 3 - 30.🎨 Is this about UI or UX: how users feel after? (a) UX (b) UI
- 31.Which of these app ideas solves a real problem? (a) a medicine reminder (b) an app that just says hi (c) a button with no action (d) a blank grey screen
- 32.🔢 In a quiz-app flow, which comes FIRST? (a) pick an answer (b) see if it is right (c) see the final score (d) tap “Start quiz”
-
33.🔁 What number does this code show?
let marks = [8, 6, 16, 5, 15];
let total = 0;
for (let i = 0; i < marks.length; i++) {
total = total + marks[i];
}
show(total); -
34.🧪 How many of these test cases pass?
🚚 Rule: delivery is free (0) when the order is 400 or more; otherwise it costs 40.
function delivery(total) {
if (total > 400) {
return 0;
}
return 40;
}
Test 1: delivery(250) → expected 40
Test 2: delivery(700) → expected 0
Test 3: delivery(800) → expected 0 - 35.Which of these is an input? (a) a result on screen (b) working out a tip (c) a beep sound (d) typing your age
- 36.🧭 Which part of navigation goes to the last screen? (a) a tab bar (b) a menu button (c) the back button
- 37.🗒️ You are planning version 1 of a water reminder. Which feature can WAIT for a later version? (a) log a glass of water (b) set a reminder time (c) see today’s total (d) custom alert sounds
- 38.👆 What kind of event is this: the user taps Play? (a) a text event (b) a tap event (c) a load event (d) a timer event
-
39.🧪 How many of these test cases pass?
📝 Rule: a quiz is passed with 5 or more right answers.
function result(right) {
if (right > 5) {
return "Pass";
}
return "Try again";
}
Test 1: result(7) → expected Pass
Test 2: result(5) → expected Pass
Test 3: result(3) → expected Try again - 40.Which of these is true of the back button? (a) hides extra links (b) switches main sections (c) opens a list of pages (d) goes to the last screen
Answer key
- 4
- opens from a link
- to reuse code
- Done
- when the test is false
- False
- 85
- Arjun
- a switch
- a homework planner
- 34
- 80
- less code to write
- 1
- edge cases
- get an idea
- UX
- 20
- 90
- build the app
- a problem to solve
- poor design
- line 1
- sketch the screens
- 36
- 300
- yellow on white
- use it on any device
- line 2
- UX
- a medicine reminder
- tap “Start quiz”
- 50
- 3
- typing your age
- the back button
- custom alert sounds
- a tap event
- 2
- goes to the last screen
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students