Question: part c no:3 For the program given below: (a) Draw the Control Flow Graph (CFG) (b) Find its Cyclomatic Complexity (CC). (c) How many test

part c no:3  part c no:3 For the program given below: (a) Draw the

For the program given below: (a) Draw the Control Flow Graph (CFG) (b) Find its Cyclomatic Complexity (CC). (c) How many test cases are required for each of: 1- Statement testing 2- Branch testing 3- Path testing 4- Exhaustive testing assuming that the maximum number of records is 5. (justify your answers). (d) Give an example set for test cases of the branch testing. Program Q4 A = 0; B = 0; Read new_rec; {read a new record (X, Y)} Repeat While A > = 0 OR B > = 0 Do If (A 0 Then Print A, X Else Print B, Y EndIf Read new_rec; Until End-Of-File End

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!