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