The correct option is B scalar
Given A is a square matrix as the number of rows and columns are same as n.
We know that the elements aij where i=j lie along the diagonal and the elements aij where i≠j do not lie along the diagonal.
Given, diagonal elements =2 and the rest of the elements =0
Such a diagonal matrix where all diagonal elements are equal, is called a scalar matrix.