ITPEC FE Morning October 2023 Question 49
Which of the following is an appropriate description of an extreme programming (XP) practice?
Explanation
Integration of the code and testing are continuously repeated — continuous integration is one of the core XP practices.
Extreme Programming works in short iterations with fast feedback. Its engineering practices include:
- •Test-driven development: developers write unit tests before the code
- •Continuous integration: code is integrated and all tests are run many times a day
- •Refactoring: code is improved whenever needed, kept passing by the tests
- •Pair programming, small releases, and an on-site customer who writes acceptance tests
Answer (b)
Why not others:
- •(a) — XP writes tests first (test-first), not after the code has been created and integrated
- •(c) — XP refactors continuously, as soon as a design can be improved, not deferred to the next iteration
- •(d) — unit tests are written by the programmers; the customer is responsible for acceptance tests
Key rule: In XP, tests come before code, integration happens continuously, and refactoring is constant; the customer owns acceptance tests, the developers own unit tests.
Software Development Management Techniques · AI-written, may contain errors
This question comes from an official ITPEC past paper. ITPEC Practice is an independent study tool and is not affiliated with ITPEC. See the official FE past-paper collection or Report an issue.