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