Enhance your understanding of Software Quality Assurance. Engage with our flashcards and multiple choice questions, each with helpful hints and explanations. Ensure success in your exam preparation!

Each practice test/flash card set has 50 randomly selected questions from a bank of over 500. You'll get a new set of questions each time!

Practice this question and more.


Select the statements that match the Extreme unit testing type (choose two).

  1. All code modules must have primary tests before coding begins.

  2. Acceptance tests should be created before coding.

  3. The primary tests must be defined and created before coding the module.

  4. It determines whether the application meets its functional and usable requirements.

The correct answer is: All code modules must have primary tests before coding begins.

In the context of Extreme Programming (XP) and its approach to unit testing, the correct statements match the philosophy of ensuring that testing drives the development process. One of the fundamental principles of XP is that all code modules should have tests established prior to any actual coding. This approach ensures that developers have a clear set of expected outcomes for their code, which enhances the quality of the software from the very beginning. Establishing primary tests before coding promotes a mindset where developers write code to meet these predefined conditions, ultimately resulting in higher-quality modules. Additionally, acceptance tests are a crucial part of the XP framework as they set the criteria for what constitutes a successful implementation. By formulating these tests ahead of coding, the development team can ensure that the end product meets the end user's expectations and requirements. This preemptive testing strategy aligns with XP’s emphasis on customer collaboration and iterative development, contributing to continuous improvement and reducing the chances of significant issues arising later in the development cycle. The other statements either do not reflect these principles or pertain more generally to testing practices outside the specific framework of XP when it comes to unit testing philosophies.