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