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