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