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