D)
As the above matrix has a total 3× 3 = 9 element, then
As each element can take 2 values (0 or 2)
∴ By simple counting principle we can say that total number of possible matrices = total number of ways in which 9 elements can take possible values = = 512
Clearly it matches with option D.
Hence we can say that,
∴ Option (D) is the only correct answer.