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