-
-
-
Statement and Decision Coverage
Considering the following pseudo-code, calculate the MINIMUM number of test cases for statement coverage, and the MINIMUM number of test cases for decision coverage respectively.READ AREAD BREAD CIF C>A THENIF C>B THENPRINT "C must be smaller than at least one number"ELSEPRINT "Proceed to next stage"ENDIFELSEPRINT "B can be smaller than C"ENDIFA. 3, 3.B. 2, 3.C. 2, 4.D. 3, 2.
-
100% Path and Decision Coverage
How many test cases are needed to have 100% path coverage and decision coverage in the following code.
if (conditionA){ c=c+1}if(conditionB)d=d-1elsee++consider condition A and condition B are independent. -
-
How to calculate Branch and statement coverage for these?
Switch PC onStart “outlook”IF outlook appears THENSend an emailClose outlooka) 1 test for statement coverage, 1 for branch coverageb) 1 test for statement coverage, 2 for branch coveragec) 1 test for statement coverage. 3 for branch coveraged) 2 tests for statement coverage, 2 for branch coveragee) 2 tests for statement coverage, 3 for branch coverageIF A > B THENC = A – BELSEC = A + BENDIFRead DIF...
-
Whitebox Testing Interview Questions
Ans