Question: Answer those 3 questions correctly, please! WHITE BOX TESTING only needed! 1. Void main (){ 2. 2.Float x,y; 3. Read(x); 4. Read(y); 5. If ((x==0)

Answer those 3 questions correctly, please! WHITE BOX TESTING only needed!

Answer those 3 questions correctly, please! WHITE BOX TESTING only needed! 1.Void main ()\{ 2. 2.Float x,y; 3. Read(x); 4. Read(y); 5. If((x==0) II (y>0)) 6. y=y/x; 7. else x=y+2; 8. write (x); 9.

1. Void main ()\{ 2. 2.Float x,y; 3. Read(x); 4. Read(y); 5. If ((x==0) II (y>0)) 6. y=y/x; 7. else x=y+2; 8. write (x); 9. write(y); 10. } Task 1: Create Control flow graph Task 2: Create at least 2 test cases to calculate Branch coverage. Task 3: Find McCabe's Cyclomatic Complexity using Graph Matrix. Question 2: Consider the following pseudocode: 1.PrintSum (int a, int b) \{ 2. int result =a+b; 3. if ( result >0 ) 4. Printcol("Green", result); 5. else if(result

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!