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