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