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