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.True or false: a water reminder is the best fit for a gamer who forgets to drink. (a) True (b) False
-
2.🧪 How many of these test cases pass?
🚚 Rule: delivery is free (0) when the order is 300 or more; otherwise it costs 40.
function delivery(total) {
if (total > 300) {
return 0;
}
return 40;
}
Test 1: delivery(250) → expected 40
Test 2: delivery(600) → expected 0
Test 3: delivery(550) → expected 0 - 3.🔁 Why use a loop to show 100 messages? (a) it hides them (b) it uses more lines (c) it is slower (d) less code to write
-
4.🧪 How many of these test cases pass?
📝 Rule: a quiz is passed with 8 or more right answers.
function result(right) {
if (right >= 8) {
return "Pass";
}
return "Try again";
}
Test 1: result(5) → expected Try again
Test 2: result(11) → expected Pass
Test 3: result(9) → expected Pass -
5.🧪 How many of these test cases pass?
🚚 Rule: delivery is free (0) when the order is 600 or more; otherwise it costs 40.
function delivery(total) {
if (total > 600) {
return 0;
}
return 40;
}
Test 1: delivery(850) → expected 0
Test 2: delivery(500) → expected 40
Test 3: delivery(800) → expected 0 -
6.🧪 What is the ACTUAL result of Test 1?
🎟️ Rule: a ticket costs 50 for children under 12, and 100 for everyone else.
function price(age) {
if (age < 12) {
return 50;
}
return 100;
}
Test 1: price(18) → expected 100
Test 2: price(17) → expected 100
Test 3: price(11) → expected 50 - 7.⚙️ In an app, is a buzz (vibration) an input, processing or an output? (a) output (b) input (c) processing
- 8.🔢 After an app is released, which comes first: “release an update” or “list what to fix”? (a) release an update (b) list what to fix
-
9.🧪 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(450) → expected 40
Test 2: delivery(500) → expected 0
Test 3: delivery(650) → expected 0 (a) Test 3 (b) Test 1 (c) Test 2 - 10.True or false: a final design looks like the real app. (a) True (b) False
- 11.🎨 Is this about UI or UX: the font size? (a) UX (b) UI
-
12.👆 The user types Riya in nameBox and taps the button 1 time. What does the label show?
button.onTap = function () {
label.text = "Hi, " + nameBox.text + "!";
}; (a) Hi, nameBox.text! (b) Riya (c) Hi! (d) Hi, Riya! - 13.🎨 Is this about UI or UX: whether users get lost? (a) UI (b) UX
- 14.👆 What kind of event is this: the user taps Play? (a) a load event (b) a tap event (c) a text event (d) a timer event
- 15.💡 How can you check that people really have the problem? (a) copy another app (b) pick a colour (c) just guess (d) ask possible users
-
16.🧪 What is the ACTUAL result of Test 1?
🎟️ Rule: a ticket costs 50 for children under 11, and 100 for everyone else.
function price(age) {
if (age <= 11) {
return 50;
}
return 100;
}
Test 1: price(19) → expected 100
Test 2: price(17) → expected 100
Test 3: price(10) → expected 50 - 17.💡 Which app idea solves this problem: bottles go missing at school? (a) a study-room finder (b) a medicine reminder (c) a lost-and-found board (d) a homework planner
- 18.👆 “On tap → do this” links an event to ___. (a) an action (b) a font (c) a charger (d) a web address
-
19.🧰 What number does this code show?
function double(n) {
return n * 2;
}
show(double(8)); - 20.Which of these happens at the plan stage? (a) write the store text (b) write the code (c) connect the data (d) pick the features
-
21.🧭 The app has tabs Lessons, Quiz, Me. You start on Lessons, then:
1. open “Edit photo”
2. open “Help page”
3. tap Back
4. open “Edit photo”
Which screen are you on now? (a) Lessons (b) Quiz (c) Help page (d) Edit photo - 22.👥 A cricket club app has 75 players, 140 coaches and 230 fans as users. How many users does it have in all?
- 23.💡 An app that tries to do everything at once is usually ___. (a) easy to build (b) hard to use (c) very small (d) finished fast
-
24.👆 Two designs for the same task (each arrow is one tap). Which needs FEWER taps?
Design A: Home → Shop → Offers → Menu → Cart → Address → Search
Design B: Home → Menu → Confirm (a) Design A (b) Design B -
25.🐞 This code has a bug. What number does it ACTUALLY show?
line 1: let stars = 44; // start at 43
line 2: stars = stars * 2; // double it
line 3: stars = stars * 2; // double it
line 4: stars = stars + 6; // add 6
line 5: show(stars); // show it - 26.🗒️ You are planning version 1 of a bus tracker. Which feature is a MUST-HAVE? (a) change the bus icon (b) a dark mode (c) rate the driver (d) show arrival time
- 27.💾 What is a variable? (a) a named box for a value (b) a type of screen (c) a picture (d) a phone setting
- 28.👆 What kind of event is this: the user types a letter? (a) a tap event (b) a timer event (c) a text event (d) a load event
- 29.🎯 Why learn about users before you build? (a) to make it longer (b) to slow it down (c) to build what they need (d) to pick a logo
-
30.🧩 How many inputs (text boxes, switches and sliders) does this screen have?
[title] Add Homework
[button] Send
[text box] Name
[text box] Due date
[slider] Volume
[button] Cancel
[button] Save
[text box] Phone -
31.🧩 How many buttons does this app screen have?
[title] Settings
[switch] Remind me
[text box] Notes
[button] Send
[text box] Phone
[text box] Age -
32.🖼️ In this wireframe (top to bottom), what is right above the Add button?
[ list of items ]
[ Add button ]
[ filter buttons ]
[ big picture ]
[ title text ]
[ menu icon ] (a) list of items (b) big picture (c) title text (d) filter buttons -
33.🧩 Which of these is a button on this screen?
[title] Add Homework
[button] Save
[slider] Text size
[switch] Remind me
[text box] Email (a) Remind me (b) Save (c) Text size (d) Email -
34.💾 pop() takes off the last item. What does this code show?
let songs = ["Monsoon", "Rain", "Stars", "Sunrise"];
songs.pop();
show(songs[songs.length - 1]); (a) Rain (b) Monsoon (c) Sunrise (d) Stars - 35.🔀 What does >= mean? (a) less than (b) smaller or equal (c) greater than or equal (d) not equal
- 36.Which of these is true of a website? (a) is installed on a phone (b) updates from the store (c) has a home-screen icon (d) opens in a web browser
-
37.🔁 What number does this code show?
let steps = [16, 1, 3, 15, 17];
let total = 0;
for (let i = 0; i < steps.length; i++) {
total = total + steps[i];
}
show(total); - 38.👆 What kind of event is this: a 5-minute alarm ends? (a) a tap event (b) a timer event (c) a text event (d) a load event
-
39.💾 pop() takes off the last item. What does this code show?
let notes = ["Hindi", "Art", "Music"];
notes.pop();
show(notes[notes.length - 1]); (a) Music (b) Hindi (c) Art -
40.🧰 What does this code show?
function greet(name) {
return "Well done, " + name + "!";
}
show(greet("Meera")); (a) greet (b) Well done, name! (c) Well done, Meera! (d) Meera
Answer key
- True
- 3
- less code to write
- 3
- 3
- 100
- output
- list what to fix
- Test 2
- True
- UI
- Hi, Riya!
- UX
- a tap event
- ask possible users
- 100
- a lost-and-found board
- an action
- 16
- pick the features
- Edit photo
- 445
- hard to use
- Design B
- 182
- show arrival time
- a named box for a value
- a text event
- to build what they need
- 4
- 1
- list of items
- Save
- Stars
- greater than or equal
- opens in a web browser
- 52
- a timer event
- Art
- Well done, Meera!
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students