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