设有命令按钮Commandl的单击事件过程,代码如下:
Private Sub Commandl_Click()
Dima(30)As Integer
Fori=1 To 30
a(i)=Int(Rnd*100)
Next
For Each arrltem In a
IfarrltemMod7=0 ThenPrintarrItem;
Ifarrltem>90ThenExitFor
Next
End Sub
对于该事件过程,以下叙述中错误的是( )。
A.a数组中的数据是30个100以内的整数
B.语句ForEacharrItem Ina有语法错误
C.Ifarrltem Mod7=0……语句的功能是输出数组中能够被7整除的数
D.Ifarrltem>90……语句的作用是当数组元素的值大于90时退出For循环
参考答案:B