200-901 · Question #232
What is a benefit of test-driven development?
The correct answer is B. increased code quality. TDD's primary benefit is increased code quality. Because tests are written before code, every piece of functionality has a corresponding test, ensuring correctness and reducing bugs. TDD does not inherently involve early customer involvement (that's Agile/Scrum), does not produce
Question
What is a benefit of test-driven development?
Options
- Aearly customer involvement
- Bincreased code quality
- Cfaster releases that have minimal features
- Dstrict adherence to product requirements
How the community answered
(27 responses)- A4% (1)
- B93% (25)
- C4% (1)
Explanation
TDD's primary benefit is increased code quality. Because tests are written before code, every piece of functionality has a corresponding test, ensuring correctness and reducing bugs. TDD does not inherently involve early customer involvement (that's Agile/Scrum), does not produce faster minimal releases (that's MVP/CD), and does not enforce strict requirements adherence beyond what the tests cover.
Topics
Community Discussion
No community discussion yet for this question.