试题 试卷
题型:填空题 题类:常考题 难易度:普通
常量、变量、函数和表达式练习题(填空题部分)
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))
Next i
Text1.Text = Str(k)
上述程序段执行后,文本框Text1显示的内容是( )
Dim a(1 To 15) As Integer
Private Sub Form_Load()
Dim i As Integer, t As Integer
Dim s1 As String, s2 As String
Randomize
s1 = ""
For i = 1 To 15
a(i) = ①
s1 = s1 + Str(a(i))
Text1.Text = s1
End Sub
Private Sub Com1_Click()
s2 = ""
s2 = ②
Text2.Text = s2
试题篮