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