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