试题 试卷
题型:单选题 题类:常考题 难易度:普通
浙江省东阳市第二高级中学2014-2015学年高一上学期信息技术期末考试试卷
A = 4
IF A<4 Then
A = A-2
Else
Print A
EndIF
For i=1 to n
⑴ Next i
For i=1 to n-1 k=i
For j=i+1 To n
If ⑵ Then k=j Next j
If k <> i Then
⑶ End if
Next i
上述程序段3个方框处的代码分别为( )
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
运行程序后,变量sum 的值是( )
Dim a(1 To 10) As Integer,b(1 To 10) As Integer
k = 0
For i = 10 To 1 Step -1
Do While b(i) <> 0 k = k + 1
a(k) = i: b(i) = b(i) - 1
Loop
若 a(1)~a(10)的值分别为 7,9,8,1,9,4,4,2,1,1,则运行以上程序后,下列说法正确的是( )
试题篮