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