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