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