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