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