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