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