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