CS FundamentalsHardProduct-company placement

After a change to functions f1, f3 and f5, a team wants the smallest regression subset that exercises all three. Tests cover: T1 {f1, f2}, T2 {f2, f3, f4}, T3 {f1, f4}, T4 {f3, f5}. Which subset works and is minimal?

  1. A. T2 and T3
  2. B. T1 and T2
  3. C. T1, T2 and T4
  4. D. T3 and T4

Correct answer: D. T3 and T4

Only T4 covers f5, and it also covers f3; adding T3 (or T1) covers f1, so two tests suffice. T2 and T3 miss f5, T1 and T2 miss f5, and T1, T2, T4 works but is not minimal.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic