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