GitHub-Copilot (65 Questions)
GitHub-Copilot (65 Questions)
Number: 000-000
Passing Score: 800
Time Limit: 120 min
File Version: 1.0
Vendor: GitHub
Q&A
(65 Questions)
http://www.facebook.com/InnoviorITTech
A. The excluded content is not directly available to GitHub Copilot to use as context.
B. GitHub Copilot suggestions are no longer available in the excluded files.
C. The excluded content is no longer used while debugging the code.
D. The IDE will not count coding suggestions in the excluded content.
Correct Answer: AB
Section: (none)
Explanation
Explanation/Reference:
Explanation:
Content exclusions prevent GitHub Copilot from using the excluded content as context and stop
suggestions from being generated in those files.
QUESTION 2
Which principle emphasizes that AI systems should be understandable and provide clear information on
how they work?
A. Fairness
B. Transparency
C. Inclusiveness
D. Accountability
Correct Answer: B
Section: (none)
Explanation
Explanation/Reference:
Explanation:
The principle of transparency emphasizes that AI systems should be understandable and provide clear
information about their operations. This ensures that users can understand how the AI arrivesat its
decisions and suggestions.
QUESTION 3
What GitHub Copilot feature can be configured at the organization level to prevent GitHub Copilot
suggesting publicly available code snippets?
Correct Answer: C
Section: (none)
Explanation
Explanation/Reference:
Explanation:
The duplication detection filter can be configured at the organization level to prevent GitHub Copilot from
suggesting publicly available code snippets.
QUESTION 4
What are the potential limitations of GitHub Copilot Chat? (Each correct answer presents part of the
solution. Choose two.)
Correct Answer: AD
Section: (none)
Explanation
Explanation/Reference:
Explanation:
GitHub Copilot Chat has limitations such as limited training data, which can affect the accuracy of its
suggestions, and it does not provide extensive support for all programming languages.
QUESTION 5
What are two techniques that can be used to improve prompts to GitHub Copilot? (Select two.)
Correct Answer: AD
Section: (none)
Explanation
Explanation/Reference:
Explanation:
Improving prompts involves providing specific success criteria and including links to supporting
documentation to give GitHub Copilot more context and direction.
QUESTION 6
What method can be used to interact with GitHub Copilot?
Correct Answer: B
Section: (none)
Explanation
Explanation/Reference:
Explanation:
GitHub Copilot is an AI-powered code completion tool that integrates directly into supported Integrated
Development Environments (IDEs) and code editors, such as Visual Studio Code, JetBrains IDEs,
NeoVim, and others. Developers interact with it through their coding environment, where it provides real-
time code suggestions, autocompletions, and (in some cases) chat-like capabilities via extensions or
plugins (e.g., GitHub Copilot Chat in supported editors).
Evaluation of
A. By using a properly configured GitHub CLIThe GitHub CLI (Command Line Interface) is a tool for
interacting with GitHub repositories and workflows from the terminal, but it is not a method for interacting
with GitHub Copilot. Copilot operates within code editors/IDEs, not through the CLI.Incorrect.
B. By using chat capabilities in NeoVimThis is partially correct. GitHub Copilot can be used in NeoVim with
the appropriate plugin (e.g., the Copilot.vim plugin), and GitHub Copilot Chat--a feature that
allowsconversational interaction--may also be available depending on the setup and version. However,
"chat capabilities in NeoVim" alone is not the primary or standard way to describe Copilot interaction, as it's
more about code suggestions than chat. This is the closest option but not perfectly precise.Partially
correct.
C. From a watch window in an IDE debug sessionThe "watch window" in an IDE is used during debugging
to monitor variable values, not to interact with GitHub Copilot. Copilot provides suggestions while coding,
not specifically in debug sessions or watch windows.Incorrect.
QUESTION 7
How does GitHub Copilot Chat utilize its training data and external sources to generate responses when
answering coding QUESTION?
Correct Answer: C
Section: (none)
Explanation
Explanation/Reference:
Explanation:
GitHub Copilot Chat combines its training data, code from user repositories, and external sources like Bing
to generate comprehensive and relevant responses to coding QUESTION.
QUESTION 8
How can you improve the context used by GitHub Copilot? (Each correct answer presents part of the
solution. Choose two.)
Explanation/Reference:
Explanation:
Improving the context for GitHub Copilot involves opening relevant files in your IDE to provide immediate
context and adding relevant code snippets directly to your prompts to give Copilot specific examples and
information.
QUESTION 9
How can GitHub Copilot be limited when it comes to suggesting unit tests?
A. GitHub Copilot can generate all types of unit tests, including those for edge cases and complex
integration scenarios.
B. GitHub Copilot primarily suggests basic unit tests that focus on core functionalities, often requiring
additional input from developers for comprehensive coverage.
C. GitHub Copilot can handle any complexity in code and automatically generate appropriate unit tests.
D. GitHub Copilot's limitations in generating unit tests can vary based on the IDE version you are using.
Correct Answer: B
Section: (none)
Explanation
Explanation/Reference:
Explanation:
GitHub Copilot often suggests basic unit tests and may not cover all edge cases or complex integration
scenarios, requiring developers to supplement its suggestions.
QUESTION 10
How do you generate code suggestions with GitHub Copilot in the CLI?
A. Write code comments -> Press the suggestion shortcut -> Select the best suggestion from the list.
B. Use copilot suggest -> Write the command you want -> Select the best suggestion from the list.
C. Type out the code snippet -> Use the copilot refine command to enhance it -> Review the suggested
command.
D. Describe the project's architecture -> Use the copilot generate command -> Accept the generated
suggestion.
Correct Answer: A
Section: (none)
Explanation
Explanation/Reference:
Explanation:
In the CLI, GitHub Copilot generates code suggestions by analyzing code comments. You write comments
describing what you want, and Copilot provides relevant code suggestions. You then select the best
suggestion from the list.
QUESTION 11
An independent contractor develops applications for a variety of different customers. Assuming no
concerns from their customers, which GitHub Copilot plan is best suited?
Correct Answer: A
Section: (none)
Explanation
Explanation/Reference:
Explanation:
For an independent contractor, GitHub Copilot Individual is the most suitable and cost-effective plan.
QUESTION 12
What is a likely effect of GitHub Copilot being trained on commonly used code patterns?
Correct Answer: C
Section: (none)
Explanation
Explanation/Reference:
Explanation:
GitHub Copilot is likely to suggest code snippets that reflect common practices in its training data, as it
learns from frequently used patterns.
QUESTION 13
What is the best way to share feedback about GitHub Copilot Chat when using it on GitHub Mobile?
Correct Answer: C
Section: (none)
Explanation
Explanation/Reference:
Explanation:
The best way to share feedback on GitHub Mobile is using the emojis in the Copilot Chat interface, which
allows for direct and immediate feedback.
QUESTION 14