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