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