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