Question: Generate test cases for the following code by using basic path testing. Draw CFG. a) 1914119 c) d) int test_prime() { 1919641 } int

Generate test cases for the following code by using basic path testing. Draw CFG. a) 1914119 c) d) int test

Generate test cases for the following code by using basic path testing. Draw CFG. a) 1914119 c) d) int test_prime() { 1919641 } int x=1,n.i; 191964119 } How many basic paths for the CFG? List the basic paths. FCA119 Generate test cases from it. scanf("%d",&n); if(n==2) else else printf("prime"); } 1919641 if(x==0) 1964119 for(i=2;i

Step by Step Solution

3.45 Rating (148 Votes )

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 Programming Questions!