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