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