试题 试卷
题型:单选题 题类:常考题 难易度:普通
浙江省稽阳联谊学校2020届高三上学期信息技术12月联考试卷
If a>b Then
max=a
Else
max=b
.
Dim x As Integer, y As Integer, s As Integer
x=3:y=4
If x<y And y<0 Then
s=x Mod y
ElseIf y>0 and y<x Then
s=x*y
ElseIf x=0 Or y=0 Then
s=x+y
s=0
End If
该程序段运行之后,变量s的值为( )
For i = 1 To Len(Text1.Text)
c = Mid(Text1.Text, i, 1)
If c >= "0" And c <= "9" Then c = Chr(Asc(c) + 1)
If c >= "A" And c <= "Z" Then c = Chr(Asc(c) + 32)
s =s + c
Next i
若文本框Text1的内容为“Number 2468!”执行程序后,变量s的值为( )
Private Sub Command1_Click()
Dim i As Integer
Dim a(10)As Integer ‘①
For i=1 To 10 ‘②
a(i)=Rnd* 100 ‘③
Label1.Caption=Str(a(i)) ‘④
End Sub
试题篮