nerdexam
CiscoCisco

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

Software Development and Design

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

#Test-Driven Development#Software Development#Unit Testing#Development Practices

Community Discussion

No community discussion yet for this question.

Full 200-901 PracticeBrowse All 200-901 Questions