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