Question 11
Which GitHub Copilot plan allows for prompt and suggestion collection?
- GitHub Copilot Individuals
- GitHub Copilot Business
- GitHub Copilot Enterprise
- GitHub Copilot Codespace
Question 12
How do you generate code suggestions with GitHub Copilot in the CLI?
- Write code comments –> Press the suggestion shortcut –> Select the best suggestion from the list.
- Use ‘gh copilot suggest’ –> Write the command you want –> Select the best suggestion from the list.
- Type out the code snippet –> Use the copilot refine command to enhance it –> Review the suggest command.
- Describe the project’s architecture –> Use the copilot generate command –> Accept the generated suggestion.
Question 13
How does GitHub Copilot suggest code optimizations for improved performance?
- By analyzing the codebase and suggesting more efficient algorithms or data structures.
- By automatically rewriting the codebase to use more efficient code.
- By enforcing strict coding standards that ensure optimal performance.
- By providing detailed reports on the performance of the codebase.
Question 14
What practices enhance the quality of suggestions provided by GitHub Copilot? (Choose three.)
- Clearly defining the problem or task
- Including personal information in the code comments
- Using meaningful variable names
- Providing examples of desired output
- Use a .gitignore file to exclude irrelevant files
Question 15
How does GitHub Copilot Chat ensure that a function works correctly?
- By suggesting assertions based on the code’s context and semantics.
- By automatically writing all the tests for the function.
- By working the implementation code for the function.
- By executing the test cases to validate the correctness of the code.