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