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