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