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