Microsoft
GH-300 · Question #42
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.)
Sign in or unlock GH-300 to reveal the answer and full explanation for question #42. The question stem and answer options stay visible for context.
Apply prompt engineering and context crafting
Question
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.)
Options
- 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."
Unlock GH-300 to see the answer
You've previewed enough free GH-300 questions. Unlock GH-300 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
Topics
#GitHub Copilot Chat#Prompt Engineering#Code Refactoring#Code Quality