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