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