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