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 = [4, 10, 16, 11];
let best = 0;
for (let i = 0; i < scores.length; i++) {
if (scores[i] > best) {
best = scores[i];
}
}
show(best); -
2.🐞 Each comment says what its line SHOULD do. Which line has the bug?
line 1: let lives = 35; // start at 35
line 2: lives = lives + 5; // add 3
line 3: lives = lives + 4; // add 4
line 4: show(lives); // show it (a) line 3 (b) line 1 (c) line 2 - 3.True or false: the screen layout is about UX (the experience). (a) False (b) True
-
4.🖼️ In this wireframe (top to bottom), what is right below the Add button?
[ list of items ]
[ big picture ]
[ Add button ]
[ title text ]
[ Save button ]
[ search box ] (a) list of items (b) big picture (c) title text (d) Save button -
5.🔁 What number does this code show?
let steps = [3, 12, 11, 11, 1];
let total = 0;
for (let i = 0; i < steps.length; i++) {
total = total + steps[i];
}
show(total); - 6.🧰 What is a function? (a) a list of colours (b) a screen size (c) a named block of code (d) a type of phone
-
7.🔁 What number does this code show?
let scores = [20, 13, 16];
let best = 0;
for (let i = 0; i < scores.length; i++) {
if (scores[i] > best) {
best = scores[i];
}
}
show(best); -
8.🔁 What is the LAST line this code shows?
let names = ["Arjun", "Zoya", "Meera", "Kabir"];
for (let i = 0; i < names.length; i++) {
show("Hi, " + names[i]);
} (a) Hi, Arjun (b) Hi, Kabir (c) Hi, Meera (d) Hi, Zoya -
9.🔀 What number does this shop app show?
let total = 310;
if (total > 500) {
total = total - 50;
}
show(total); - 10.Which of these requests is fair? (a) voice notes → microphone (b) calculator → location (c) quiz app → microphone (d) torch → contacts
-
11.🧭 The app has tabs Feed, Chat, Settings. You start on Feed, then:
1. tap the Chat tab
2. open “Friend list”
3. open “Edit photo”
4. open “Edit photo”
Which screen are you on now? (a) Chat (b) Friend list (c) Edit photo (d) Feed - 12.Which of these fits saving on the phone? (a) a draft you are typing (b) a class leaderboard (c) chat messages to friends (d) a shared to-do list
-
13.🔀 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 - 14.🧪 What is the actual result of a test? (a) the app’s name (b) the test’s number (c) what we hope for (d) what the app really does
-
15.🧰 What number does this code show?
function points(stars) {
return stars * 10 + 5;
}
show(points(3) + points(3)); - 16.🗒️ You are planning version 1 of a pocket-money tracker. Which feature is a MUST-HAVE? (a) savings stickers (b) show the balance (c) export to a file (d) pie-chart colours
- 17.🎨 Who should you test the UX with? (a) the app icon (b) nobody (c) only yourself (d) real users
-
18.🧪 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(4) → expected Try again
Test 2: result(5) → expected Pass
Test 3: result(7) → expected Pass - 19.🗒️ What is a must-have feature? (a) a sound effect (b) a nice extra (c) one the app cannot skip (d) a colour theme
- 20.🗒️ You are planning version 1 of a bus tracker. Which feature is a MUST-HAVE? (a) change the bus icon (b) rate the driver (c) a dark mode (d) pick your bus stop
- 21.🔢 In a food-order flow, which comes first: “track the order” or “check the cart”? (a) check the cart (b) track the order
- 22.True or false: a medicine reminder solves a real problem. (a) False (b) True
-
23.👆 The user taps the button 2 times. What number does the label show now?
let coins = 10;
button.onTap = function () {
coins = coins + 1;
label.text = coins;
}; - 24.👆 What kind of event is this: the search box changes? (a) a timer event (b) a tap event (c) a text event (d) a load event
- 25.🔍 Which is the odd one out? (a) write down the bugs (b) try every button (c) let friends try it (d) talk to possible users
-
26.🗒️ Version 1 of a quiz app must be ready in 9 days. How many days are left for extras after the must-haves?
show a question: 4 days
check the answer: 1 days
show the score: 3 days -
27.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
line 1: let points = 31; // start at 31
line 2: points = points + 2; // double it
line 3: points = points + 2; // add 2
line 4: points = points * 2; // double it
line 5: show(points); // show it - 28.🐞 A comment in code (after //) is for ___. (a) the phone screen (b) people reading the code (c) the battery (d) the app store
- 29.🔘 Is this good or poor button design: a big, easy tap area? (a) good design (b) poor design
- 30.True or false: an app comes from an app store. (a) True (b) False
- 31.Which of these app ideas solves no real problem? (a) a page of random dots (b) a lost-and-found board (c) a bill splitter (d) a library due-date alert
- 32.🗂️ What kind of app is a torch? (a) a learning app (b) a health app (c) a tool app (d) a game
- 33.Which of these fits saving on the phone? (a) photos on two devices (b) chat messages to friends (c) notes to read offline (d) a class leaderboard
- 34.♿ Why add captions to videos? (a) to add colour (b) to hide the sound (c) so anyone can follow (d) to slow them down
- 35.🔢 In a sign-up flow, which comes first: “make a password” or “open the app”? (a) make a password (b) open the app
- 36.🗒️ You are planning version 1 of a bus tracker. Which feature is a MUST-HAVE? (a) rate the driver (b) change the bus icon (c) a dark mode (d) show arrival time
- 37.Which of these is data? (a) the home page of an app (b) the log-in page (c) the settings page (d) your saved notes
-
38.🔁 What number does this code show?
let marks = [11, 14, 3, 1, 3];
let total = 0;
for (let i = 0; i < marks.length; i++) {
total = total + marks[i];
}
show(total); - 39.True or false: a wireframe shows the real fonts. (a) False (b) True
- 40.💾 Data saved only on the phone is lost when ___. (a) the phone is lost (b) the app is closed (c) you send a message (d) the screen turns off
Answer key
- 16
- line 2
- False
- title text
- 38
- a named block of code
- 20
- Hi, Kabir
- 310
- voice notes → microphone
- Edit photo
- a draft you are typing
- Ask a parent
- what the app really does
- 70
- show the balance
- real users
- 2
- one the app cannot skip
- pick your bus stop
- check the cart
- True
- 12
- a text event
- talk to possible users
- 1
- 128
- people reading the code
- good design
- True
- a page of random dots
- a tool app
- notes to read offline
- so anyone can follow
- open the app
- show arrival time
- your saved notes
- 32
- False
- the phone is lost
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students