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