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