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