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