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