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