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