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