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