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 number does this shop app show?
let total = 630;
if (total > 500) {
total = total - 50;
}
show(total); -
2.📊 Survey: which problem bugs you most? Which problem should your app solve first?
wasting pocket money: 16 votes
forgetting birthdays: 17 votes
no quiet study place: 10 votes (a) wasting pocket money (b) forgetting birthdays (c) no quiet study place - 3.Which of these requests is fair? (a) torch → contacts (b) timer → your photos (c) calculator → location (d) calling app → contacts
- 4.💡 How can you check that people really have the problem? (a) pick a colour (b) ask possible users (c) just guess (d) copy another app
- 5.🚀 Your app is at version 3.1.3. The next release adds a new feature. What is its version number? (a) 3.2.3 (b) 3.2.0 (c) 3.1.4 (d) 4.0.0
- 6.True or false: working out a tip is an output. (a) False (b) True
- 7.🗒️ The first small, working version of an app is often called an ___. (a) FAQ (b) URL (c) MVP (d) CPU
- 8.True or false: one second passes is a text event. (a) True (b) False
- 9.🚀 A change from version 1.4.2 to 1.4.3 usually means ___. (a) a big redesign (b) a bug fix (c) a new feature (d) a new app
-
10.🔁 What number does this code show?
let steps = [4, 9, 19];
let total = 0;
for (let i = 0; i < steps.length; i++) {
total = total + steps[i];
}
show(total); -
11.🧰 What number does this code show?
function total(price, qty) {
return price * qty;
}
show(total(30, 6)); - 12.🧩 In an app, what is your saved notes? (a) a button (b) an input (c) a screen (d) data
-
13.🐞 Each comment says what its line SHOULD do. Which line has the bug?
line 1: let lives = 52; // start at 50
line 2: lives = lives - 3; // take away 3
line 3: lives = lives + 4; // add 4
line 4: show(lives); // show it (a) line 1 (b) line 2 (c) line 3 -
14.🔁 What number does this code show?
let scores = [13, 5, 1, 5, 15];
let total = 0;
for (let i = 0; i < scores.length; i++) {
total = total + scores[i];
}
show(total); - 15.💡 Which app idea solves this problem: pupils forget due dates? (a) a medicine reminder (b) a homework planner (c) a study-room finder (d) a bill splitter
-
16.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
line 1: let score = 37; // start at 35
line 2: score = score - 1; // take away 1
line 3: score = score - 4; // take away 4
line 4: show(score); // show it -
17.♿ Our rule: text is at least 16 px. How many texts on this screen are too small?
Title: 15 px
Label: 13 px
Hint: 21 px -
18.🧰 What number does this code show?
function double(n) {
return n * 2;
}
show(double(9)); - 19.🔢 In a sign-up flow, what comes right after “tap “Sign up””? (a) type name and email (b) see the home screen (c) enter the code sent (d) make a password
- 20.Which of these app ideas solves no real problem? (a) a lost-and-found board (b) a blank grey screen (c) a medicine reminder (d) a bill splitter
- 21.Which of these is true of a final design? (a) shows where things go (b) uses the final pictures (c) uses plain grey boxes (d) is a quick sketch
- 22.✏️ Is this true of a wireframe or of a final design: has no real colours? (a) a final design (b) a wireframe
-
23.👆 The user taps the button 4 times. What number does the label show now?
let likes = 0;
button.onTap = function () {
if (likes < 4) {
likes = likes + 1;
}
label.text = likes;
}; -
24.🧭 The app has tabs Home, Search, Profile. You start on Home, then:
1. open “Friend list”
2. tap the Search tab
3. open “Match report”
How many times must you tap Back to reach the main screen of this tab? - 25.🔢 In a sign-up flow, what comes right after “open the app”? (a) enter the code sent (b) make a password (c) tap “Sign up” (d) type name and email
-
26.📊 Survey: which problem bugs you most? How many students voted in all?
forgetting homework: 25 votes
wasting pocket money: 23 votes
forgetting birthdays: 24 votes -
27.💾 What does this code show? (Positions start at 0.)
let songs = ["Rain", "Monsoon", "Stars"];
show(songs[1]); (a) Rain (b) Monsoon (c) Stars - 28.🧑 Who is an app really made for? (a) its users (b) its coder only (c) its charger (d) its icon
-
29.🧰 What number does this code show?
function total(price, qty) {
return price * qty;
}
show(total(35, 5)); - 30.🔁 Why use a loop to show 100 messages? (a) it is slower (b) less code to write (c) it hides them (d) it uses more lines
-
31.🧭 The app has tabs Feed, Chat, Settings. You start on Feed, then:
1. tap the Settings tab
2. open “Map”
3. tap Back
How many times must you tap Back to reach the main screen of this tab? - 32.Which of these fits saving in the cloud? (a) the sound on/off setting (b) your last game level (c) notes to read offline (d) chat messages to friends
- 33.🗒️ You are planning version 1 of a pocket-money tracker. Which feature is a MUST-HAVE? (a) add money received (b) pie-chart colours (c) savings stickers (d) export to a file
-
34.🧪 How many of these test cases pass?
🎟️ 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(10) → expected 100
Test 2: price(13) → expected 100
Test 3: price(7) → expected 50 -
35.🔁 What number does this code show?
let marks = [17, 17, 19, 1, 1];
let best = 0;
for (let i = 0; i < marks.length; i++) {
if (marks[i] > best) {
best = marks[i];
}
}
show(best); - 36.🧰 What does return do in a function? (a) closes the screen (b) deletes the app (c) repeats the code (d) sends back a value
-
37.🐞 This code has a bug. What number does it ACTUALLY show?
line 1: let stars = 31; // start at 30
line 2: stars = stars - 5; // take away 5
line 3: stars = stars * 2; // double it
line 4: show(stars); // show it - 38.♿ Does this help everyone, or make the app harder to use: strong colour contrast? (a) helps everyone (b) makes it harder
- 39.🛠️ At which stage do you write the store text? (a) the test stage (b) the build stage (c) the release stage (d) the plan stage
- 40.Which of these makes the app harder to use? (a) big touch targets (b) fast-flashing lights (c) labels on every icon (d) strong colour contrast
Answer key
- 580
- forgetting birthdays
- calling app → contacts
- ask possible users
- 3.2.0
- False
- MVP
- False
- a bug fix
- 32
- 180
- data
- line 1
- 39
- a homework planner
- 30
- 2
- 18
- type name and email
- a blank grey screen
- uses the final pictures
- a wireframe
- 4
- 1
- tap “Sign up”
- 72
- Monsoon
- its users
- 175
- less code to write
- 0
- chat messages to friends
- add money received
- 2
- 19
- sends back a value
- 52
- helps everyone
- the release stage
- fast-flashing lights
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students