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