试题 试卷
题型:单选题 题类:模拟题 难易度:普通
浙江省杭州市2016年信息技术高考模拟卷五
Private Sub Command1_Click()
Dim x As String, i As Integer
For i = 1 To 10
If i Mod x = 1 Then
x = "奇数"
Else
x = "偶数"
Next i
……
End Sub
产生此错误的语句是( )。
a = 1
b = 0
m = a
x = m + b
b = b + 1
y = x + b
它的基本结构属于( )
n = 6
d(1) = 23: d(2) = 31: d(3) = 19: d(4) = 33: d(5) =58: d(6) = 28
k = Abs(d(2) - d(1))
For i = 3 To n
If Abs(d(i) - d(i - 1)) > k Then k = Abs(d(i) - d(i - 1))
Text1.Text = Str(k)
上述程序段执行后,文本框Text1显示的内容是( )
试题篮