Final answer:
Extreme Programming requires writing tests first, then writing code to pass those tests. This is known as Test Driven Development.
Step-by-step explanation:
The statement is True.
Extreme Programming (XP) is an agile software development methodology that promotes frequent testing and feedback. One of the key practices in XP is Test Driven Development (TDD), which requires writing tests before writing the actual code. TDD follows a red-green-refactor cycle, where tests are written to define the desired behavior, then minimal code is written to make the tests pass, and finally, the code is refactored to improve quality.
For example, if a developer is working on a function to add two numbers, they would write a test case that defines the expected output given certain inputs. Then, they would write the minimum amount of code to pass that test, which could be a simple addition operation. Afterward, they would refactor the code to make it more robust, readable, and maintainable.