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 is the odd one out? (a) a beep sound (b) a buzz (vibration) (c) tapping a button (d) a result on screen
- 2.🔍 Which is the odd one out? (a) sorting the scores (b) a pop-up message (c) working out a tip (d) checking a password
-
3.⚙️ What number does this app show?
let price = 410; // typed by the user
let off = 10; // typed by the user
let pay = price - off;
show(pay); - 4.⚙️ In an app, is working out a tip an input, processing or an output? (a) input (b) output (c) processing
-
5.⚙️ What number does this app show?
let price = 55; // typed by the user
let qty = 2; // typed by the user
let total = price * qty;
show(total); -
6.⚙️ 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 3 (b) line 4 (c) line 2 (d) line 1 - 7.True or false: tapping a button is an input. (a) True (b) False
- 8.🔍 Which is the odd one out? (a) speaking a command (b) typing your age (c) a result on screen (d) taking a photo
- 9.True or false: a pop-up message is processing. (a) False (b) True
- 10.True or false: adding up a bill is an output. (a) True (b) False
-
11.⚙️ What number does this app show?
let price = 260; // typed by the user
let off = 20; // typed by the user
let pay = price - off;
show(pay); - 12.True or false: typing your age is an input. (a) True (b) False
- 13.True or false: a beep sound is an output. (a) False (b) True
-
14.⚙️ 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); - 15.True or false: working out a tip is processing. (a) False (b) True
-
16.⚙️ What number does this app show?
let km = 9; // typed by the user
let metres = km * 1000;
show(metres); -
17.⚙️ What number does this app show?
let km = 11; // typed by the user
let metres = km * 1000;
show(metres); -
18.⚙️ Which line does the processing (works out the answer)?
line 1: let km = 9; // typed by the user
line 2: let metres = km * 1000;
line 3: show(metres); (a) line 3 (b) line 2 (c) line 1 - 19.⚙️ In an app, is checking a password an input, processing or an output? (a) input (b) output (c) processing
- 20.🔍 Which is the odd one out? (a) typing your age (b) sorting the scores (c) working out a tip (d) adding up a bill
-
21.⚙️ What number does this app show?
let bill = 54; // typed by the user
let friends = 3; // typed by the user
let share = bill / friends;
show(share); -
22.⚙️ 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 2 (c) line 1 -
23.⚙️ What number does this app show?
let price = 10; // typed by the user
let qty = 6; // typed by the user
let total = price * qty;
show(total); - 24.True or false: a result on screen is an output. (a) False (b) True
-
25.⚙️ What number does this app show?
let price = 130; // typed by the user
let off = 20; // typed by the user
let pay = price - off;
show(pay); -
26.⚙️ What number does this app show?
let price = 35; // typed by the user
let qty = 5; // typed by the user
let total = price * qty;
show(total); -
27.⚙️ What number does this app show?
let km = 4; // typed by the user
let metres = km * 1000;
show(metres); -
28.⚙️ What number does this app show?
let bill = 256; // typed by the user
let friends = 4; // typed by the user
let share = bill / friends;
show(share); -
29.⚙️ What number does this app show?
let bill = 159; // typed by the user
let friends = 3; // typed by the user
let share = bill / friends;
show(share); -
30.⚙️ Which line does the processing (works out the answer)?
line 1: let bill = 155; // 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 3 (b) line 2 (c) line 4 (d) line 1 -
31.⚙️ What number does this app show?
let bill = 201; // typed by the user
let friends = 3; // typed by the user
let share = bill / friends;
show(share); -
32.⚙️ Which line does the processing (works out the answer)?
line 1: let price = 60; // 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 3 (c) line 4 (d) line 1 - 33.True or false: checking a password is an output. (a) False (b) True
- 34.🔍 Which is the odd one out? (a) sorting the scores (b) checking a password (c) adding up a bill (d) taking a photo
-
35.⚙️ What number does this app show?
let km = 5; // typed by the user
let metres = km * 1000;
show(metres); -
36.⚙️ What number does this app show?
let bill = 126; // typed by the user
let friends = 2; // typed by the user
let share = bill / friends;
show(share); -
37.⚙️ Which line does the processing (works out the answer)?
line 1: let bill = 46; // 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 - 38.⚙️ In an app, is typing your age an input, processing or an output? (a) processing (b) output (c) input
-
39.⚙️ What number does this app show?
let bill = 350; // typed by the user
let friends = 5; // typed by the user
let share = bill / friends;
show(share); -
40.⚙️ Which line does the processing (works out the answer)?
line 1: let price = 50; // 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 3 (d) line 4
Answer key
- tapping a button
- a pop-up message
- 400
- processing
- 110
- line 3
- True
- a result on screen
- False
- False
- 240
- True
- True
- 165
- True
- 9000
- 11000
- line 2
- processing
- typing your age
- 18
- line 2
- 60
- True
- 110
- 175
- 4000
- 64
- 53
- line 3
- 67
- line 3
- False
- taking a photo
- 5000
- 63
- line 3
- input
- 70
- line 3
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students