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