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