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