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