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