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