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