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