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 = 134; // 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 2 (b) line 4 (c) line 3 (d) line 1 - 2.⚙️ In an app, is adding up a bill an input, processing or an output? (a) processing (b) output (c) input
- 3.⚙️ In an app, is working out a tip an input, processing or an output? (a) output (b) processing (c) input
-
4.⚙️ What number does this app show?
let price = 130; // typed by the user
let off = 40; // typed by the user
let pay = price - off;
show(pay); - 5.True or false: tapping a button is processing. (a) True (b) False
-
6.⚙️ 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 - 7.True or false: sorting the scores is an input. (a) False (b) True
- 8.🔍 Which is the odd one out? (a) adding up a bill (b) a beep sound (c) a result on screen (d) a pop-up message
- 9.True or false: a buzz (vibration) is an output. (a) True (b) False
-
10.⚙️ What number does this app show?
let price = 560; // typed by the user
let off = 10; // typed by the user
let pay = price - off;
show(pay); - 11.True or false: adding up a bill is processing. (a) False (b) True
- 12.True or false: a beep sound is processing. (a) False (b) True
- 13.True or false: a pop-up message is an output. (a) False (b) True
-
14.⚙️ What number does this app show?
let km = 8; // typed by the user
let metres = km * 1000;
show(metres); - 15.🔍 Which is the odd one out? (a) taking a photo (b) speaking a command (c) working out a tip (d) typing your age
- 16.🔍 Which is the odd one out? (a) a pop-up message (b) a beep sound (c) speaking a command (d) a buzz (vibration)
-
17.⚙️ Which line does the processing (works out the answer)?
line 1: let bill = 50; // 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 4 (d) line 3 -
18.⚙️ Which line does the processing (works out the answer)?
line 1: let bill = 92; // 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 2 (b) line 1 (c) line 3 (d) line 4 -
19.⚙️ What number does this app show?
let km = 3; // typed by the user
let metres = km * 1000;
show(metres); - 20.🔍 Which is the odd one out? (a) taking a photo (b) typing your age (c) speaking a command (d) a beep sound
-
21.⚙️ What number does this app show?
let price = 180; // typed by the user
let off = 10; // typed by the user
let pay = price - off;
show(pay); -
22.⚙️ What number does this app show?
let price = 100; // typed by the user
let qty = 3; // typed by the user
let total = price * qty;
show(total); -
23.⚙️ What number does this app show?
let price = 70; // typed by the user
let qty = 4; // typed by the user
let total = price * qty;
show(total); - 24.🔍 Which is the odd one out? (a) a result on screen (b) tapping a button (c) taking a photo (d) typing your age
- 25.Which of these is an input? (a) adding up a bill (b) sorting the scores (c) checking a password (d) taking a photo
- 26.Which of these is processing? (a) a buzz (vibration) (b) adding up a bill (c) speaking a command (d) taking a photo
-
27.⚙️ Which line does the processing (works out the answer)?
line 1: let price = 210; // 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 -
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 3 (b) line 1 (c) line 2 -
29.⚙️ Which line does the processing (works out the answer)?
line 1: let price = 580; // 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 4 (d) line 1 -
30.⚙️ 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); -
31.⚙️ Which line does the processing (works out the answer)?
line 1: let price = 15; // 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 4 (b) line 1 (c) line 2 (d) line 3 -
32.⚙️ What number does this app show?
let price = 420; // typed by the user
let off = 50; // typed by the user
let pay = price - off;
show(pay); -
33.⚙️ What number does this app show?
let price = 270; // typed by the user
let off = 20; // typed by the user
let pay = price - off;
show(pay); -
34.⚙️ Which line does the processing (works out the answer)?
line 1: let price = 460; // 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 4 (d) line 3 -
35.⚙️ Which line does the processing (works out the answer)?
line 1: let price = 600; // 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 4 (c) line 2 (d) line 3 - 36.⚙️ In an app, is a beep sound an input, processing or an output? (a) processing (b) input (c) output
- 37.True or false: a result on screen is an input. (a) False (b) True
-
38.⚙️ What number does this app show?
let price = 330; // typed by the user
let off = 10; // typed by the user
let pay = price - off;
show(pay); - 39.Which of these is an input? (a) speaking a command (b) adding up a bill (c) sorting the scores (d) a beep sound
-
40.⚙️ What number does this app show?
let price = 35; // typed by the user
let qty = 5; // typed by the user
let total = price * qty;
show(total);
Answer key
- line 3
- processing
- processing
- 90
- False
- line 2
- False
- adding up a bill
- True
- 550
- True
- False
- True
- 8000
- working out a tip
- speaking a command
- line 3
- line 3
- 3000
- a beep sound
- 170
- 300
- 280
- a result on screen
- taking a photo
- adding up a bill
- line 3
- line 2
- line 3
- 140
- line 3
- 370
- 250
- line 3
- line 3
- output
- False
- 320
- speaking a command
- 175
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students