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