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