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