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