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 km = 9; // typed by the user
line 2: let metres = km * 1000;
line 3: show(metres); (a) line 1 (b) line 2 (c) line 3 -
2.⚙️ What number does this app show?
let bill = 75; // typed by the user
let friends = 3; // typed by the user
let share = bill / friends;
show(share); - 3.Which of these is an input? (a) checking a password (b) a result on screen (c) tapping a button (d) a buzz (vibration)
-
4.⚙️ What number does this app show?
let bill = 172; // typed by the user
let friends = 4; // typed by the user
let share = bill / friends;
show(share); - 5.⚙️ In an app, is working out a tip an input, processing or an output? (a) processing (b) input (c) output
-
6.⚙️ Which line does the processing (works out the answer)?
line 1: let km = 8; // typed by the user
line 2: let metres = km * 1000;
line 3: show(metres); (a) line 1 (b) line 2 (c) line 3 -
7.⚙️ What number does this app show?
let price = 420; // typed by the user
let off = 20; // typed by the user
let pay = price - off;
show(pay); -
8.⚙️ What number does this app show?
let km = 2; // typed by the user
let metres = km * 1000;
show(metres); - 9.🔍 Which is the odd one out? (a) taking a photo (b) checking a password (c) typing your age (d) tapping a button
-
10.⚙️ Which line does the processing (works out the answer)?
line 1: let km = 4; // typed by the user
line 2: let metres = km * 1000;
line 3: show(metres); (a) line 2 (b) line 1 (c) line 3 -
11.⚙️ Which line does the processing (works out the answer)?
line 1: let price = 100; // typed by the user
line 2: let qty = 4; // typed by the user
line 3: let total = price * qty;
line 4: show(total); (a) line 1 (b) line 2 (c) line 4 (d) line 3 - 12.🔍 Which is the odd one out? (a) taking a photo (b) speaking a command (c) tapping a button (d) working out a tip
- 13.True or false: tapping a button is an output. (a) False (b) True
- 14.True or false: typing your age is processing. (a) True (b) False
-
15.⚙️ Which line does the processing (works out the answer)?
line 1: let price = 190; // typed by the user
line 2: let off = 20; // 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 -
16.⚙️ What number does this app show?
let km = 14; // typed by the user
let metres = km * 1000;
show(metres); - 17.⚙️ In an app, is adding up a bill an input, processing or an output? (a) input (b) output (c) processing
-
18.⚙️ Which line does the processing (works out the answer)?
line 1: let price = 540; // typed by the user
line 2: let off = 20; // typed by the user
line 3: let pay = price - off;
line 4: show(pay); (a) line 4 (b) line 3 (c) line 1 (d) line 2 -
19.⚙️ What number does this app show?
let bill = 272; // typed by the user
let friends = 4; // typed by the user
let share = bill / friends;
show(share); - 20.True or false: adding up a bill is an input. (a) True (b) False
- 21.True or false: taking a photo is an input. (a) True (b) False
-
22.⚙️ Which line does the processing (works out the answer)?
line 1: let price = 400; // 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 1 (b) line 2 (c) line 4 (d) line 3 - 23.🔍 Which is the odd one out? (a) a result on screen (b) a buzz (vibration) (c) typing your age (d) a pop-up message
-
24.⚙️ 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 3 (b) line 1 (c) line 2 - 25.⚙️ In an app, is tapping a button an input, processing or an output? (a) processing (b) output (c) input
-
26.⚙️ What number does this app show?
let km = 6; // typed by the user
let metres = km * 1000;
show(metres); - 27.True or false: speaking a command is an input. (a) True (b) False
-
28.⚙️ Which line does the processing (works out the answer)?
line 1: let price = 20; // 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 3 (b) line 4 (c) line 1 (d) line 2 -
29.⚙️ What number does this app show?
let price = 60; // typed by the user
let qty = 4; // typed by the user
let total = price * qty;
show(total); - 30.🔍 Which is the odd one out? (a) checking a password (b) sorting the scores (c) working out a tip (d) a beep sound
- 31.Which of these is an input? (a) adding up a bill (b) a beep sound (c) a buzz (vibration) (d) typing your age
- 32.True or false: checking a password is an output. (a) True (b) False
-
33.⚙️ What number does this app show?
let bill = 36; // typed by the user
let friends = 2; // typed by the user
let share = bill / friends;
show(share); - 34.True or false: tapping a button is an input. (a) False (b) True
-
35.⚙️ What number does this app show?
let bill = 38; // typed by the user
let friends = 2; // typed by the user
let share = bill / friends;
show(share); -
36.⚙️ What number does this app show?
let price = 10; // typed by the user
let qty = 2; // typed by the user
let total = price * qty;
show(total); - 37.🔍 Which is the odd one out? (a) a buzz (vibration) (b) a pop-up message (c) speaking a command (d) a result on screen
- 38.True or false: tapping a button is processing. (a) True (b) False
-
39.⚙️ What number does this app show?
let price = 300; // typed by the user
let off = 30; // typed by the user
let pay = price - off;
show(pay); - 40.🔍 Which is the odd one out? (a) sorting the scores (b) working out a tip (c) checking a password (d) tapping a button
Answer key
- line 2
- 25
- tapping a button
- 43
- processing
- line 2
- 400
- 2000
- checking a password
- line 2
- line 3
- working out a tip
- False
- False
- line 3
- 14000
- processing
- line 3
- 68
- False
- True
- line 3
- typing your age
- line 2
- input
- 6000
- True
- line 3
- 240
- a beep sound
- typing your age
- False
- 18
- True
- 19
- 20
- speaking a command
- False
- 270
- tapping a button
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students