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