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