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