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 marks = [3, 4, 11];
let total = 0;
for (let i = 0; i < marks.length; i++) {
total = total + marks[i];
}
show(total); - 2.🗒️ You are planning version 1 of a bus tracker. Which feature can WAIT for a later version? (a) see where the bus is (b) change the bus icon (c) show arrival time (d) pick your bus stop
- 3.Which of these is true of an app? (a) opens in a web browser (b) needs no installing (c) opens from a link (d) is installed on a phone
- 4.♿ Showing right or wrong only in red and green is a problem for ___. (a) fast typists (b) the battery (c) colour-blind users (d) the server
- 5.🎨 Is this about UI or UX: the icon shapes? (a) UI (b) UX
- 6.🎨 UI stands for user ___. (a) interface (b) input (c) idea (d) internet
- 7.True or false: space between buttons is poor button design. (a) True (b) False
- 8.🔢 When you make an app, what comes right after “test the app”? (a) get an idea (b) plan the screens (c) release it (d) build the app
- 9.🔢 After an app is released, which comes first: “fix and improve” or “test it again”? (a) test it again (b) fix and improve
- 10.Which of these is true of a wireframe? (a) uses plain grey boxes (b) uses the final pictures (c) looks like the real app (d) shows the real fonts
- 11.🔁 A loop over a list of 5 items runs its body how many times? (a) 1 (b) 6 (c) 4 (d) 5
- 12.🔍 Which is the odd one out? (a) write down the bugs (b) draw the user flow (c) pick the features (d) sketch the screens
-
13.👆 The user taps the button 2 times. What number does the label show now?
let likes = 0;
button.onTap = function () {
if (likes < 5) {
likes = likes + 1;
}
label.text = likes;
}; -
14.🔁 What number does this code show?
let steps = [3, 6, 3, 19];
let total = 0;
for (let i = 0; i < steps.length; i++) {
total = total + steps[i];
}
show(total); - 15.🧭 Which part of navigation switches main sections? (a) a tab bar (b) a menu button (c) the back button
- 16.🔀 A screen with no way forward or back is called a ___. (a) shortcut (b) home screen (c) dead end (d) tab bar
- 17.🧰 How do you run (call) a function called greet? (a) greet() (b) greet[] (c) run greet (d) #greet
-
18.🧭 The app has tabs Home, Search, Profile. You start on Home, then:
1. open “Friend list”
2. open “Score card”
3. tap the Home tab
How many times must you tap Back to reach the main screen of this tab? -
19.👆 The user taps the button 4 times. What number does the label show now?
let likes = 0;
button.onTap = function () {
if (likes < 4) {
likes = likes + 1;
}
label.text = likes;
}; -
20.👆 The user taps the button 1 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) OFF (b) ON - 21.🚀 A change from version 1.4.2 to 1.4.3 usually means ___. (a) a new app (b) a new feature (c) a bug fix (d) a big redesign
- 22.🔁 list.length tells you ___. (a) the first item (b) the biggest item (c) how many items it has (d) the last item
-
23.🧰 What number does this code show?
function double(n) {
return n * 2;
}
show(double(17)); - 24.🔀 Why plan the user flow before building? (a) to add more taps (b) to skip testing (c) to hide the buttons (d) so each step is clear
-
25.🔀 Which badge does this quiz app show?
let marks = 31;
if (marks >= 80) {
show("Gold");
} else if (marks >= 50) {
show("Silver");
} else {
show("Bronze");
} (a) Bronze (b) Gold (c) Silver -
26.🔁 What is the LAST line this code shows?
let names = ["Riya", "Meera", "Aman"];
for (let i = 0; i < names.length; i++) {
show("Hi, " + names[i]);
} (a) Hi, Meera (b) Hi, Riya (c) Hi, Aman - 27.🔢 In a quiz-app flow, what comes right after “tap “Start quiz””? (a) read a question (b) see if it is right (c) see the final score (d) pick an answer
- 28.📅 An app team plans for 3 days, builds for 4 days, tests for 3 days and releases on 1 more day. How many days does the whole project take?
- 29.True or false: a water reminder is the best fit for a teen whose money runs out by Friday. (a) True (b) False
- 30.🔀 What does >= mean? (a) less than (b) not equal (c) smaller or equal (d) greater than or equal
- 31.True or false: a beep sound is processing. (a) True (b) False
-
32.🧰 What number does this code show?
function total(price, qty) {
return price * qty;
}
show(total(75, 3)); - 33.🚀 Which version is newer: 1.3.2 or 1.10.3? (a) 1.3.2 (b) 1.10.3
-
34.👆 The user taps the button 3 times. What number does the label show now?
let likes = 0;
button.onTap = function () {
if (likes < 3) {
likes = likes + 1;
}
label.text = likes;
}; -
35.🧪 How many of these test cases pass?
🚚 Rule: delivery is free (0) when the order is 800 or more; otherwise it costs 40.
function delivery(total) {
if (total >= 800) {
return 0;
}
return 40;
}
Test 1: delivery(750) → expected 40
Test 2: delivery(900) → expected 0
Test 3: delivery(950) → expected 0 -
36.🧪 One test case fails. Which one?
📝 Rule: a quiz is passed with 6 or more right answers.
function result(right) {
if (right > 6) {
return "Pass";
}
return "Try again";
}
Test 1: result(3) → expected Try again
Test 2: result(6) → expected Pass
Test 3: result(8) → expected Pass (a) Test 2 (b) Test 1 (c) Test 3 - 37.Which of these app ideas solves no real problem? (a) an app that just says hi (b) a free study-room finder (c) a lost-and-found board (d) a library due-date alert
-
38.🔀 Which badge does this quiz app show?
let marks = 29;
if (marks >= 80) {
show("Gold");
} else if (marks >= 50) {
show("Silver");
} else {
show("Bronze");
} (a) Silver (b) Bronze (c) Gold - 39.🗒️ You are planning version 1 of a water reminder. Which feature can WAIT for a later version? (a) log a glass of water (b) share your streak (c) see today’s total (d) set a reminder time
-
40.📊 Survey: which problem bugs you most? Which problem should your app solve first?
losing water bottles: 24 votes
wasting pocket money: 9 votes
no quiet study place: 19 votes (a) wasting pocket money (b) no quiet study place (c) losing water bottles
Answer key
- 18
- change the bus icon
- is installed on a phone
- colour-blind users
- UI
- interface
- False
- release it
- fix and improve
- uses plain grey boxes
- 5
- write down the bugs
- 2
- 31
- a tab bar
- dead end
- greet()
- 0
- 4
- ON
- a bug fix
- how many items it has
- 34
- so each step is clear
- Bronze
- Hi, Aman
- read a question
- 11
- False
- greater than or equal
- False
- 225
- 1.10.3
- 3
- 3
- Test 2
- an app that just says hi
- Bronze
- share your streak
- losing water bottles
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students