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.🔀 Which badge does this quiz app show?
let marks = 62;
if (marks >= 80) {
show("Gold");
} else if (marks >= 50) {
show("Silver");
} else {
show("Bronze");
} (a) Silver (b) Bronze (c) Gold -
2.🧰 What number does this code show?
function points(stars) {
return stars * 10 + 5;
}
show(points(3) + points(3)); - 3.Which of these is about UI (the look)? (a) how users feel after (b) whether users get lost (c) how fast a task is done (d) the icon shapes
-
4.🧰 What number does this code show?
function triple(n) {
return n * 3;
}
show(triple(24)); -
5.👆 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) ON (b) OFF - 6.🐞 A comment in code (after //) is for ___. (a) the phone screen (b) the app store (c) people reading the code (d) the battery
- 7.📱 Which one opens from a link: an app or a website? (a) a website (b) an app
-
8.🧪 What is the ACTUAL result of Test 2?
🚚 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(550) → expected 0
Test 2: delivery(700) → expected 0
Test 3: delivery(350) → expected 40 - 9.True or false: how easy sign-up is is about UX (the experience). (a) False (b) True
- 10.🧭 Why should every screen show where you are? (a) to hide the menu (b) to look busy (c) to use more battery (d) so users do not get lost
-
11.⚙️ What number does this app show?
let km = 10; // typed by the user
let metres = km * 1000;
show(metres); -
12.🐞 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 48
line 2: points = points - 2; // take away 2
line 3: points = points + 6; // add 6
line 4: show(points); // show it - 13.🧭 About how many tabs suit a tab bar best? (a) 1 (b) 20 (c) 10 to 12 (d) 3 to 5
- 14.True or false: the home page of an app is a screen. (a) True (b) False
- 15.🧭 Which part of navigation goes to the last screen? (a) a menu button (b) the back button (c) a tab bar
-
16.🧭 The app has tabs Home, Search, Profile. You start on Home, then:
1. tap the Profile tab
2. open “Edit photo”
3. tap the Home tab
4. open “Badges”
Which screen are you on now? (a) Badges (b) Search (c) Edit photo (d) Home -
17.🧪 How many of these test cases pass?
🎟️ Rule: a ticket costs 50 for children under 11, and 100 for everyone else.
function price(age) {
if (age < 11) {
return 50;
}
return 100;
}
Test 1: price(8) → expected 50
Test 2: price(12) → expected 100
Test 3: price(14) → expected 100 - 18.🔢 When you make an app, which comes first: “build the app” or “release it”? (a) build the app (b) release it
- 19.🗒️ You are planning version 1 of a quiz app. Which feature is a MUST-HAVE? (a) confetti effects (b) background music (c) an avatar shop (d) show the score
- 20.🔀 A screen with no way forward or back is called a ___. (a) tab bar (b) dead end (c) home screen (d) shortcut
- 21.⚙️ In an app, is checking a password an input, processing or an output? (a) input (b) output (c) processing
- 22.✏️ What is a wireframe? (a) the finished app (b) a simple screen sketch (c) a charging cable (d) a type of password
- 23.True or false: a result on screen is an output. (a) False (b) True
- 24.📱 Which one has a home-screen icon: an app or a website? (a) a website (b) an app
-
25.🔀 What does this sign-up rule show?
let age = 8;
if (age >= 13) {
show("Welcome!");
} else {
show("Ask a parent");
} (a) Welcome! (b) Ask a parent - 26.True or false: speaking a command is an input. (a) True (b) False
- 27.Which of these is true of a menu button? (a) switches main sections (b) hides extra links (c) sits at the bottom (d) shows 3 to 5 icons
- 28.👆 Code that runs when an event happens is called a ___. (a) header (b) hashtag (c) headline (d) handler
-
29.👆 The user taps the button 3 times. What number does the label show now?
let lives = 8;
button.onTap = function () {
lives = lives + 3;
label.text = lives;
}; - 30.👥 A clinic app has 265 patients, 115 doctors and 290 nurses as users. Which user group is the biggest? (a) doctors (b) nurses (c) patients
-
31.🔁 What number does this code show?
let scores = [19, 6, 14];
let best = 0;
for (let i = 0; i < scores.length; i++) {
if (scores[i] > best) {
best = scores[i];
}
}
show(best); - 32.💡 Which app idea solves this problem: projects pile up at once? (a) a homework planner (b) a bill splitter (c) a medicine reminder (d) a study-room finder
-
33.🧰 What does this code show?
function greet(name) {
return "Well done, " + name + "!";
}
show(greet("Arjun")); (a) Well done, Arjun! (b) Arjun (c) Well done, name! (d) greet - 34.🎯 Is this a user need or a feature: a dark mode switch? (a) a feature (b) a user need
- 35.✏️ Why draw a wireframe before coding? (a) it saves data (b) it adds colours (c) it runs the app (d) changes are quick
-
36.🧩 Which of these is a button on this screen?
[title] Add Homework
[switch] Show hints
[button] Send
[button] Start
[text box] City (a) City (b) Show hints (c) Send - 37.🗒️ A to-do app with no “add a task” feature is ___. (a) well planned (b) missing a must-have (c) ready to release (d) a nice extra
-
38.🐞 This code has a bug. What number does it ACTUALLY show?
line 1: let stars = 44; // start at 44
line 2: stars = stars + 2; // add 2
line 3: stars = stars - 1; // take away 1
line 4: stars = stars + 2; // double it
line 5: show(stars); // show it - 39.🧰 How do you run (call) a function called greet? (a) greet[] (b) run greet (c) #greet (d) greet()
-
40.🧩 How many inputs (text boxes, switches and sliders) does this screen have?
[title] Settings
[slider] Brightness
[text box] Name
[button] Next
Answer key
- Silver
- 70
- the icon shapes
- 72
- ON
- people reading the code
- a website
- 0
- True
- so users do not get lost
- 10000
- 52
- 3 to 5
- True
- the back button
- Badges
- 3
- build the app
- show the score
- dead end
- processing
- a simple screen sketch
- True
- an app
- Ask a parent
- True
- hides extra links
- handler
- 17
- nurses
- 19
- a homework planner
- Well done, Arjun!
- a feature
- changes are quick
- Send
- missing a must-have
- 47
- greet()
- 2
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students