For all real values of $\theta$, the matrix. $A=\left(\begin{array}{cc}\cos \theta & -\sin \theta \\ \sin \theta & \cos \theta\end{array}\right)$ is
(a) an involutory matrix
(b) an idempotent matrix
(c) a nilpotent matrix of index 2
(d) an invertible matrix