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