GitHub Copilot Certification — Question 46
What is the impact of the “Fill-In-the-Middle” (FIM) technique on GitHub Copilot’s code suggestions?
Answer options
- A. Allows Copilot to generate suggestions based only on the prefix of the code.
- B. Ignores both the prefix and suffix of the code, focusing only on user comments for context.
- C. Improves suggestions by considering both the prefix and suffix of the code, filling in the middle part more accurately.
- D. Restricts Copilot to use only external databases for generating code suggestions.
Correct answer: C
Explanation
The correct answer, C, is accurate because the 'Fill-In-the-Middle' technique leverages both the prefix and suffix to create better suggestions. Option A is incorrect as it only considers the prefix, while B ignores important code elements. Option D is also wrong because it does not restrict Copilot to external databases.