The following grid shows the state of a 2D array: (Exhibit) This grid is created with the following code:

By | January 1, 2023

The following grid shows the state of a 2D array:

This grid is created with the following code:

Which line of code, when inserted in place of //line n1, adds an X into the grid so that the grid contains three consecutive X’s?

Correct Answer: B