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