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