logo
Exam overview and study plan

GH-300 Practice Questions

GitHub Copilot

Read questions, check verified answers and discuss the reasoning. Use reading options to shape your revision, or switch to the simulator for timed practice.

View 57 free questions

57 questions in this view

Page 1 of 10

Question 1

In which two ways can GitHub Copilot facilitate a smoother learning experience when diving into a new programming language? Each correct answer presents part of the solution.

NOTE: Each correct answer is worth one point.

Select an answer above, then submit your vote. Reading or practicing does not cast a vote.

Question 2

You are deploying a new development environment to a Windows 11 device.

 

You need to install GitHub Copilot CLI, and then start an interactive GitHub Copilot CLI session.

 

Which command should you run for each requirement? To answer, select the appropriate options in the answer area.

 

NOTE: Each correct selection is worth one point.

To install GitHub Copilot CLI:
To start the interactive session:

Question 3

You use GitHub Copilot Chat to generate code and documentation for a project.

 

You need to improve the clarity and quality of the GitHub Copilot Chat-generated output.

 

Which type of prompt and prompt engineering technique should you use? To answer, select the appropriate options in the answer area.

 

NOTE: Each correct selection is worth one point.

Prompt type:
Prompt technique:

Question 4

You start GitHub Copilot CLI from a directory named /repo/app.

 

You store test files in a directory named /repo/tests.

 

You need to add /repo/tests as a trusted directory without restarting GitHub Copilot CLI. The solution must ensure that GitHub Copilot can access and modify the files.

 

How should you complete the command? To answer, select the appropriate options in the answer area.

 

NOTE: Each correct selection is worth one point.

Question 5

What role does chat history play in GitHub Copilot’s code suggestions?

Select an answer above, then submit your vote. Reading or practicing does not cast a vote.

Question 6

Identify two steps involved in the life cycle of a GitHub Copilot code suggestion? Each correct answer presents part of the solution.

NOTE: Each correct answer is worth one point.

Select an answer above, then submit your vote. Reading or practicing does not cast a vote.