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 code show?
function greet(name) {
return "Hello, " + name + "!";
}
show(greet("Riya")); (a) Riya (b) Hello, Riya! (c) Hello, name! (d) greet -
2.⚙️ What number does this app show?
let bill = 88; // typed by the user
let friends = 2; // typed by the user
let share = bill / friends;
show(share); - 3.✏️ Why draw a wireframe before coding? (a) it saves data (b) it adds colours (c) it runs the app (d) changes are quick
- 4.🔍 Which is the odd one out? (a) the screen layout (b) how easy sign-up is (c) the font size (d) the theme colours
- 5.🧰 How do you run (call) a function called greet? (a) run greet (b) greet() (c) #greet (d) greet[]
- 6.💡 Which app idea solves this problem: bottles go missing at school? (a) a homework planner (b) a bill splitter (c) a lost-and-found board (d) a study-room finder
-
7.🧰 A museum app works out the entry fee. What number does this code show?
function fee(age) {
if (age < 5) {
return 0;
}
return 20;
}
show(fee(5) + fee(7)); -
8.📊 Survey: which problem bugs you most? How many more votes did “missing the bus” get than “losing water bottles”?
missing the bus: 11 votes
losing water bottles: 6 votes
forgetting homework: 25 votes - 9.🌗 Is black on yellow easy or hard to read on a button? (a) hard to read (b) easy to read
-
10.👆 Two designs for the same task (each arrow is one tap). Which needs FEWER taps?
Design A: Home → Menu → Size → Cart
Design B: Home → Offers → Item (a) Design B (b) Design A - 11.🌐 Which program do you need to open a website? (a) an app store (b) a camera app (c) a web browser (d) a calculator
- 12.Which of these fits saving in the cloud? (a) notes to read offline (b) the sound on/off setting (c) a shared to-do list (d) your last game level
- 13.True or false: a bus tracker is the best fit for a student who often misses the school bus. (a) False (b) True
- 14.True or false: the home page of an app is a button. (a) True (b) False
- 15.📱 Which one opens in a web browser: an app or a website? (a) a website (b) an app
- 16.Which of these is a user need? (a) a dark mode switch (b) a share button (c) “What should I cook?” (d) a search bar
-
17.🧭 The app has tabs Home, Search, Profile. You start on Home, then:
1. open “Score card”
2. tap the Home tab
3. open “Score card”
Which screen are you on now? (a) Home (b) Score card (c) Profile (d) Search - 18.🧩 In an app, what is the settings page? (a) data (b) a button (c) an input (d) a screen
-
19.🐞 Each comment says what its line SHOULD do. Which line has the bug?
line 1: let points = 43; // start at 43
line 2: points = points + 2; // add 2
line 3: points = points - 6; // add 6
line 4: points = points + 3; // add 3
line 5: show(points); // show it (a) line 4 (b) line 3 (c) line 1 (d) line 2 -
20.💾 What number does this code show?
let songs = ["Rain", "Kites", "Monsoon", "Stars"];
songs.push("Ocean");
show(songs.length); -
21.🐞 Each comment says what its line SHOULD do. Which line has the bug?
line 1: let points = 34; // start at 34
line 2: points = points + 3; // add 2
line 3: points = points * 2; // double it
line 4: show(points); // show it (a) line 3 (b) line 1 (c) line 2 -
22.👆 Two designs for the same task (each arrow is one tap). How many taps does Design A need?
Design A: Home → Pens → Search → Item → Cart → Address → Shop
Design B: Home → Address → Results - 23.🧩 Which input is best for typing your name? (a) a switch (b) a picture (c) a slider (d) a text box
- 24.💡 Does an app idea like a medicine reminder solve a real problem? (a) Yes (b) No
-
25.⚙️ What number does this app show?
let bill = 176; // typed by the user
let friends = 4; // typed by the user
let share = bill / friends;
show(share); -
26.💾 pop() takes off the last item. What does this code show?
let notes = ["Maths", "Hindi", "Art", "Science"];
notes.pop();
show(notes[notes.length - 1]); (a) Art (b) Science (c) Hindi (d) Maths - 27.🎨 A beautiful app that confuses everyone has ___. (a) perfect UX (b) good UX but poor UI (c) no UI at all (d) good UI but poor UX
- 28.🔍 Which is the odd one out? (a) a step counter (b) a sleep tracker (c) a torch (d) a water reminder
- 29.🔘 Our rule: buttons are at least 48 px tall. The Next button is 36 px tall. How many px taller must it be?
-
30.🐞 This code has a bug. What number does it ACTUALLY show?
line 1: let score = 46; // start at 46
line 2: score = score + 4; // add 4
line 3: score = score * 3; // double it
line 4: show(score); // show it - 31.💾 Where should the app save photos on two devices: on the phone or in the cloud? (a) in the cloud (b) on the phone
-
32.🧪 One test case fails. Which one?
🚚 Rule: delivery is free (0) when the order is 600 or more; otherwise it costs 40.
function delivery(total) {
if (total > 600) {
return 0;
}
return 40;
}
Test 1: delivery(600) → expected 0
Test 2: delivery(650) → expected 0
Test 3: delivery(400) → expected 40 (a) Test 1 (b) Test 2 (c) Test 3 -
33.🧰 A museum app works out the entry fee. What number does this code show?
function fee(age) {
if (age < 5) {
return 0;
}
return 60;
}
show(fee(10) + fee(4)); -
34.👆 The user taps the button 4 times. What number does the label show now?
let points = 7;
button.onTap = function () {
points = points + 5;
label.text = points;
}; - 35.🧩 Scores, notes and settings that an app keeps are called ___. (a) buttons (b) screens (c) data (d) tabs
-
36.👆 The user taps the button 3 times. What number does the label show now?
let likes = 0;
button.onTap = function () {
if (likes < 3) {
likes = likes + 1;
}
label.text = likes;
}; -
37.🔘 Our rule: buttons are at least 48 px tall. Which button is too small?
Next button: 44 px tall
Back button: 68 px tall
Save button: 52 px tall (a) Save (b) Next (c) Back - 38.🔀 A screen with no way forward or back is called a ___. (a) dead end (b) tab bar (c) shortcut (d) home screen
-
39.👆 The user types Aman in nameBox and taps the button 1 time. What does the label show?
button.onTap = function () {
label.text = "Welcome, " + nameBox.text + "!";
}; (a) Welcome! (b) Welcome, nameBox.text! (c) Aman (d) Welcome, Aman! - 40.🔍 Which is the odd one out? (a) write the store text (b) share the download link (c) talk to possible users (d) put it on an app store
Answer key
- Hello, Riya!
- 44
- changes are quick
- how easy sign-up is
- greet()
- a lost-and-found board
- 40
- 5
- easy to read
- Design B
- a web browser
- a shared to-do list
- True
- False
- a website
- “What should I cook?”
- Score card
- a screen
- line 3
- 5
- line 2
- 6
- a text box
- Yes
- 44
- Art
- good UI but poor UX
- a torch
- 12
- 150
- in the cloud
- Test 1
- 60
- 27
- data
- 3
- Next
- dead end
- Welcome, Aman!
- talk to possible users
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students