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