Click to reopen instructions.

This is FRQ Question 4 from the 2021 exam. For the full instructions you will need to look at the PDF starting on page 14.

Questions of

“(a) Write the method isNonZeroRow, which returns true if and only if all elements in row r of a two-dimensional array array2D are not equal to zero.” (See the rest of the instructions for this question in the PDF starting on page 15.)

“(b) Write the method resize, which returns a new two-dimensional array containing only rows from array2D with all non-zero values.” (See the rest of the instructions for this question in the PDF starting on page 16.)