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