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