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