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