Which of the following is the appropriate set of test cases, (A, B) when the part of a program shown is tested by decision condition coverage…

Which of the following is the appropriate set of test cases, (A, B) when the part of a program shown is tested by decision condition coverage (branch coverage)?

if(A OR B) X = X+1;
else X = X-1;
  1. a) {(False, True)}
  2. b) {(False, True), (True, False), (True, True)}
  3. c) {(False, True), (True, False)}
  4. d) {(False, False), (True, True)}

From the Combined Bank Assistant Programmer (CSE) March 2021 – Preliminary exam, question 33 of 86.

More from this paper