Submitted Questions

  • 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.

    Pradeep

    • Jun 29th, 2015

    Why we did not consider the else for C not > A in case of branch coverage?

    saurabh

    • Jun 27th, 2013

    Answer id A 3,3 For Statement coverage First statement is for Read A, Read B, Read C. 2nd Statement is "Print C must be smaller..." and its else part "Proceed to next stage" 3rd Statement is "Print ...