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