Page 1040 - AP Computer Science A, 7th edition
P. 1040
34. (D) Segment I is a row-by-row traversal; segment II is a column-by-column traversal. Each achieves the correct postcondition. Segment III traverses the matrix but does not alter it. All that is changed is the local variable element. You cannot use this kind of loop to replace elements in an array.