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