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