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