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