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