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.👆 The user types Meera in nameBox and taps the button 1 time. What does the label show?
button.onTap = function () {
label.text = "Hello, " + nameBox.text + "!";
}; (a) Meera (b) Hello, nameBox.text! (c) Hello, Meera! (d) Hello! - 2.🗒️ You are planning version 1 of a quiz app. Which feature is a MUST-HAVE? (a) check the answer (b) background music (c) an avatar shop (d) confetti effects
-
3.🔁 What is the LAST line this code shows?
let names = ["Aman", "Arjun", "Meera", "Riya", "Kabir"];
for (let i = 0; i < names.length; i++) {
show("Hi, " + names[i]);
} (a) Hi, Arjun (b) Hi, Kabir (c) Hi, Meera (d) Hi, Aman - 4.🌗 Is dark blue on black easy or hard to read on a button? (a) hard to read (b) easy to read
-
5.🧪 What is the ACTUAL result of Test 2?
🎟️ Rule: a ticket costs 50 for children under 8, and 100 for everyone else.
function price(age) {
if (age <= 8) {
return 50;
}
return 100;
}
Test 1: price(6) → expected 50
Test 2: price(11) → expected 100
Test 3: price(14) → expected 100 -
6.⚙️ What number does this app show?
let km = 14; // typed by the user
let metres = km * 1000;
show(metres); - 7.🔀 With if / else if / else, how many parts run? (a) only one (b) two (c) none (d) all of them
- 8.🔢 In a sign-up flow, which comes FIRST? (a) open the app (b) see the home screen (c) type name and email (d) tap “Sign up”
-
9.🔀 Which badge does this quiz app show?
let marks = 45;
if (marks >= 80) {
show("Gold");
} else if (marks >= 50) {
show("Silver");
} else {
show("Bronze");
} (a) Bronze (b) Gold (c) Silver -
10.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
line 1: let points = 50; // start at 50
line 2: points = points - 5; // take away 5
line 3: points = points + 2; // double it
line 4: show(points); // show it -
11.🔁 What number does this code show?
let marks = [8, 16, 2, 13, 20];
let best = 0;
for (let i = 0; i < marks.length; i++) {
if (marks[i] > best) {
best = marks[i];
}
}
show(best); -
12.💾 What number does this code show?
let score = 5;
score = score - 4;
score = score + 4;
show(score); - 13.🗂️ What kind of app is a flashcard trainer? (a) a tool app (b) a game (c) a health app (d) a learning app
- 14.🔀 In this course’s code, which sign tests “is equal to”? (a) => (b) !== (c) = (d) ===
- 15.🎯 Which app would help this user most: a parent waiting at the bus stop? (a) a recipe finder (b) a homework planner (c) a bus tracker (d) a water reminder
- 16.🔍 Which is the odd one out? (a) tiny tap areas (b) strong colour contrast (c) fast-flashing lights (d) colour as the only clue
- 17.🔢 After an app is released, which comes FIRST? (a) list what to fix (b) fix and improve (c) read user reviews (d) test it again
- 18.🔍 Which is the odd one out? (a) a buzz (vibration) (b) a result on screen (c) a beep sound (d) speaking a command
- 19.Which of these app ideas solves a real problem? (a) a medicine reminder (b) a page of random dots (c) a blank grey screen (d) a button with no action
-
20.⚙️ Which line does the processing (works out the answer)?
line 1: let km = 8; // typed by the user
line 2: let metres = km * 1000;
line 3: show(metres); (a) line 1 (b) line 2 (c) line 3 - 21.✏️ Is this true of a wireframe or of a final design: shows where things go? (a) a final design (b) a wireframe
-
22.🧪 How many of these test cases pass?
🎟️ 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(23) → expected 100
Test 2: price(12) → expected 50
Test 3: price(20) → expected 100 - 23.True or false: chat messages to friends fits saving in the cloud. (a) True (b) False
- 24.🔍 Which is the odd one out? (a) speaking a command (b) typing your age (c) a pop-up message (d) tapping a button
- 25.Which of these happens at the idea stage? (a) write the code (b) sketch the screens (c) try every button (d) spot a problem to solve
- 26.🗒️ You are planning version 1 of a water reminder. Which feature is a MUST-HAVE? (a) set a reminder time (b) custom alert sounds (c) share your streak (d) water animations
- 27.🔀 Why plan the user flow before building? (a) to skip testing (b) to hide the buttons (c) so each step is clear (d) to add more taps
- 28.Which of these app ideas solves no real problem? (a) a blank grey screen (b) a bill splitter (c) a free study-room finder (d) a medicine reminder
- 29.🎨 Fewer taps to finish a task usually means ___. (a) better UX (b) a bigger app (c) more colours (d) worse UX
- 30.💡 Does an app idea like an app that just says hi solve a real problem? (a) Yes (b) No
-
31.👆 The user taps the button 5 times. What number does the label show now?
let coins = 0;
button.onTap = function () {
coins = coins + 4;
label.text = coins;
}; -
32.🧰 What number does this code show?
function total(price, qty) {
return price * qty;
}
show(total(25, 4)); - 33.🔍 Which is the odd one out? (a) try every button (b) spot a problem to solve (c) talk to possible users (d) list what users need
-
34.👆 The user types Kabir in nameBox and taps the button 1 time. What does the label show?
button.onTap = function () {
label.text = "Hi, " + nameBox.text + "!";
}; (a) Hi, Kabir! (b) Hi! (c) Kabir (d) Hi, nameBox.text! - 35.🧩 In an app, what is the settings page? (a) data (b) an input (c) a screen (d) a button
- 36.🐞 A comment in code (after //) is for ___. (a) the app store (b) people reading the code (c) the phone screen (d) the battery
-
37.🧩 How many inputs (text boxes, switches and sliders) does this screen have?
[title] Sign Up
[text box] Subject
[button] Cancel
[button] Back
[button] Next
[switch] Show hints - 38.🔢 When you make an app, which comes first: “test the app” or “get an idea”? (a) test the app (b) get an idea
- 39.True or false: one second passes is a timer event. (a) True (b) False
- 40.🧩 In an app, what is your saved notes? (a) data (b) a button (c) an input (d) a screen
Answer key
- Hello, Meera!
- check the answer
- Hi, Kabir
- hard to read
- 100
- 14000
- only one
- open the app
- Bronze
- 90
- 20
- 5
- a learning app
- ===
- a bus tracker
- strong colour contrast
- read user reviews
- speaking a command
- a medicine reminder
- line 2
- a wireframe
- 3
- True
- a pop-up message
- spot a problem to solve
- set a reminder time
- so each step is clear
- a blank grey screen
- better UX
- No
- 20
- 100
- try every button
- Hi, Kabir!
- a screen
- people reading the code
- 2
- get an idea
- True
- data
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students