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