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