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 line does the processing (works out the answer)?
line 1: let bill = 50; // typed by the user
line 2: let friends = 2; // typed by the user
line 3: let share = bill / friends;
line 4: show(share); (a) line 3 (b) line 1 (c) line 4 (d) line 2 -
2.🔁 What number does this code show?
let scores = [4, 20, 18, 8];
let total = 0;
for (let i = 0; i < scores.length; i++) {
total = total + scores[i];
}
show(total); - 3.👆 Code that runs when an event happens is called a ___. (a) headline (b) handler (c) hashtag (d) header
-
4.🔀 What does this battery rule show?
let battery = 38;
if (battery < 20) {
show("Low battery");
} else {
show("Battery OK");
} (a) Low battery (b) Battery OK - 5.📱 Which one comes from an app store: an app or a website? (a) an app (b) a website
- 6.🗒️ You are planning version 1 of a quiz app. Which feature can WAIT for a later version? (a) check the answer (b) an avatar shop (c) show the score (d) show a question
- 7.🔢 In a photo-post flow, which comes FIRST? (a) add a filter (b) take the photo (c) write a caption (d) open the camera screen
-
8.💾 What number does this code show?
let points = 3;
points = points - 3;
points = points + 1;
show(points); - 9.🔢 When you make an app, what comes right after “get an idea”? (a) test the app (b) plan the screens (c) release it (d) build the app
- 10.🔀 In a good flow, each screen should lead to ___. (a) the same screen (b) a random page (c) a clear next step (d) a dead end
- 11.✏️ Is this true of a wireframe or of a final design: uses the final pictures? (a) a final design (b) a wireframe
- 12.Which of these is a feature? (a) “I forget my homework” (b) “What should I cook?” (c) “I keep missing the bus” (d) a search bar
- 13.True or false: working out a tip is an input. (a) False (b) True
-
14.🧪 One test case fails. Which one?
🎟️ Rule: a ticket costs 50 for children under 10, and 100 for everyone else.
function price(age) {
if (age <= 10) {
return 50;
}
return 100;
}
Test 1: price(9) → expected 50
Test 2: price(10) → expected 100
Test 3: price(14) → expected 100 (a) Test 1 (b) Test 2 (c) Test 3 - 15.🧪 A test fails when ___. (a) both are the same (b) actual is not expected (c) the font is big (d) the app is new
- 16.🔘 Is this good or poor button design: a clear word like Save? (a) poor design (b) good design
-
17.📊 Survey: which problem bugs you most? How many students voted in all?
wasting pocket money: 6 votes
no quiet study place: 14 votes
missing the bus: 9 votes -
18.🧰 What number does this code show?
function triple(n) {
return n * 3;
}
show(triple(36)); -
19.💾 What number does this code show?
let score = 9;
score = score - 5;
score = score + 4;
show(score); - 20.True or false: you list what users need at the release stage. (a) True (b) False
- 21.Which of these requests asks for too much? (a) camera app → camera (b) calling app → contacts (c) timer → your photos (d) voice notes → microphone
- 22.🛠️ At which stage do you pick the features? (a) the build stage (b) the test stage (c) the plan stage (d) the release stage
-
23.🔁 What is the LAST line this code shows?
let names = ["Riya", "Meera", "Aman", "Kabir", "Arjun"];
for (let i = 0; i < names.length; i++) {
show("Hi, " + names[i]);
} (a) Hi, Meera (b) Hi, Aman (c) Hi, Riya (d) Hi, Arjun - 24.🔢 In a quiz-app flow, which comes first: “see the final score” or “pick an answer”? (a) pick an answer (b) see the final score
-
25.🧭 The app has tabs Feed, Chat, Settings. You start on Feed, then:
1. tap the Feed tab
2. open “Edit photo”
3. open “Help page”
How many times must you tap Back to reach the main screen of this tab? - 26.🔢 When you make an app, which comes first: “get an idea” or “plan the screens”? (a) plan the screens (b) get an idea
- 27.✏️ A box with a cross in a wireframe usually means ___. (a) a closed app (b) delete this (c) an error (d) a picture goes here
-
28.🧩 Which of these is a button on this screen?
[title] Add Homework
[button] Save
[text box] City
[slider] Text size
[switch] Show hints
[text box] Age
[text box] Name (a) City (b) Save (c) Name (d) Age - 29.🐞 Finding and fixing bugs is called ___. (a) downloading (b) decorating (c) debugging (d) designing
- 30.🗂️ What kind of app is an alarm clock? (a) a learning app (b) a game (c) a health app (d) a tool app
-
31.🧰 What number does this code show?
function total(price, qty) {
return price * qty;
}
show(total(50, 2)); - 32.True or false: the sound on/off setting fits saving on the phone. (a) False (b) True
- 33.True or false: a wireframe shows where things go. (a) False (b) True
- 34.Which of these is a screen? (a) today’s step count (b) the game-over page (c) a switch for dark mode (d) a slider for volume
- 35.Which of these app ideas solves a real problem? (a) a button with no action (b) an app that just says hi (c) a bill splitter (d) a page of random dots
- 36.🔐 Is this permission request fair or too much: camera app → camera? (a) too much (b) fair
-
37.🧰 What number does this code show?
function total(price, qty) {
return price * qty;
}
show(total(30, 4)); -
38.🔁 What number does this code show?
let steps = [4, 13, 3];
let total = 0;
for (let i = 0; i < steps.length; i++) {
total = total + steps[i];
}
show(total); - 39.Which of these is true of the back button? (a) opens a list of pages (b) goes to the last screen (c) sits at the bottom (d) shows 3 to 5 icons
- 40.💾 Data saved only on the phone is lost when ___. (a) the app is closed (b) you send a message (c) the phone is lost (d) the screen turns off
Answer key
- line 3
- 50
- handler
- Battery OK
- an app
- an avatar shop
- open the camera screen
- 1
- plan the screens
- a clear next step
- a final design
- a search bar
- False
- Test 2
- actual is not expected
- good design
- 29
- 108
- 8
- False
- timer → your photos
- the plan stage
- Hi, Arjun
- pick an answer
- 2
- get an idea
- a picture goes here
- Save
- debugging
- a tool app
- 100
- True
- True
- the game-over page
- a bill splitter
- fair
- 120
- 20
- goes to the last screen
- the phone is lost
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students