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