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 double(n) {
return n * 2;
}
show(double(17)); -
2.🖼️ How many parts (boxes) does this wireframe have?
[ big picture ]
[ list of items ]
[ search box ]
[ Save button ] - 3.🚀 Your app is at version 4.2.1. The next release fixes a small bug. What is its version number? (a) 4.3.0 (b) 4.3.1 (c) 4.2.2 (d) 5.0.0
- 4.Which of these app ideas solves no real problem? (a) a library due-date alert (b) a bill splitter (c) a blank grey screen (d) a medicine reminder
-
5.⚙️ What number does this app show?
let price = 160; // typed by the user
let off = 20; // typed by the user
let pay = price - off;
show(pay); - 6.🔢 When you make an app, which comes FIRST? (a) plan the screens (b) get an idea (c) build the app (d) test the app
-
7.🧰 What number does this code show?
function points(stars) {
return stars * 10 + 5;
}
show(points(5) + points(2)); -
8.🧭 The app has tabs Lessons, Quiz, Me. You start on Lessons, then:
1. open “Help page”
2. open “Video”
3. tap the Quiz tab
4. open “Map”
How many times must you tap Back to reach the main screen of this tab? - 9.True or false: “labels on every icon” helps everyone use the app. (a) True (b) False
-
10.👆 The user types Aman in nameBox and taps the button 1 time. What does the label show?
button.onTap = function () {
label.text = "Hi, " + nameBox.text + "!";
}; (a) Hi! (b) Hi, Aman! (c) Aman (d) Hi, nameBox.text! - 11.🔢 In a quiz-app flow, which comes FIRST? (a) pick an answer (b) see the final score (c) read a question (d) tap “Start quiz”
- 12.🔐 Which permission does a birthday list of friends really need? (a) the camera (b) location (c) the microphone (d) contacts
-
13.🧪 One test case fails. Which one?
📝 Rule: a quiz is passed with 6 or more right answers.
function result(right) {
if (right > 6) {
return "Pass";
}
return "Try again";
}
Test 1: result(3) → expected Try again
Test 2: result(6) → expected Pass
Test 3: result(8) → expected Pass (a) Test 3 (b) Test 1 (c) Test 2 - 14.True or false: tap to Send is data. (a) False (b) True
- 15.Which of these is true of a website? (a) has a home-screen icon (b) updates from the store (c) is installed on a phone (d) needs no installing
-
16.⚙️ Which line does the processing (works out the answer)?
line 1: let km = 12; // typed by the user
line 2: let metres = km * 1000;
line 3: show(metres); (a) line 3 (b) line 2 (c) line 1 -
17.⚙️ Which line does the processing (works out the answer)?
line 1: let bill = 30; // typed by the user
line 2: let friends = 2; // typed by the user
line 3: let share = bill / friends;
line 4: show(share); (a) line 4 (b) line 3 (c) line 2 (d) line 1 - 18.🌗 Is white on dark green easy or hard to read on a button? (a) hard to read (b) easy to read
- 19.🗒️ You are planning version 1 of a pocket-money tracker. Which feature can WAIT for a later version? (a) add money received (b) pie-chart colours (c) show the balance (d) add money spent
- 20.💡 Does an app idea like a bill splitter solve a real problem? (a) Yes (b) No
- 21.Which of these is about UX (the experience)? (a) the icon shapes (b) how easy sign-up is (c) the button colours (d) the screen layout
- 22.💡 Which app idea solves this problem: Grandpa forgets his tablets? (a) a medicine reminder (b) a lost-and-found board (c) a bill splitter (d) a study-room finder
- 23.♿ A screen has 10 icon buttons. Only 4 of them have a text label for screen readers. How many still need a label?
- 24.⚙️ In an app, is adding up a bill an input, processing or an output? (a) output (b) input (c) processing
-
25.🔁 What number does this code show?
let marks = [53, 70, 68, 48, 19];
let count = 0;
for (let i = 0; i < marks.length; i++) {
if (marks[i] >= 50) {
count = count + 1;
}
}
show(count); - 26.True or false: you write down the bugs at the release stage. (a) False (b) True
-
27.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
line 1: let stars = 31; // start at 31
line 2: stars = stars - 5; // take away 5
line 3: stars = stars + 1; // take away 1
line 4: show(stars); // show it - 28.🔁 list.length tells you ___. (a) the first item (b) the biggest item (c) the last item (d) how many items it has
-
29.🔁 What is the LAST line this code shows?
let names = ["Meera", "Riya", "Aman", "Kabir", "Arjun"];
for (let i = 0; i < names.length; i++) {
show("Hi, " + names[i]);
} (a) Hi, Aman (b) Hi, Meera (c) Hi, Arjun (d) Hi, Riya -
30.🧩 Which of these is a button on this screen?
[title] Settings
[button] Done
[text box] Subject
[text box] Phone
[text box] City (a) Phone (b) City (c) Subject (d) Done -
31.🧰 What number does this code show?
function points(stars) {
return stars * 10 + 5;
}
show(points(1) + points(4)); - 32.💡 Does an app idea like a medicine reminder solve a real problem? (a) Yes (b) No
- 33.👥 A cricket club app has 120 players, 280 coaches and 65 fans as users. How many users does it have in all?
- 34.💡 Which is a problem statement? (a) “Add a logo” (b) “Kids forget homework” (c) “Use blue buttons” (d) “Make it fast”
- 35.👥 A cricket club app has 285 players, 65 coaches and 190 fans as users. Which user group is the biggest? (a) fans (b) players (c) coaches
- 36.True or false: a party-invite app for friends needs the microphone. (a) False (b) True
-
37.👆 The user taps the button 4 times. What number does the label show now?
let coins = 1;
button.onTap = function () {
coins = coins + 5;
label.text = coins;
}; -
38.🔁 What number does this code show?
let marks = [11, 6, 4, 14];
let best = 0;
for (let i = 0; i < marks.length; i++) {
if (marks[i] > best) {
best = marks[i];
}
}
show(best); -
39.🔀 What number does this shop app show?
let total = 820;
if (total > 500) {
total = total - 50;
}
show(total); - 40.💡 Which app idea solves this problem: the library is always full? (a) a medicine reminder (b) a bill splitter (c) a lost-and-found board (d) a study-room finder
Answer key
- 34
- 4
- 4.2.2
- a blank grey screen
- 140
- get an idea
- 80
- 1
- True
- Hi, Aman!
- tap “Start quiz”
- contacts
- Test 2
- False
- needs no installing
- line 2
- line 3
- easy to read
- pie-chart colours
- Yes
- how easy sign-up is
- a medicine reminder
- 6
- processing
- 3
- False
- 25
- how many items it has
- Hi, Arjun
- Done
- 60
- Yes
- 465
- “Kids forget homework”
- players
- False
- 21
- 14
- 770
- a study-room finder
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students