Question: Use the following program fragment for questions a-e below. public static void fl (int x, int y) f if (x 0) { f40; } else

 Use the following program fragment for questions a-e below. public static

Use the following program fragment for questions a-e below. public static void fl (int x, int y) f if (x 0) { f40; } else {f50; }; } public static void f40 {...f60)...J public static void f50 (.. f60.. public static void f60 Use the following test inputs: t1 fl (0,0) t2 fl (1,1) t3 fi (o, 1 t4 fl (3,2) t5 -fl (3,4) a) Draw the call graph for this program fragment. b) Give the path in the graph followed by each test. c) Find a minimal test set that achieves Node Coverage. d) Find a minimal test set that achieves Edge Coverage e) Give the prime paths in the graph. Which prime path is not covered by any of the tests above

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!