Microsoft

GH-300 practice question 18

GitHub Copilot · free question 18 of 20

Question

What specific function does the /fix slash command perform?
  • A. Proposes changes for detected issues, suggesting corrections for syntax errors and programming mistakes. Correct
  • B. Converts pseudocode into executable code, optimizing for readability and maintainability.
  • C. Generates new code snippets based on language syntax and best practices.
  • D. Initiates a code review with static analysis tools for security and logic errors.

Explanation

The /fix slash command asks Copilot Chat to propose a fix for problems in the selected code, such as errors, bugs and programming mistakes. It does not convert pseudocode, it is not a general code generator, and it does not run static analysis tools or start a code review.

Practice the whole free set

Answer all 20 free GH-300 questions with instant feedback, or unlock all 116 questions with Learn and Exam modes.