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