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