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