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