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