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