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