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