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