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