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