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