200-901 · Question #628
200-901 Question #628: Real Exam Question with Answer & Explanation
The correct answer is C: The new code meets the test requirements.. In the test-driven development (TDD) cycle, the green phase indicates that the new code passes the previously written test. This means the code successfully fulfills the test requirements, confirming that it behaves as intended. The TDD cycle consists of three phases: red (write
Question
What is indicated when the green phase of the test-driven development cycle is complete?
Options
- AThe unit test of the new code has written functions as intended.
- BThe new code is readable and maintainable.
- CThe new code meets the test requirements.
- DThe new code caused a break in the existing functionality.
Explanation
In the test-driven development (TDD) cycle, the green phase indicates that the new code passes the previously written test. This means the code successfully fulfills the test requirements, confirming that it behaves as intended. The TDD cycle consists of three phases: red (write a failing test), green (write code to pass the test), and refactor (improve the code's quality without changing functionality).
Topics
Community Discussion
No community discussion yet for this question.