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 code show?
let runs = [11, 12, 2, 1];
let best = 0;
for (let i = 0; i < runs.length; i++) {
if (runs[i] > best) {
best = runs[i];
}
}
show(best); - 2.🔢 In a quiz-app flow, what comes right after “tap “Start quiz””? (a) see if it is right (b) read a question (c) pick an answer (d) see the final score
- 3.👆 What kind of event is this: the app starts up? (a) a load event (b) a text event (c) a timer event (d) a tap event
-
4.🧪 One test case fails. Which one?
🚚 Rule: delivery is free (0) when the order is 500 or more; otherwise it costs 40.
function delivery(total) {
if (total > 500) {
return 0;
}
return 40;
}
Test 1: delivery(800) → expected 0
Test 2: delivery(500) → expected 0
Test 3: delivery(300) → expected 40 (a) Test 1 (b) Test 3 (c) Test 2 -
5.💾 What number does this code show?
let notes = ["Science", "Hindi", "Music"];
notes.push("Art");
notes.push("Maths");
show(notes.length); - 6.🎯 Who are the users of an app? (a) only the testers (b) the people who use it (c) the app icons (d) only the coders
-
7.♿ Our rule: text is at least 16 px. How many texts on this screen are too small?
Title: 11 px
Footer: 24 px
Hint: 16 px
Menu: 24 px - 8.🗒️ You are planning version 1 of a bus tracker. Which feature can WAIT for a later version? (a) pick your bus stop (b) rate the driver (c) see where the bus is (d) show arrival time
- 9.🔘 Is this good or poor button design: grey text on grey? (a) poor design (b) good design
- 10.🔀 What does >= mean? (a) not equal (b) less than (c) smaller or equal (d) greater than or equal
- 11.🔢 In a photo-post flow, what comes right after “add a filter”? (a) write a caption (b) open the camera screen (c) post the photo (d) take the photo
- 12.🔍 Which is the odd one out? (a) a spelling coach (b) a unit converter (c) a times-table quiz (d) a flashcard trainer
- 13.🔢 In a photo-post flow, what comes right after “take the photo”? (a) post the photo (b) open the camera screen (c) write a caption (d) add a filter
- 14.🧩 Scores, notes and settings that an app keeps are called ___. (a) buttons (b) tabs (c) screens (d) data
- 15.🔢 In a sign-up flow, which comes FIRST? (a) open the app (b) tap “Sign up” (c) make a password (d) type name and email
-
16.🖼️ In this wireframe (top to bottom), which part is at the very bottom?
[ title text ]
[ Save button ]
[ search box ]
[ menu icon ] (a) Save button (b) title text (c) menu icon (d) search box - 17.👆 “On tap → do this” links an event to ___. (a) a charger (b) an action (c) a font (d) a web address
- 18.Which of these is a user need? (a) “I keep missing the bus” (b) a dark mode switch (c) a share button (d) a search bar
- 19.🧰 Why write a function? (a) to slow the app (b) to make code longer (c) to hide errors (d) to reuse code
- 20.True or false: you write down the bugs at the test stage. (a) True (b) False
- 21.🔍 Which is the odd one out? (a) the theme colours (b) how users feel after (c) the button colours (d) the screen layout
- 22.🔍 Which is the odd one out? (a) draw the user flow (b) add the buttons (c) sketch the screens (d) pick the features
-
23.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
line 1: let lives = 42; // start at 41
line 2: lives = lives - 3; // take away 3
line 3: lives = lives - 5; // take away 5
line 4: show(lives); // show it - 24.📱 Which one comes from an app store: an app or a website? (a) a website (b) an app
- 25.True or false: a bus tracker is the best fit for a runner who forgets to sip water. (a) False (b) True
-
26.🔁 What number does this code show?
let marks = [12, 52, 99];
let count = 0;
for (let i = 0; i < marks.length; i++) {
if (marks[i] >= 50) {
count = count + 1;
}
}
show(count); - 27.True or false: a speak-to-type notes app needs the microphone. (a) True (b) False
-
28.📊 Survey: which problem bugs you most? Which problem should your app solve first?
wasting pocket money: 3 votes
forgetting homework: 25 votes
missing the bus: 4 votes (a) wasting pocket money (b) missing the bus (c) forgetting homework -
29.🐞 Each comment says what its line SHOULD do. Which line has the bug?
line 1: let lives = 33; // start at 33
line 2: lives = lives - 3; // take away 3
line 3: lives = lives - 1; // take away 1
line 4: lives = lives + 7; // add 4
line 5: show(lives); // show it (a) line 3 (b) line 2 (c) line 4 (d) line 1 - 30.🔁 In for (let i = 0; i < 3; i++), which values does i take? (a) 1, 2, 3 (b) 3 (c) 0, 1, 2 (d) 0, 1, 2, 3
- 31.🔢 After an app is released, which comes LAST? (a) release an update (b) test it again (c) read user reviews (d) fix and improve
- 32.True or false: a homework photo scanner needs the microphone. (a) False (b) True
-
33.🧰 What number does this code show?
function triple(n) {
return n * 3;
}
show(triple(3)); - 34.Which of these is processing? (a) speaking a command (b) a buzz (vibration) (c) adding up a bill (d) a result on screen
- 35.💡 After a survey, which need should version 1 solve? (a) the most common need (b) a random need (c) the rarest need (d) the newest trend
-
36.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
line 1: let stars = 40; // start at 39
line 2: stars = stars - 3; // take away 3
line 3: stars = stars + 2; // add 2
line 4: show(stars); // show it - 37.True or false: chat messages to friends fits saving on the phone. (a) True (b) False
-
38.🗒️ Version 1 of a homework planner must be ready in 11 days. How many days are left for extras after the must-haves?
add a homework task: 3 days
set a due date: 1 days
see tasks by day: 2 days - 39.🔀 With if / else if / else, how many parts run? (a) none (b) only one (c) two (d) all of them
-
40.♿ Our rule: text is at least 16 px. Which text on this screen is too small?
Menu: 23 px
Caption: 19 px
Footer: 10 px
Body text: 23 px (a) Body text (b) Menu (c) Caption (d) Footer
Answer key
- 12
- read a question
- a load event
- Test 2
- 5
- the people who use it
- 1
- rate the driver
- poor design
- greater than or equal
- write a caption
- a unit converter
- add a filter
- data
- open the app
- menu icon
- an action
- “I keep missing the bus”
- to reuse code
- True
- how users feel after
- add the buttons
- 33
- an app
- False
- 2
- True
- forgetting homework
- line 4
- 0, 1, 2
- release an update
- False
- 9
- adding up a bill
- the most common need
- 38
- False
- 5
- only one
- Footer
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students