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 kind of event is this: a 5-minute alarm ends? (a) a timer event (b) a tap event (c) a load event (d) a text event
- 2.True or false: a sleep tracker is a health app. (a) True (b) False
-
3.🔁 What number does this code show?
let steps = [19, 1, 18];
let total = 0;
for (let i = 0; i < steps.length; i++) {
total = total + steps[i];
}
show(total); -
4.⚙️ What number does this app show?
let price = 220; // typed by the user
let off = 10; // typed by the user
let pay = price - off;
show(pay); - 5.Which of these app ideas solves no real problem? (a) a free study-room finder (b) an app that just says hi (c) a bill splitter (d) a lost-and-found board
- 6.✏️ Why draw a wireframe before coding? (a) it adds colours (b) it runs the app (c) changes are quick (d) it saves data
- 7.🔘 Is this good or poor button design: grey text on grey? (a) good design (b) poor design
- 8.Which of these is true of a website? (a) comes from an app store (b) is installed on a phone (c) updates from the store (d) opens from a link
- 9.🗒️ You are planning version 1 of a homework planner. Which feature can WAIT for a later version? (a) pick a theme colour (b) add a homework task (c) set a due date (d) see tasks by day
- 10.🔢 In a sign-up flow, what comes right after “type name and email”? (a) open the app (b) tap “Sign up” (c) make a password (d) see the home screen
- 11.Which of these is true of an app? (a) has a web address (b) comes from an app store (c) opens in a web browser (d) opens from a link
- 12.True or false: notes to read offline fits saving on the phone. (a) True (b) False
-
13.🧭 The app has tabs Lessons, Quiz, Me. You start on Lessons, then:
1. open “Friend list”
2. open “Friend list”
3. tap the Quiz tab
4. open “Score card”
Which screen are you on now? (a) Quiz (b) Friend list (c) Lessons (d) Score card -
14.🧰 What number does this code show?
function points(stars) {
return stars * 10 + 5;
}
show(points(4) + points(0)); -
15.🔀 What does this sign-up rule show?
let age = 10;
if (age >= 13) {
show("Welcome!");
} else {
show("Ask a parent");
} (a) Ask a parent (b) Welcome! -
16.🐞 Each comment says what its line SHOULD do. Which line has the bug?
line 1: let points = 44; // start at 42
line 2: points = points + 3; // add 3
line 3: points = points - 5; // take away 5
line 4: points = points - 5; // take away 5
line 5: show(points); // show it (a) line 4 (b) line 1 (c) line 2 (d) line 3 -
17.🧩 Which of these is a button on this screen?
[title] Order Snacks
[switch] Remind me
[text box] Subject
[button] Cancel
[text box] Name
[slider] Brightness (a) Name (b) Subject (c) Remind me (d) Cancel -
18.👆 Two designs for the same task (each arrow is one tap). How many taps does Design B need?
Design A: Home → Offers → Menu → Confirm → Results → Pens
Design B: Home → Cart → Results → Search → Size - 19.Which of these is processing? (a) sorting the scores (b) tapping a button (c) typing your age (d) a beep sound
- 20.🔀 A screen with no way forward or back is called a ___. (a) home screen (b) shortcut (c) tab bar (d) dead end
-
21.🔁 What number does this code show?
let scores = [6, 20, 20];
let total = 0;
for (let i = 0; i < scores.length; i++) {
total = total + scores[i];
}
show(total); - 22.♿ Why add captions to videos? (a) to hide the sound (b) to add colour (c) so anyone can follow (d) to slow them down
-
23.🔀 What does this battery rule show?
let battery = 36;
if (battery < 20) {
show("Low battery");
} else {
show("Battery OK");
} (a) Low battery (b) Battery OK -
24.🔁 What is the LAST line this code shows?
let names = ["Meera", "Arjun", "Riya", "Aman"];
for (let i = 0; i < names.length; i++) {
show("Hi, " + names[i]);
} (a) Hi, Riya (b) Hi, Meera (c) Hi, Arjun (d) Hi, Aman -
25.👆 Two designs for the same task (each arrow is one tap). How many taps does the shorter design save?
Design A: Home → Shop → Results → Size
Design B: Home → Size → Results → Menu → Shop - 26.🔐 Is this permission request fair or too much: torch → contacts? (a) fair (b) too much
- 27.True or false: the sound on/off setting fits saving on the phone. (a) True (b) False
- 28.True or false: a homework photo scanner needs the camera. (a) False (b) True
-
29.🧪 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(16) → expected 100
Test 2: price(7) → expected 50
Test 3: price(10) → expected 100 (a) Test 3 (b) Test 1 (c) Test 2 -
30.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
line 1: let stars = 43; // start at 43
line 2: stars = stars + 2; // add 2
line 3: stars = stars * 3; // double it
line 4: stars = stars + 5; // add 5
line 5: show(stars); // show it - 31.🧩 In an app, what is tap to go Next? (a) an input (b) a button (c) data (d) a screen
-
32.👆 The user taps the button 7 times. What number does the label show now?
let likes = 0;
button.onTap = function () {
if (likes < 2) {
likes = likes + 1;
}
label.text = likes;
}; -
33.🔁 What number does this code show?
let runs = [15, 3, 4, 5];
let total = 0;
for (let i = 0; i < runs.length; i++) {
total = total + runs[i];
}
show(total); - 34.True or false: a homework planner is the best fit for a cook with no idea for dinner. (a) False (b) True
- 35.Which of these happens at the test stage? (a) try every button (b) pick the features (c) put it on an app store (d) write the store text
- 36.💡 Does an app idea like a page of random dots solve a real problem? (a) Yes (b) No
-
37.♿ Our rule: text is at least 16 px. Which text on this screen is too small?
Title: 26 px
Body text: 20 px
Footer: 12 px (a) Body text (b) Title (c) Footer -
38.♿ Our rule: text is at least 16 px. How many texts on this screen are too small?
Body text: 19 px
Title: 18 px
Menu: 11 px -
39.👆 The user taps the button 7 times. What number does the label show now?
let likes = 0;
button.onTap = function () {
if (likes < 3) {
likes = likes + 1;
}
label.text = likes;
}; -
40.🧩 How many buttons does this app screen have?
[title] Settings
[text box] Name
[button] Send
[switch] Remind me
[text box] Due date
[button] Help
[button] Done
Answer key
- a timer event
- True
- 38
- 210
- an app that just says hi
- changes are quick
- poor design
- opens from a link
- pick a theme colour
- make a password
- comes from an app store
- True
- Score card
- 50
- Ask a parent
- line 1
- Cancel
- 4
- sorting the scores
- dead end
- 46
- so anyone can follow
- Battery OK
- Hi, Aman
- 1
- too much
- True
- True
- Test 3
- 95
- a button
- 2
- 27
- False
- try every button
- No
- Footer
- 1
- 3
- 3
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students