GH-300: Copilot Chat & Slash Commands
Copilot Chat & Slash Commands is one of the skill areas tested on the GitHub Copilot (GH-300) exam. Below are free GH-300 practice questions with worked answers and a concept diagram — each with a plain-language explanation. Practice the first 10 questions of GH-300 free, no signup.
The concept, in one picture
2 free GH-300 Copilot Chat & Slash Commands questions
When a developer asks GitHub Copilot Chat a coding question, which description best captures where its answer comes from?
- It answers using only what the underlying model learned during training.
- It answers mainly by running Bing web searches.
- ✓ It draws on its training data together with code in the user's repositories and external sources such as Bing.
- It answers strictly from documentation the user supplies.
Copilot Chat blends several inputs: the model's training data, the code in the user's own repositories for context, and external sources like Bing. Combining these produces answers that are both relevant and grounded in the developer's project.
The other options each name only a single source, which understates how Copilot Chat gathers context.
A developer highlights a function and runs the /tests slash command in Copilot Chat. What does this command do?
- Writes detailed test documentation for the file.
- ✓ Generates unit tests for the selected code.
- Wires the project up to an external testing framework.
- Runs the existing test cases to surface bugs.
The /tests command generates unit tests covering the code the developer has selected, giving them a starting suite to validate behavior.
- It does not write documentation, configure external frameworks, or execute existing tests; its job is to author new unit tests.
Practice GH-300 free
The first 10 questions of every exam are free. No signup, no email wall.
Start practicing →Get a free GH-300 study plan by email
A short plan to work through GH-300 by skill area, plus a note when we add new questions. Optional — the practice above stays free. No spam, unsubscribe anytime.