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