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