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