GitHub Copilot Certification — Question 27

How can GitHub Copilot assist with code refactoring tasks?

Answer options

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.