The code prints energy_used, but it should print energy_saved to show savings.
Step 2: Confirm energy_saved calculation
energy_saved is correctly calculated in both branches, so calculation is not the issue.
Final Answer:
It prints energy_used instead of energy_saved -> Option C
Quick Check:
Print statement should show savings, not usage [OK]
Hint: Print the variable that holds the result [OK]
Common Mistakes:
Ignoring the print statement error
Assuming calculation is wrong
Changing condition unnecessarily
5. A building uses sensors to adjust lighting and heating based on occupancy and outside temperature. Which of these best explains how this setup optimizes energy efficiency?
hard
A. It wastes energy by running systems all the time
B. It ignores outside temperature and occupancy
C. It increases energy use by adding sensors
D. It uses smart controls to reduce energy when not needed
Solution
Step 1: Understand sensor role in energy optimization
Sensors detect occupancy and temperature to control systems smartly.
Step 2: Analyze how smart controls save energy
By adjusting lighting and heating only when needed, energy waste is reduced.
Final Answer:
It uses smart controls to reduce energy when not needed -> Option D
Quick Check:
Sensors + smart controls = less energy waste [OK]
Hint: Smart controls cut energy when unused [OK]
Common Mistakes:
Thinking sensors increase energy use
Assuming systems run constantly
Ignoring the role of outside temperature
Recommended
Ready to prove it?
Pass the test and this pattern moves unknownstrongwhile earning +1 Grip toward your certificate.