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