SOFTWARE ENGINEERING

SOFTWARE TESTING

TEST PLAN AND TEST CASE DEVELOPMENT

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
If you have a section of code that has one simple IF statement, how many tests will be needed to achieve 100% decision coverage?
A
1
B
2
C
5
D
Unknown with this information
Explanation: 

Detailed explanation-1: -Since 100% decision coverage requires at least one test case for each decision outcome, two tests are needed.

Detailed explanation-2: -4 test cases are required for 100% decision coverage.

Detailed explanation-3: -So to achieve 100% decision coverage we will need minimum 5 test cases.

There is 1 question to complete.