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