GitHub Copilot Certification — Question 15
How does GitHub Copilot suggest code optimizations for improved performance?
Answer options
- A. By analyzing the codebase and suggesting more efficient algorithms or data structures.
- B. By automatically rewriting the codebase to use more efficient code.
- C. By enforcing strict coding standards that ensure optimal performance.
- D. By providing detailed reports on the performance of the codebase.
Correct answer: A
Explanation
The correct answer is A because GitHub Copilot analyzes the existing code and suggests optimizations like better algorithms or data structures to enhance performance. The other options are incorrect as Copilot does not automatically rewrite code, enforce coding standards, or provide performance reports.