Given the code fragment:
Which code fragment, when inserted at line 9, enables the code to print true?
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?