Home > database >  Statement Coverage and Decision Coverage - I am not able conclude which is the correct answer.-Need
Statement Coverage and Decision Coverage - I am not able conclude which is the correct answer.-Need

Time:02-17

Do
If X<10
X=X*4
Endif
X=X 1
Until X>40

As per my knowledge of Statement coverage and branch coverage Answer should be (a) .But to be very frank still flow chart for this is not clear to me. Can someone pls help me with flow chat.

CodePudding user response:

Flow chart with one test case to achieve 100% statement and decision coverage. Btw, I called it branch coverage (aka decision cov)

Flow chart showing 100% statement and decision coverage

  • Related