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