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