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