Question 670
A reviewer needs a focused diagnosis and proof of resolution for: Generated unit tests hardcode the implementation's current output as the expected answer. Which check-to-acceptance pair addresses that specific condition?
Explanation
Correct Answer
The read-only check (compare expected outputs with an independent product specification or manual calculation) isolates the relevant issue, and the acceptance evidence (a deliberate implementation defect makes the corrected test fail as intended) shows that its corresponding fix worked.
Incorrect Answers
This diagnostic and result belong to a different incident: A Copilot-authored API test accepts a 200 response for both authorized and unauthorized users. For 'Generated unit tests hardcode the implementation's current output as the expected answer', examine compare expected outputs with an independent product specification or manual calculation and confirm that a deliberate implementation defect makes the corrected test fail as intended.
This diagnostic and result belong to a different incident: Copilot proposes disabling certificate verification to fix an HTTPS integration error. For 'Generated unit tests hardcode the implementation's current output as the expected answer', examine compare expected outputs with an independent product specification or manual calculation and confirm that a deliberate implementation defect makes the corrected test fail as intended.
This diagnostic and result belong to a different incident: An AI optimization replaces a reliable loop with parallel requests but the service becomes slower under load. For 'Generated unit tests hardcode the implementation's current output as the expected answer', examine compare expected outputs with an independent product specification or manual calculation and confirm that a deliberate implementation defect makes the corrected test fail as intended.



GitHub Copilot Practice Tests