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