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