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