设 $A 、 B$ 为 3 阶非 0 矩阵, 满足 $A B=0$, 其中 $B=\left(\begin{array}{ccc}1 & -1 & 1 \\ 2 a & 1-a & 2 a \\ a & -a & a^2-2\end{array}\right)$, 则
$ \text{A.}$ $a=-1$ 时, 必有 $r(A)=1$
$ \text{B.}$ $a \neq-1$ 时, 必有 $r(A)=2$
$ \text{C.}$ $a=2$ 时, 必有 $r(A)=1$
$ \text{D.}$ $a \neq 2$ 时, 必有 $r(A)=2$