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