试题 试卷
题型:单选题 题类:常考题 难易度:普通
浙江省“超级全能生”2021届高考选考科目9月信息技术联考试卷
s = "2019Nian12yue3Ri"
For i = Len(s)-1 To 1 step -1
If Mid(s, i, 1) <= "9" And Mid(s, i + 1, 1) >= "A" Then
sum= sum+ Val(Mid(s, i, 1))
End If
Next i
运行程序后,变量sum 的值是( )
Dim c As Integer,a(0 To 5) As Integer
For i = 1 To 5
a(i) = i
c = 0
x = Int(Rnd * 5 + 1)
If a(x Mod 5) = i + 2 Then c = c + 1
If c = x Then Exit For
i = i - 1
运行该程序后,变量c的值不可能是( )
试题篮