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