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