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