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