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