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