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