Question 590
A reviewer needs a focused diagnosis and proof of resolution for: A maintainer needs documentation for a poorly understood function but Copilot writes a generic paragraph unrelated to its arguments. Which check-to-acceptance pair addresses that specific condition?
Explanation
Correct Answer
The read-only check (read the current function signature, exceptions, side effects and representative tests) isolates the relevant issue, and the acceptance evidence (the docstring accurately describes parameters, return values, exceptions and side effects) shows that its corresponding fix worked.
Incorrect Answers
This diagnostic and result belong to a different incident: A team modernizes a legacy synchronous HTTP client using Copilot but loses timeout and retry semantics. For 'A maintainer needs documentation for a poorly understood function but Copilot writes a generic paragraph unrelated to its arguments', examine read the current function signature, exceptions, side effects and representative tests and confirm that the docstring accurately describes parameters, return values, exceptions and side effects.
This diagnostic and result belong to a different incident: A suggested refactor converts a stateful method to a pure function but changes the timing of emitted events. For 'A maintainer needs documentation for a poorly understood function but Copilot writes a generic paragraph unrelated to its arguments', examine read the current function signature, exceptions, side effects and representative tests and confirm that the docstring accurately describes parameters, return values, exceptions and side effects.
This diagnostic and result belong to a different incident: An onboarding engineer asks for a summary of an unfamiliar service but the answer invents dependencies. For 'A maintainer needs documentation for a poorly understood function but Copilot writes a generic paragraph unrelated to its arguments', examine read the current function signature, exceptions, side effects and representative tests and confirm that the docstring accurately describes parameters, return values, exceptions and side effects.



GitHub Copilot Practice Tests