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