(21 )命令按钮 Command1 的单击事件过程的代码如下:Private Sub Command1_Click()Dim a (30 )
(21 )命令按钮 Command1 的单击事件过程的代码如下:
Private Sub Command1_Click()
Dim a (30 ) As Integer
For i=1 To 30
a(i)=Int(Rnd*100)
Next
For Each arrItem In a
If arrItem Mod 7=0 Then Print arrItem;
If arrItem>90 Then Exit For
Next
End Sub
对于该事件过程,下列叙述中错误的是()。
A ) a 数组中的数据是 30 个 100 以内的整数
B )语句 For Each arrItem In a 有语法错误
C ) If arrItem Mod 7=0 …… 语句的功能是输出数组中能够被 7 整除的数
D ) If arrItem>90 …… 语句的作用是当数组元素的值大于 90 时退出 For 循环