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