Github Copilot · Free Practice Question Medium
Question 25
GitHub Copilot Chat enhances developer workflows by providing AI-driven assistance. Which of the following statements correctly describes one of the main features of GitHub Copilot Chat?
-
A
GitHub Copilot Chat can modify existing code in real time without requiring user confirmation, ensuring automated refactoring of large codebases.
-
B
GitHub Copilot Chat allows developers to run code directly within the chat interface, eliminating the need for a local or cloud-based execution environment.
-
C
GitHub Copilot Chat integrates with IDEs such as Visual Studio Code and JetBrains, providing context-aware responses based on open files and project structure.
-
D
GitHub Copilot Chat requires users to manually approve each code suggestion before it can be copied or inserted into the editor.
Reveal correct answer
Correct answer: C
A.
GitHub Copilot Chat does not autonomously modify code without user input. It provides suggestions, explanations, and refactoring recommendations, but users must review and apply them manually.
B.
While Copilot Chat provides interactive AI-driven assistance, it does not include an embedded execution environment. Code must be executed using the standard capabilities of the IDE or an external runtime.
C.
GitHub Copilot Chat is designed to work within development environments, particularly Visual Studio Code and JetBrains, to provide intelligent suggestions based on context. It analyzes open files, repository contents, and comments to generate relevant responses that assist in coding, debugging, and learning new programming concepts.
D.
While users have control over accepting or modifying suggestions, GitHub Copilot Chat does not enforce a mandatory manual approval process for every suggestion. Developers can review and edit the code before inserting it, but the workflow remains flexible.
Discussion
Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.
