Question: part c no:2 For the program given below: Draw the Control Flow Graph (CFG) Find its Complexity (CC). How many test cases are required for
For the program given below: Draw the Control Flow Graph (CFG) Find its Complexity (CC). How many test cases are required for each of: Statement testing Branch testing Path testing. Exhaustive testing assuming that the maximum number of records is 5. (Justify your answers). Give an example set for test cases of the branch testing. Program Q_4 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 End If Read new_rec; Until End - of -File End
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
