Interview Questions

Minimum Tests Required for Statement Coverage and Branch Coverage :

Software Testing Exam from International Software Testing Qualifications Board (ISTQB)


(Continued from previous question...)

Minimum Tests Required for Statement Coverage and Branch Coverage :

Minimum Tests Required for Statement Coverage and Branch Coverage :
Read P
Read Q
If p+q > 100
thenPrint “Large”End if
If p > 50 then
Print “pLarge”
End if

a) Statement coverage is 2, Branch Coverage is 2
b) Statement coverage is 3 and branch coverage is 2
c) Statement coverage is 1 and branch coverage is 2
d) Statement Coverage is 4 and Branch coverage is 2

Answer:

(Continued on next question...)

Other Interview Questions