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