Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

GitHub Exam GitHub-Copilot Topic 2 Question 7 Discussion

Actual exam question for GitHub's GitHub-Copilot exam
Question #: 7
Topic #: 2
[All GitHub-Copilot Questions]

Which of the following describes role prompting?

Show Suggested Answer Hide Answer
Suggested Answer: A

Role prompting involves explicitly stating your role or the persona you want GitHub Copilot to adopt within your prompt. This helps Copilot provide more contextually relevant and accurate suggestions. By defining your role (e.g., 'As a senior software engineer,' 'As a technical writer'), you guide Copilot to tailor its responses to align with the expertise and perspective associated with that role. This improves the quality and relevance of the generated code and explanations.


Contribute your Thoughts:

Cary
1 days ago
Option B seems interesting, but I don't think that's what role prompting is about. Controlling the tone of the response is a different technique.
upvoted 0 times
...
Paola
8 days ago
I think option A is the correct answer. Describing your role in the prompt helps the AI assistant understand the context and provide more relevant suggestions.
upvoted 0 times
...

Save Cancel