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