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