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