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