Study for the Software Quality Assurance Test. Study with flashcards and multiple choice questions, each question has hints and explanations. Get ready for your exam!

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.


Which statement about module testing is true?

  1. Test cases are always generated randomly

  2. Test cases are supplemented by applying black-box methods to the module's specification

  3. Only white-box methods can be used for module testing

  4. Module testing is not needed when using automated tools

The correct answer is: Test cases are supplemented by applying black-box methods to the module's specification

The statement that test cases are supplemented by applying black-box methods to the module's specification is true because module testing involves validating a module's functionality based on its requirements and specifications. Black-box testing is particularly relevant here, as it focuses on testing the outputs based on given inputs without considering the internal workings of the module. This method allows testers to ensure that the module behaves as expected from the user's perspective, verifying that it meets its specified requirements. This approach is important because it provides a different angle in testing, complementing any white-box testing efforts that might involve examining the internal logic and structure of the code. By incorporating both black-box testing and white-box techniques during module testing, a more thorough and effective validation of the software component can be achieved. Regarding the other options, randomly generating test cases does not guarantee comprehensive coverage of the module's functionality, as strategic, requirement-based test cases are often needed for effective testing. The assertion that only white-box methods can be used overlooks the significant role that black-box testing plays in assessing a module's compliance with its specifications. Lastly, the claim that module testing is unnecessary with automated tools is misleading; automated tools can assist in testing, but they do not eliminate the need for module testing itself, as human oversight and