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