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 does this battery rule show?
let battery = 89;
if (battery < 20) {
show("Low battery");
} else {
show("Battery OK");
} (a) Low battery (b) Battery OK -
2.🧰 What does this code show?
function greet(name) {
return "Hi, " + name + "!";
}
show(greet("Riya")); (a) greet (b) Riya (c) Hi, name! (d) Hi, Riya! - 3.🔍 Which is the odd one out? (a) a word battle (b) a cricket run chase (c) a racing challenge (d) a water reminder
- 4.🔍 Which is the odd one out? (a) a flashcard trainer (b) a calculator (c) a times-table quiz (d) a spelling coach
-
5.🔁 What number does this code show?
let runs = [12, 12, 15, 6, 7];
let best = 0;
for (let i = 0; i < runs.length; i++) {
if (runs[i] > best) {
best = runs[i];
}
}
show(best); - 6.🧭 Which part of navigation sits at the bottom? (a) a tab bar (b) the back button (c) a menu button
- 7.♿ Does this help everyone, or make the app harder to use: icons with no labels? (a) helps everyone (b) makes it harder
- 8.🧩 Scores, notes and settings that an app keeps are called ___. (a) tabs (b) data (c) buttons (d) screens
- 9.📅 An app team plans for 3 days, builds for 8 days, tests for 3 days and releases on 1 more day. How many days does the whole project take?
-
10.📊 Survey: which problem bugs you most? How many more votes did “forgetting homework” get than “wasting pocket money”?
losing water bottles: 6 votes
forgetting homework: 15 votes
wasting pocket money: 12 votes -
11.🔀 What does this sign-up rule show?
let age = 11;
if (age >= 13) {
show("Welcome!");
} else {
show("Ask a parent");
} (a) Ask a parent (b) Welcome! -
12.⚙️ Which line does the processing (works out the answer)?
line 1: let price = 85; // typed by the user
line 2: let qty = 2; // typed by the user
line 3: let total = price * qty;
line 4: show(total); (a) line 2 (b) line 4 (c) line 3 (d) line 1 - 13.🛠️ At which stage do you share the download link? (a) the build stage (b) the test stage (c) the release stage (d) the plan stage
- 14.True or false: a birthday list of friends needs your location. (a) True (b) False
- 15.🔢 When you make an app, which comes LAST? (a) get an idea (b) build the app (c) test the app (d) release it
-
16.🧰 What does this code show?
function greet(name) {
return "Hi, " + name + "!";
}
show(greet("Arjun")); (a) Arjun (b) Hi, Arjun! (c) Hi, name! (d) greet - 17.📱 Which one opens from a link: an app or a website? (a) a website (b) an app
-
18.🧪 What is the ACTUAL result of Test 2?
🎟️ Rule: a ticket costs 50 for children under 9, and 100 for everyone else.
function price(age) {
if (age <= 9) {
return 50;
}
return 100;
}
Test 1: price(15) → expected 100
Test 2: price(16) → expected 100
Test 3: price(8) → expected 50 - 19.🔍 Which is the odd one out? (a) typing your age (b) checking a password (c) adding up a bill (d) working out a tip
-
20.🔁 What number does this code show?
let marks = [13, 13, 2, 9];
let best = 0;
for (let i = 0; i < marks.length; i++) {
if (marks[i] > best) {
best = marks[i];
}
}
show(best); -
21.💾 pop() takes off the last item. What does this code show?
let friends = ["Meera", "Kabir", "Riya", "Zoya"];
friends.pop();
show(friends[friends.length - 1]); (a) Kabir (b) Zoya (c) Meera (d) Riya - 22.🧭 Where is a tab bar usually placed in a phone app? (a) in the middle (b) nowhere (c) inside a button (d) at the bottom
- 23.🧭 Which part of navigation hides extra links? (a) a menu button (b) a tab bar (c) the back button
- 24.👆 What kind of event is this: a 5-minute alarm ends? (a) a load event (b) a text event (c) a tap event (d) a timer event
- 25.🧰 What is a function? (a) a named block of code (b) a list of colours (c) a type of phone (d) a screen size
-
26.🧩 Which of these is a button on this screen?
[title] Add Homework
[text box] Name
[button] Next
[slider] Volume
[button] Start (a) Name (b) Volume (c) Next -
27.📊 Survey: which problem bugs you most? How many students voted in all?
no quiet study place: 11 votes
forgetting homework: 5 votes
losing water bottles: 13 votes - 28.Which of these is true of a menu button? (a) switches main sections (b) sits at the bottom (c) shows 3 to 5 icons (d) hides extra links
-
29.🔘 Our rule: buttons are at least 48 px tall. Which button is too small?
Done button: 48 px tall
Start button: 52 px tall
Back button: 40 px tall (a) Start (b) Done (c) Back - 30.🚀 Which version is newer: 2.3.6 or 2.3.17? (a) 2.3.17 (b) 2.3.6
-
31.🧭 The app has tabs Home, Search, Profile. You start on Home, then:
1. open “Map”
2. tap Back
3. open “Match report”
How many times must you tap Back to reach the main screen of this tab? - 32.Which of these requests asks for too much? (a) voice notes → microphone (b) calculator → location (c) map app → location (d) calling app → contacts
-
33.🔘 Our rule: buttons are at least 48 px tall. How many of these buttons follow the rule?
Start button: 36 px tall
Save button: 56 px tall
Help button: 52 px tall - 34.Which of these is true of an app? (a) needs no installing (b) opens in a web browser (c) updates from the store (d) opens from a link
-
35.🐞 Each comment says what its line SHOULD do. Which line has the bug?
line 1: let stars = 39; // start at 39
line 2: stars = stars - 1; // take away 1
line 3: stars = stars + 2; // double it
line 4: show(stars); // show it (a) line 3 (b) line 2 (c) line 1 - 36.👥 A clinic app has 120 patients, 90 doctors and 165 nurses as users. How many more nurses than patients are there?
- 37.Which of these app ideas solves no real problem? (a) a library due-date alert (b) a blank grey screen (c) a bill splitter (d) a lost-and-found board
-
38.💾 pop() takes off the last item. What does this code show?
let songs = ["Rain", "Kites", "Sunrise"];
songs.pop();
show(songs[songs.length - 1]); (a) Kites (b) Sunrise (c) Rain - 39.True or false: a final design looks like the real app. (a) False (b) True
- 40.🌗 Is yellow on white easy or hard to read on a button? (a) easy to read (b) hard to read
Answer key
- Battery OK
- Hi, Riya!
- a water reminder
- a calculator
- 15
- a tab bar
- makes it harder
- data
- 15
- 3
- Ask a parent
- line 3
- the release stage
- False
- release it
- Hi, Arjun!
- a website
- 100
- typing your age
- 13
- Riya
- at the bottom
- a menu button
- a timer event
- a named block of code
- Next
- 29
- hides extra links
- Back
- 2.3.17
- 1
- calculator → location
- 2
- updates from the store
- line 3
- 45
- a blank grey screen
- Kites
- True
- hard to read
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students