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