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