The correct answer is D.
The given matrix of the order 3 x 3 has 9 elements and each of these elements can be either 0 or 1.
Now, each of the 9 elements can be filled in two possible ways.
Therefore, by the multiplication principle, the required number of possible matrices is 29 = 512