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