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