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