试题 试卷
题型:单选题 题类:常考题 难易度:容易
浙江省温州市求知中学2018-2019学年高一下学期信息技术第二次月考试卷
a(I)=68: a(2)=88: a(3)=76: a(4)= 60: a(5)=98: a(6)=100: a(7)= 64: a(8)=85: a(9)=99: a(10)=59
For i=1 To 9
b(i)=Abs(a(i+1)-a(i))
c(b(i)\10)= c(b(i)\10) + 1
Next i
For i=0 To 10
If c(i)> 0 Then Label1.Caption = Label1.Caption + "" + Str(c(i))
数组c各元素初值为0,执行该程序段,标签Label 1上显示的内容是( )
Private Sub Command1_Click()
Dim a As Integer, b As Integer
Dim c As Integer '①
a= Val(Text1. Text) '②
b = Val(Text2. Text)
c=a + b '③
Label1. Caption ="a + b="+c '④
End Sub
s = ['12','22','23','31','123','224']
res =s[0]
for i in range(1,len(s)):
if s[i] >= res:
res =s[i]
print(res)
执行上述程序后,输出的结果是( )
试题篮