App Dev Worksheet: Input, Processing, Output
Developer's tip (In, work, out): Input → processing → output. Input: typing, tapping, a photo, your voice. Output: a result on screen, a sound, a buzz, a pop-up. In code, the processing line works out a new value from the inputs; show() is the output.
NameDateTime takenScore ___ / 40
-
1.⚙️ Which line does the processing (works out the answer)?
line 1: let price = 45; // typed by the user
line 2: let qty = 2; // typed by the user
line 3: let total = price * qty;
line 4: show(total); (a) line 2 (b) line 3 (c) line 1 (d) line 4 -
2.⚙️ Which line does the processing (works out the answer)?
line 1: let price = 440; // typed by the user
line 2: let off = 40; // typed by the user
line 3: let pay = price - off;
line 4: show(pay); (a) line 4 (b) line 3 (c) line 2 (d) line 1 - 3.True or false: checking a password is an input. (a) True (b) False
- 4.True or false: adding up a bill is an input. (a) True (b) False
-
5.⚙️ What number does this app show?
let bill = 46; // typed by the user
let friends = 2; // typed by the user
let share = bill / friends;
show(share); - 6.🔍 Which is the odd one out? (a) a result on screen (b) a pop-up message (c) checking a password (d) a buzz (vibration)
-
7.⚙️ Which line does the processing (works out the answer)?
line 1: let price = 500; // 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 2 (b) line 4 (c) line 3 (d) line 1 - 8.⚙️ In an app, is a result on screen an input, processing or an output? (a) input (b) processing (c) output
- 9.⚙️ In an app, is tapping a button an input, processing or an output? (a) processing (b) output (c) input
- 10.True or false: a buzz (vibration) is an output. (a) False (b) True
- 11.True or false: checking a password is an output. (a) False (b) True
-
12.⚙️ What number does this app show?
let price = 290; // typed by the user
let off = 40; // typed by the user
let pay = price - off;
show(pay); -
13.⚙️ Which line does the processing (works out the answer)?
line 1: let price = 15; // typed by the user
line 2: let qty = 6; // typed by the user
line 3: let total = price * qty;
line 4: show(total); (a) line 3 (b) line 2 (c) line 4 (d) line 1 -
14.⚙️ Which line does the processing (works out the answer)?
line 1: let bill = 45; // typed by the user
line 2: let friends = 3; // typed by the user
line 3: let share = bill / friends;
line 4: show(share); (a) line 4 (b) line 3 (c) line 1 (d) line 2 -
15.⚙️ Which line does the processing (works out the answer)?
line 1: let bill = 74; // 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 1 (b) line 4 (c) line 3 (d) line 2 - 16.True or false: typing your age is processing. (a) False (b) True
- 17.True or false: a buzz (vibration) is processing. (a) True (b) False
- 18.True or false: sorting the scores is an input. (a) True (b) False
-
19.⚙️ What number does this app show?
let price = 360; // typed by the user
let off = 30; // typed by the user
let pay = price - off;
show(pay); -
20.⚙️ What number does this app show?
let bill = 205; // typed by the user
let friends = 5; // typed by the user
let share = bill / friends;
show(share); - 21.⚙️ In an app, is checking a password an input, processing or an output? (a) input (b) processing (c) output
- 22.🔍 Which is the odd one out? (a) sorting the scores (b) working out a tip (c) checking a password (d) taking a photo
-
23.⚙️ Which line does the processing (works out the answer)?
line 1: let price = 30; // typed by the user
line 2: let qty = 3; // typed by the user
line 3: let total = price * qty;
line 4: show(total); (a) line 2 (b) line 1 (c) line 4 (d) line 3 -
24.⚙️ What number does this app show?
let price = 370; // typed by the user
let off = 20; // typed by the user
let pay = price - off;
show(pay); -
25.⚙️ Which line does the processing (works out the answer)?
line 1: let price = 250; // typed by the user
line 2: let off = 30; // typed by the user
line 3: let pay = price - off;
line 4: show(pay); (a) line 3 (b) line 1 (c) line 2 (d) line 4 -
26.⚙️ Which line does the processing (works out the answer)?
line 1: let bill = 90; // typed by the user
line 2: let friends = 5; // typed by the user
line 3: let share = bill / friends;
line 4: show(share); (a) line 2 (b) line 3 (c) line 1 (d) line 4 -
27.⚙️ Which line does the processing (works out the answer)?
line 1: let bill = 288; // typed by the user
line 2: let friends = 4; // typed by the user
line 3: let share = bill / friends;
line 4: show(share); (a) line 3 (b) line 4 (c) line 1 (d) line 2 - 28.True or false: adding up a bill is processing. (a) False (b) True
-
29.⚙️ Which line does the processing (works out the answer)?
line 1: let km = 14; // typed by the user
line 2: let metres = km * 1000;
line 3: show(metres); (a) line 1 (b) line 2 (c) line 3 -
30.⚙️ What number does this app show?
let price = 45; // typed by the user
let qty = 6; // typed by the user
let total = price * qty;
show(total); -
31.⚙️ What number does this app show?
let bill = 355; // typed by the user
let friends = 5; // typed by the user
let share = bill / friends;
show(share); -
32.⚙️ Which line does the processing (works out the answer)?
line 1: let km = 11; // typed by the user
line 2: let metres = km * 1000;
line 3: show(metres); (a) line 3 (b) line 1 (c) line 2 -
33.⚙️ What number does this app show?
let price = 90; // typed by the user
let qty = 4; // typed by the user
let total = price * qty;
show(total); - 34.Which of these is processing? (a) a pop-up message (b) taking a photo (c) checking a password (d) a beep sound
-
35.⚙️ Which line does the processing (works out the answer)?
line 1: let km = 5; // typed by the user
line 2: let metres = km * 1000;
line 3: show(metres); (a) line 1 (b) line 2 (c) line 3 - 36.🔍 Which is the odd one out? (a) working out a tip (b) speaking a command (c) checking a password (d) adding up a bill
-
37.⚙️ What number does this app show?
let price = 100; // typed by the user
let off = 20; // typed by the user
let pay = price - off;
show(pay); -
38.⚙️ What number does this app show?
let price = 25; // typed by the user
let qty = 3; // typed by the user
let total = price * qty;
show(total); - 39.🔍 Which is the odd one out? (a) typing your age (b) speaking a command (c) a result on screen (d) taking a photo
- 40.True or false: a result on screen is processing. (a) False (b) True
Answer key
- line 3
- line 3
- False
- False
- 23
- checking a password
- line 3
- output
- input
- True
- False
- 250
- line 3
- line 3
- line 3
- False
- False
- False
- 330
- 41
- processing
- taking a photo
- line 3
- 350
- line 3
- line 3
- line 3
- True
- line 2
- 270
- 71
- line 2
- 360
- checking a password
- line 2
- speaking a command
- 80
- 75
- a result on screen
- False
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students