Question 530
For this GitHub Copilot case, which implementation decision is best supported? A new developer wants Copilot to write a routine from an explicit textual requirement only.
Explanation
Correct Answer
Zero-shot prompting needs sufficiently precise task instructions without demonstrations. Acceptance evidence: The result passes independently created acceptance tests.
Incorrect Answers
A comparison prompt should request decision evidence, not only a recommendation. That recommendation is relevant to a different task: A teammate needs a structured design choice between two database options. In this case the main need is: A new developer wants Copilot to write a routine from an explicit textual requirement only.
Few-shot examples help constrain desired behavior and formatting. That recommendation is relevant to a different task: An engineer wants a function generated from a specification but has no sample calls. In this case the main need is: A new developer wants Copilot to write a routine from an explicit textual requirement only.
Explicit negative constraints prevent unintended interface changes. That recommendation is relevant to a different task: A function must remain backward compatible but the initial prompt omits compatibility rules. In this case the main need is: A new developer wants Copilot to write a routine from an explicit textual requirement only.