Skip to main content

Matrix Quiz

Editorial

16 questions across the two Matrix lessons and the section's problems: cells as coordinates and as one index, neighbours and bounds, the diagonals and the spiral, the transpose and Sudoku's boxes; then turning a matrix in place, Set Matrix Zeroes' marks and Game of Life's two bits. Pick an answer to see whether it's right and why. Nothing is saved, so you can take it again.

If one trips you up, its lesson is Introduction to Matrices or Changing a Matrix in Place.

Quiz

1 / 16

Multiple choice

A 6 × 11 matrix is stored row after row in one flat array, counting from 0. At what index is cell (4, 9)?