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