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