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