试题 试卷
题型:单选题 题类:常考题 难易度:普通
浙江省之江教育评价联盟2019-2020学年高三上学期信息技术第二次联考试卷
x = ①
t = 0: s = ""
Do While x <> 0
t = ②
x = x \ 10
Loop
If ③ Then Then Then s = "是9的倍数" Else s = "不是9的倍数"
S=0:k=1
Do while k <=4
If 8/k >=3 Then s=s+k
k=k+1
该程序段运行后,变量s和k的值分别是( )
Dim i As Integer, sum As Integer
Dim a(1 To 6) As Integer, b(1 To 6) As Integer
sum = 0
a(6) = 18: a(5) = 7: b(6) = 14: b(5) = 16
For i = 4 To 1 Step -1
a(i) = a(i + 2) - a(i + 1)
b(i) = b(i + 2) - a(i)
If b(i) Mod 3 = 0 Then sum = sum + b(i)
Next i
Text1.Text = Str(sum)
该程序段运行后,文本框Text1中显示的内容是( )
试题篮