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