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