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