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