Examers.io
ExamsOrganizationsHow it worksPricingHelp & FAQ
GitHub logo

GitHubCopilot Certification

Domain 4Objective 1

Craft Effective Prompts GH-300 Practice Questions (Page 2)

Part of the Apply prompt engineering and context crafting domain, which accounts for 10-15% of the GH-300 exam.

24questions here
5free pages
6concepts
10-15%of the exam

Questions 6–10

  1. 6foundation · easy

    In a chat-based AI, what role do system instructions play in determining context?

    Select an answer first
  2. 7foundation · easy

    What is the primary purpose of including a few examples in a few-shot prompt?

    Select an answer first
  3. 8application · medium

    A developer is using GitHub Copilot to generate a function that calculates the total price of items in a shopping cart. The cart includes items with different tax rates. What context should be included in the prompt?

    Select an answer first
  4. 9application · medium

    A developer is using GitHub Copilot to generate a function that parses a log file and extracts error messages. They have a few examples of log lines and the corresponding error messages. What is the best way to use these examples?

    Select an answer first
  5. 10foundation · easy

    Which of the following is a few-shot prompt?

    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.