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?
function triple(n) {
return n * 3;
}
show(triple(26)); - 2.📱 Which one comes from an app store: an app or a website? (a) an app (b) a website
- 3.💡 How can you check that people really have the problem? (a) ask possible users (b) pick a colour (c) copy another app (d) just guess
-
4.🐞 Each comment says what its line SHOULD do. Which line has the bug?
line 1: let stars = 47; // start at 44
line 2: stars = stars + 4; // add 4
line 3: stars = stars - 4; // take away 4
line 4: stars = stars + 4; // add 4
line 5: show(stars); // show it (a) line 2 (b) line 4 (c) line 1 (d) line 3 -
5.🧪 How many of these test cases pass?
🎟️ Rule: a ticket costs 50 for children under 14, and 100 for everyone else.
function price(age) {
if (age < 14) {
return 50;
}
return 100;
}
Test 1: price(17) → expected 100
Test 2: price(13) → expected 50
Test 3: price(14) → expected 100 - 6.🗒️ You are planning version 1 of a homework planner. Which feature is a MUST-HAVE? (a) share tasks to friends (b) pick a theme colour (c) set a due date (d) earn stickers
-
7.⚙️ Which line does the processing (works out the answer)?
line 1: let price = 270; // typed by the user
line 2: let off = 50; // typed by the user
line 3: let pay = price - off;
line 4: show(pay); (a) line 1 (b) line 4 (c) line 3 (d) line 2 -
8.🧭 The app has tabs Lessons, Quiz, Me. You start on Lessons, then:
1. tap the Quiz tab
2. open “Match report”
3. tap the Lessons tab
4. tap the Lessons tab
5. open “Match report”
Which screen are you on now? (a) Me (b) Quiz (c) Lessons (d) Match report - 9.True or false: a torch is a game. (a) True (b) False
- 10.⚙️ In an app, is tapping a button an input, processing or an output? (a) output (b) processing (c) input
- 11.True or false: icons with no meaning is good button design. (a) False (b) True
- 12.True or false: you spot a problem to solve at the test stage. (a) True (b) False
- 13.🔢 In a photo-post flow, which comes FIRST? (a) post the photo (b) add a filter (c) open the camera screen (d) write a caption
- 14.🔢 In a quiz-app flow, which comes LAST? (a) pick an answer (b) see the final score (c) read a question (d) see if it is right
- 15.🔁 Why use a loop to show 100 messages? (a) it is slower (b) it uses more lines (c) less code to write (d) it hides them
-
16.👆 Two designs for the same task (each arrow is one tap). Which needs FEWER taps?
Design A: Home → Results → Offers → Address → Menu
Design B: Home → Address → Offers → Search → Cart → Menu → Pay (a) Design B (b) Design A - 17.👥 A school app has 160 students, 155 teachers and 225 parents as users. Which user group is the biggest? (a) parents (b) students (c) teachers
- 18.👥 A clinic app has 105 patients, 260 doctors and 140 nurses as users. How many users does it have in all?
-
19.🧩 Which of these is a button on this screen?
[title] Add Homework
[button] Send
[text box] Age
[text box] Subject
[text box] City
[button] Save (a) Subject (b) Save (c) Age (d) City - 20.Which of these is an input? (a) speaking a command (b) sorting the scores (c) a pop-up message (d) a buzz (vibration)
- 21.🛠️ At which stage do you write down the bugs? (a) the build stage (b) the plan stage (c) the test stage (d) the idea stage
-
22.🔁 What is the LAST line this code shows?
let names = ["Riya", "Arjun", "Zoya", "Kabir"];
for (let i = 0; i < names.length; i++) {
show("Hi, " + names[i]);
} (a) Hi, Kabir (b) Hi, Zoya (c) Hi, Riya (d) Hi, Arjun -
23.🔀 What does this battery rule show?
let battery = 33;
if (battery < 20) {
show("Low battery");
} else {
show("Battery OK");
} (a) Battery OK (b) Low battery - 24.🌗 Is black on pale grey easy or hard to read on a button? (a) easy to read (b) hard to read
- 25.Which of these is a button? (a) your high score (b) the game-over page (c) tap to go Next (d) your friends list
-
26.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
line 1: let score = 36; // start at 34
line 2: score = score + 2; // add 2
line 3: score = score - 2; // take away 2
line 4: show(score); // show it - 27.🗒️ What is a must-have feature? (a) a colour theme (b) a nice extra (c) one the app cannot skip (d) a sound effect
-
28.🧰 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(2) + fee(12)); - 29.True or false: your high score is a button. (a) False (b) True
- 30.🔘 Our rule: buttons are at least 48 px tall. The Send button is 24 px tall. How many px taller must it be?
- 31.👥 A library app has 200 readers, 20 librarians and 70 volunteers as users. How many more readers than librarians are there?
-
32.🧭 The app has tabs Feed, Chat, Settings. You start on Feed, then:
1. tap the Settings tab
2. open “Match report”
3. tap the Feed tab
4. tap the Chat tab
Which screen are you on now? (a) Settings (b) Feed (c) Match report (d) Chat - 33.🎯 A short made-up profile of a typical user is called a ___. (a) password (b) pixel (c) persona (d) protocol
- 34.Which of these is true of an app? (a) is installed on a phone (b) opens in a web browser (c) needs no installing (d) opens from a link
-
35.♿ Our rule: text is at least 16 px. How many texts on this screen are too small?
Caption: 22 px
Menu: 20 px
Body text: 21 px -
36.💾 pop() takes off the last item. What does this code show?
let friends = ["Arjun", "Riya", "Aman", "Meera", "Kabir"];
friends.pop();
show(friends[friends.length - 1]); (a) Aman (b) Arjun (c) Riya (d) Meera - 37.Which of these is true of a tab bar? (a) hides extra links (b) undoes one move (c) goes to the last screen (d) shows 3 to 5 icons
- 38.🐞 After fixing a bug you should ___. (a) release at once (b) test it again (c) never test (d) delete the test
- 39.🔢 In a food-order flow, which comes LAST? (a) track the order (b) open the menu (c) check the cart (d) pay for the order
- 40.Which colour pair is hard to read? (a) white on dark green (b) yellow on white (c) dark blue on white (d) black on yellow
Answer key
- 78
- an app
- ask possible users
- line 1
- 3
- set a due date
- line 3
- Match report
- False
- input
- False
- False
- open the camera screen
- see the final score
- less code to write
- Design A
- parents
- 505
- Save
- speaking a command
- the test stage
- Hi, Kabir
- Battery OK
- easy to read
- tap to go Next
- 34
- one the app cannot skip
- 20
- False
- 24
- 180
- Chat
- persona
- is installed on a phone
- 0
- Meera
- shows 3 to 5 icons
- test it again
- track the order
- yellow on white
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students