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