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