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