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