CS FundamentalsVery hardProduct-company placement · ISTQB-style

For the decision (A or B) and C, which test set (written as A, B, C) achieves MC/DC with only four tests?

  1. A. (T,F,T), (F,F,T), (F,T,T), (T,F,F)
  2. B. (T,T,T), (F,F,T), (T,F,F), (F,T,F)
  3. C. (T,F,T), (F,F,T), (T,T,F), (F,T,T)
  4. D. (T,F,T), (F,T,T), (F,F,F), (T,T,F)

Correct answer: A. (T,F,T), (F,F,T), (F,T,T), (T,F,F)

Each condition needs a pair differing only in that condition with different outcomes: A by (T,F,T)/(F,F,T), B by (F,T,T)/(F,F,T), C by (T,F,T)/(T,F,F). Each other set lacks such a pair for at least one condition, for example the third has none for C.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic