Question: i . Draw the control flow graph of the code. ii . List down the possible test paths in order to achieve 1 0 0

i. Draw the control flow graph of the code.
ii. List down the possible test paths in order to achieve 100% test coverage for
statement coverage. (test path should be written using this format: Sn->Cn->..)
iii. List down the possible test paths in order to achieve 100% test coverage for
decision coverage. (test path should be written using this format: Sn->Cn->..)
iv. List down the possible test paths in order to achieve 100% test coverage for branch
coverage. (test path should be written using this format: Sn->Cn->..)
v. Calculate Cyclomatic Complexity value for path coverage. You may use any of
cyclomatic metric formula.
 i. Draw the control flow graph of the code. ii. List

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!