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