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