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