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