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