Which of the following statement(s) is/are TRUE with regard to software…
2017
Which of the following statement(s) is/are TRUE with regard to software testing ?
I. Regression testing technique ensures that the software product runs correctly after the changes during maintenance.
II. Equivalence partitioning is a white-box testing technique that divides the input domain of a program into classes of data from which test cases can be derived.
- A.
only I
- B.
only II
- C.
both I and II
- D.
neither I nor II
Attempted by 229 students.
Show answer & explanation
Correct answer: A
Answer: only statement I is true.
Explanation:
Why statement I is true: Regression testing is the practice of re-running previously executed tests after changes (such as bug fixes or maintenance) to confirm that existing functionality still works and no new defects were introduced.
Why statement II is false: Equivalence partitioning is a black-box testing technique. It divides the input domain into equivalence classes so that test cases from each class are expected to behave similarly, reducing the total number of tests. It does not rely on internal code structure, so it is not white-box.
Short example: For an input field accepting values 1–100, equivalence classes could be values below 1, values between 1 and 100, and values above 100; tests pick representative values from each class.