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