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.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
line 1: let score = 44; // start at 44
line 2: score = score - 4; // take away 3
line 3: score = score + 4; // add 4
line 4: score = score + 5; // add 5
line 5: show(score); // show it - 2.🗒️ You are planning version 1 of a homework planner. Which feature can WAIT for a later version? (a) earn stickers (b) set a due date (c) see tasks by day (d) add a homework task
-
3.⚙️ What number does this app show?
let price = 60; // typed by the user
let qty = 4; // typed by the user
let total = price * qty;
show(total); - 4.👥 A clinic app has 170 patients, 90 doctors and 285 nurses as users. Which user group is the biggest? (a) patients (b) doctors (c) nurses
- 5.Which of these happens at the build stage? (a) sketch the screens (b) draw the user flow (c) spot a problem to solve (d) add the buttons
- 6.Which of these makes the app harder to use? (a) labels on every icon (b) captions on videos (c) strong colour contrast (d) sudden loud sounds
-
7.💾 What does this code show? (Positions start at 0.)
let songs = ["Rain", "Monsoon", "Stars"];
show(songs[0]); (a) Stars (b) Monsoon (c) Rain -
8.🧪 One test case fails. Which one?
🎟️ Rule: a ticket costs 50 for children under 14, and 100 for everyone else.
function price(age) {
if (age <= 14) {
return 50;
}
return 100;
}
Test 1: price(19) → expected 100
Test 2: price(14) → expected 100
Test 3: price(13) → expected 50 (a) Test 1 (b) Test 3 (c) Test 2 - 9.🐞 What is a good first step when an app gives a wrong result? (a) delete the app (b) add more colours (c) buy a new phone (d) find where it goes wrong
-
10.🔀 What does this battery rule show?
let battery = 92;
if (battery < 20) {
show("Low battery");
} else {
show("Battery OK");
} (a) Low battery (b) Battery OK - 11.True or false: strong colour contrast is good button design. (a) True (b) False
- 12.Which of these is a feature? (a) “Small text is hard” (b) a share button (c) “What should I cook?” (d) “I keep missing the bus”
- 13.🔢 In a quiz-app flow, which comes FIRST? (a) pick an answer (b) see if it is right (c) read a question (d) tap “Start quiz”
- 14.🗒️ You are planning version 1 of a water reminder. Which feature is a MUST-HAVE? (a) share your streak (b) water animations (c) set a reminder time (d) custom alert sounds
- 15.👆 An event in an app is ___. (a) something that happens (b) an app store (c) a colour theme (d) a kind of list
-
16.🔁 What number does this code show?
let scores = [3, 7, 12, 6, 13];
let best = 0;
for (let i = 0; i < scores.length; i++) {
if (scores[i] > best) {
best = scores[i];
}
}
show(best); -
17.🗒️ Version 1 of a water reminder must be ready in 13 days. How many days are left for extras after the must-haves?
set a reminder time: 3 days
log a glass of water: 2 days
see today’s total: 2 days -
18.👆 Two designs for the same task (each arrow is one tap). How many taps does the shorter design save?
Design A: Home → Address → Item → Offers → Menu → Pens
Design B: Home → Cart → Item → Offers - 19.💾 Where should the app save a draft you are typing: on the phone or in the cloud? (a) in the cloud (b) on the phone
- 20.Which colour pair is easy to read? (a) pale pink on white (b) white on dark green (c) red on green (d) yellow on white
- 21.Which of these is true of the back button? (a) opens a list of pages (b) goes to the last screen (c) sits at the bottom (d) switches main sections
- 22.🧭 Which part of navigation goes to the last screen? (a) a tab bar (b) the back button (c) a menu button
- 23.🧰 Why write a function? (a) to make code longer (b) to reuse code (c) to slow the app (d) to hide errors
- 24.True or false: you talk to possible users at the build stage. (a) True (b) False
- 25.Which of these is a user need? (a) “What should I cook?” (b) a share button (c) a search bar (d) a dark mode switch
- 26.True or false: an alarm clock is a tool app. (a) True (b) False
- 27.🗒️ The first small, working version of an app is often called an ___. (a) URL (b) MVP (c) CPU (d) FAQ
-
28.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
line 1: let score = 51; // start at 49
line 2: score = score + 6; // add 6
line 3: score = score + 4; // add 4
line 4: show(score); // show it - 29.🔀 What does >= mean? (a) smaller or equal (b) greater than or equal (c) less than (d) not equal
-
30.🔁 What is the LAST line this code shows?
let names = ["Kabir", "Zoya", "Riya", "Arjun"];
for (let i = 0; i < names.length; i++) {
show("Hi, " + names[i]);
} (a) Hi, Zoya (b) Hi, Kabir (c) Hi, Riya (d) Hi, Arjun - 31.🔍 Which is the odd one out? (a) a pop-up message (b) a beep sound (c) speaking a command (d) a result on screen
-
32.🔀 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 -
33.🧰 What number does this code show?
function points(stars) {
return stars * 10 + 5;
}
show(points(4) + points(1)); -
34.🧰 What number does this code show?
function triple(n) {
return n * 3;
}
show(triple(20)); - 35.💡 A good app idea starts with ___. (a) a cool logo (b) a problem to solve (c) a long name (d) many colours
-
36.🧪 One test case fails. Which one?
📝 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(8) → expected Pass
Test 2: result(9) → expected Pass
Test 3: result(7) → expected Try again (a) Test 2 (b) Test 3 (c) Test 1 - 37.🧰 What is a function? (a) a list of colours (b) a named block of code (c) a screen size (d) a type of phone
- 38.🗒️ You are planning version 1 of a water reminder. Which feature is a MUST-HAVE? (a) see today’s total (b) share your streak (c) custom alert sounds (d) water animations
- 39.💡 Which app idea solves this problem: the library is always full? (a) a study-room finder (b) a medicine reminder (c) a bill splitter (d) a homework planner
- 40.🗒️ You are planning version 1 of a bus tracker. Which feature can WAIT for a later version? (a) see where the bus is (b) pick your bus stop (c) show arrival time (d) rate the driver
Answer key
- 50
- earn stickers
- 240
- nurses
- add the buttons
- sudden loud sounds
- Rain
- Test 2
- find where it goes wrong
- Battery OK
- True
- a share button
- tap “Start quiz”
- set a reminder time
- something that happens
- 13
- 6
- 2
- on the phone
- white on dark green
- goes to the last screen
- the back button
- to reuse code
- False
- “What should I cook?”
- True
- MVP
- 59
- greater than or equal
- Hi, Arjun
- speaking a command
- Ask a parent
- 60
- 60
- a problem to solve
- Test 1
- a named block of code
- see today’s total
- a study-room finder
- rate the driver
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students