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