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