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