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