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