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