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