GitHub Copilot Certification — Question 27
How can GitHub Copilot assist with code refactoring tasks?
Answer options
- A. GitHub Copilot can fix syntax errors without user input.
- B. GitHub Copilot can automatically rewrite code to follow best practices.
- C. GitHub Copilot can suggest refactoring improvements for better code quality.
- D. GitHub Copilot can remove unnecessary files from the project directory.
Correct answer: C
Explanation
The correct answer is C because GitHub Copilot provides suggestions for refactoring to enhance the quality of the code. Options A and B imply capabilities that GitHub Copilot does not fully possess, as it cannot fix errors without user input or automatically rewrite code. Option D is incorrect because it pertains to file management rather than code refactoring.