EX0-111 · Question #41
Which of the following best defines Green Coding?
The correct answer is C. Writing applications that use less of the CPU. Option C is correct because Green Coding specifically refers to writing efficient code that minimizes CPU (and by extension, hardware resource) utilization - this is the direct lever a developer controls at the code level. By reducing CPU cycles needed to execute a task, you…
Question
Which of the following best defines Green Coding?
Options
- AWriting applications that create less emissions.
- BWriting applications that use less power.
- CWriting applications that use less of the CPU.
- DWriting applications that require less upgrading.
How the community answered
(61 responses)- A2% (1)
- B7% (4)
- C90% (55)
- D2% (1)
Explanation
Option C is correct because Green Coding specifically refers to writing efficient code that minimizes CPU (and by extension, hardware resource) utilization - this is the direct lever a developer controls at the code level. By reducing CPU cycles needed to execute a task, you reduce the computational work the hardware must perform.
Why the distractors are wrong:
- A (less emissions) - Reducing emissions is the environmental outcome of green coding, not the definition of the practice itself. It's too downstream.
- B (less power) - Lower power consumption is a result of efficient CPU usage, not the coding practice directly. Power management also involves hardware and infrastructure, not just code.
- D (less upgrading) - Software longevity/maintainability is related to software quality, not environmental efficiency. This conflates green coding with sustainable software maintenance.
Memory tip: Think of the developer's direct control - you write code that runs on the CPU. Green Coding = optimizing what you can directly touch (CPU cycles). Emissions and power are effects that happen outside your editor; CPU efficiency happens inside it.
Topics
Community Discussion
No community discussion yet for this question.