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