Question: Task 6: Use test cases to find errors or validate results The code segment below is intended to find the maximum value in a 2D

 Task 6: Use test cases to find errors or validate results

Task 6: Use test cases to find errors or validate results The code segment below is intended to find the maximum value in a 2D array, but it does not always work properly as intended int[] mat=/'initial Values*/: int max-mat[0][0): for(int row=0; rowmax) max=mat[row][col]; ) } IT CA1720- Evidence Topic 1 Page 5 of 6 Sxstem.out.println(max): Give one example for a replacement for / initial Values*/ that enables the code to give incorrect result Give one example for a replacement for /initial Values that enables the code to give correct 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!