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