试题 试卷
题型:单选题 题类: 难易度:容易
新疆伊犁哈萨克自治州霍城县2023-2024学年高一上学期信息技术10月月考试卷
A = 4
IF A<4 Then
A = A-2
Else
Print A
EndIF
m=1:k=1
For i=2 To 10
If a(i)<a(i-1)Then
k=k+1
If k>m Then m=k
k=1
End If
Next i
Text1.Text=Str(m)
End Sub
执行该程序段,文本框Text1中显示的是 ( )
a = 1
For p=1 to 50
If p Mod 3 = 0 Then a = a + 1
Next p
a(1) = "231": a(2) = "34": a(3) = "23": a(4) = "234": a(5) = "123"
For i = 1 To 2
For j = 1 To 5 - i
If a(j) > a(j + 1) Then t = a(j): a(j) = a(j + 1): a(j + 1) = t
Next j
Text1.text=a(j)
执行该程序段后,文本框Text1显示的内容为( )
试题篮