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