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