解:
∵ 數(shù)據(jù)-1,x,0,1,-2的平均數(shù)是0,
∴ $\frac{-1 + x + 0 + 1 - 2}{5} = 0$,
解得 $x = 2$。
這組數(shù)據(jù)為-1,2,0,1,-2。
方差 $s^2 = \frac{1}{5}[(-1-0)^2 + (2-0)^2 + (0-0)^2 + (1-0)^2 + (-2-0)^2]$
$= \frac{1}{5}[1 + 4 + 0 + 1 + 4] = \frac{10}{5} = 2$。
答案:B