Microsoft GitHub Administrator GH-300 Question # 9 Topic 1 Discussion
GH-300 Exam Topic 1 Question 9 Discussion:
Question #: 9
Topic #: 1
Which of the following prompts can be used to guide GitHub Copilot Chat in refactoring code for quality improvements? (Each correct answer presents part of the solution. Choose two.)
A.
"Show me how to improve the readability of this function."
B.
"Suggest ways to enhance the maintainability of this code segment."
C.
"Refactor my application to meet the latest coding standards."
D.
"Predict future coding trends and update my codebase accordingly."
Effective prompts for refactoring include requests that focus on specific quality improvements, such as readability and maintainability. These prompts guide GitHub Copilot to provide relevant and actionable suggestions.
[Reference: GitHub Copilot prompt engineering best practices., , ]
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit