
GitHubCopilot Certification
Domain 4Objective 2
Engineer Prompts for Performance GH-300 Practice Questions (Page 3)
Part of the Apply prompt engineering and context crafting domain, which accounts for 10-15% of the GH-300 exam.
19questions here
4free pages
3concepts
10-15%of the exam
Questions 11–15
- 11
A developer is using GitHub Copilot Chat to debug a Python script that is throwing a `KeyError`. The developer first asks, "Why is this code failing?" and Copilot identifies the missing key in a dictionary. The developer then wants Copilot to fix the issue. What is the best follow-up prompt?
Select an answer first - 12
A developer is using GitHub Copilot Chat to work on a React component. In the first turn, they ask, "Explain the state management in this component." Copilot explains the `useState` and `useEffect` hooks. In the next turn, the developer wants to add a new feature that resets the state when a prop changes. What is the best follow-up prompt?
Select an answer first - 13
How does GitHub Copilot use chat history to improve responses in a multi-turn conversation?
Select an answer first - 14
Which sequence correctly describes the prompt process flow for using GitHub Copilot?
Select an answer first - 15
A developer is using GitHub Copilot Chat to refactor a legacy JavaScript file. In the first turn, they asked, "Explain what this function does." Copilot provided a detailed explanation. In the next turn, the developer wants Copilot to rewrite the function using modern ES6 syntax. How should the developer phrase the follow-up prompt to best leverage chat history?
Select an answer first
Finished these 5 questions?
Review the revealed explanations, or continue through the curriculum.
Free Basic Practice is a study aid with revealable answers — not a scored exam. Examers.io is independent and not affiliated with or endorsed by GitHub. “GH-300” is a trademark of its owner, used for identification only.