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