Github Copilot · Free Practice Question Easy
Question 16
A junior developer on your team is using GitHub Copilot Chat to help generate code and troubleshoot issues. However, the developer has run into limitations when asking for advice on certain types of tasks. Based on the current capabilities of GitHub Copilot Chat, which of the following represents a legitimate limitation of the tool that developers need to be aware of?
-
A
GitHub Copilot Chat can only suggest complete code blocks and cannot assist with partial code or function signatures.
-
B
GitHub Copilot Chat cannot provide any suggestions for code in programming languages not supported by GitHub Copilot.
-
C
GitHub Copilot Chat will refuse to engage with developers if it detects that the project has any open security vulnerabilities.
-
D
GitHub Copilot Chat requires an active internet connection to function and cannot be used in offline development environments.
Reveal correct answer
Correct answer: D
A.
GitHub Copilot Chat can assist with partial code or function signatures and is capable of generating context-aware suggestions based on incomplete code. In fact, one of its strengths is filling in code segments that are not fully written yet, making it more versatile than this option suggests.
B.
While it’s true that GitHub Copilot is limited to certain programming languages (e.g., Python, JavaScript, TypeScript, etc.), this is not a specific limitation of GitHub Copilot Chat. Copilot Chat works in the same language ecosystem as Copilot, and its suggestions are valid within the range of supported languages.
C.
GitHub Copilot Chat does not block interactions based on security vulnerabilities in a project. Although it can help developers troubleshoot and understand code, it does not act as a security tool that scans for vulnerabilities or blocks access based on the project's condition. Security tools like GitHub Advanced Security would be required to handle such cases.
D.
GitHub Copilot Chat requires an internet connection to operate because it relies on cloud-based AI models. Without an active connection, Copilot Chat cannot provide real-time suggestions or interactions. Developers working in offline environments will not be able to use Copilot Chat, which can be a limitation for teams working in isolated or restricted environments.
Discussion
Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.
