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