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