Skip to content
CAPMMedium

CAPM Practice: Determine how to prepare and execute task management steps

Question 28 of 60 in Determine how to prepare and execute task management steps

Pick an answer below — you'll get the explanation instantly, no signup.

What is 'test-driven development' (TDD) as a task execution practice?
Show answer & explanation

Correct answer: Writing automated tests before writing the code that makes those tests pass

Explanation

TDD is a development discipline where tests are written first (they initially fail), then minimal code is written to make them pass, then code is refactored. This ensures testability, clarifies requirements, and produces higher-quality code.

**Why not B:** Testing only after the entire system is built describes a late, test-last approach. TDD is the opposite — tests are written before the code, so defects surface immediately rather than at the end.

**Why not C:** TDD is a developer practice, not a shift of leadership to QA testers. The developers writing the code write the tests first as part of their own workflow.

**Why not D:** TDD relies on automated tests that can be rerun with every change. Exclusive manual testing would make the rapid test-code-refactor cycle impractical.

Key Concept

This question covers Determine how to prepare and execute task management steps under Determine how to prepare and execute task management steps (Agile Frameworks/Methodologies).

Share:

All 1,500+ CAPM questions are free

Sign up to track your progress, see detailed analytics, and get personalized study recommendations.

Sign Up Free