Question: P e Search peyton his Code Coverage Practice - Protected View - Saved to this PC- References Mailings Review View Help Pic Home Insert Design

 P e Search peyton his Code Coverage Practice - Protected View

P e Search peyton his Code Coverage Practice - Protected View - Saved to this PC- References Mailings Review View Help Pic Home Insert Design Layout Share Comments Consider the following program that uses binary search to check whether the input array contains a specific Input value public clase mantearch public boolean wat inaint 11 , ist il leth-0) Iru 12 0) , B2) return false; lat 1 - 0 ist bag - c.length - 1 AK walu LOH high! ! !/truel, talvel int side - how high ) 11 laiddll 1/bit), barra 11 leiddlell //bitrus), bort a 410 013 return Lui 1 212 return falar 1 1 Draw the control flow graph of the program 2 Complete the following coverage matrix for both slalement (marked on the left side of the code) and decision coverage (marked on the right side of the code) of the following four tests: i. 11-1.2.3),b=2 ii. L2: -(1,2,3), 6-1 iii. 31a-{1,2,3) b-3 iv. t4: a-{1,2,3,- SI 32 33 34 5 6 7 8 9 10 11 12 13 b1 b2 63 64 65 66 b7bB 11 t2 t3 14 3. Find appropriate test input a and b to achieve loop coverage. Crocus 100% Page 1 of 221 wurde Type here to search o e 4-26 PM 1/28/2011 P e Search peyton his Code Coverage Practice - Protected View - Saved to this PC- References Mailings Review View Help Pic Home Insert Design Layout Share Comments Consider the following program that uses binary search to check whether the input array contains a specific Input value public clase mantearch public boolean wat inaint 11 , ist il leth-0) Iru 12 0) , B2) return false; lat 1 - 0 ist bag - c.length - 1 AK walu LOH high! ! !/truel, talvel int side - how high ) 11 laiddll 1/bit), barra 11 leiddlell //bitrus), bort a 410 013 return Lui 1 212 return falar 1 1 Draw the control flow graph of the program 2 Complete the following coverage matrix for both slalement (marked on the left side of the code) and decision coverage (marked on the right side of the code) of the following four tests: i. 11-1.2.3),b=2 ii. L2: -(1,2,3), 6-1 iii. 31a-{1,2,3) b-3 iv. t4: a-{1,2,3,- SI 32 33 34 5 6 7 8 9 10 11 12 13 b1 b2 63 64 65 66 b7bB 11 t2 t3 14 3. Find appropriate test input a and b to achieve loop coverage. Crocus 100% Page 1 of 221 wurde Type here to search o e 4-26 PM 1/28/2011

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!