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