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