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