试题 试卷
题型:单选题 题类:常考题 难易度:普通
浙江省嘉兴市第一中学2017-2018学年高二下学期信息技术期中考试试卷
执行该流程图后,输出b的结果是( )
Private Sub Command1_click()
Dim s as integer,I as integer
S=0
For i=1 to 20 step 3
s=s+(-1)^i*i
Next i
Label1.caption=str(i)
Label2.caption=str(s)
End Sub
k = 1
For j = 2 To 100
If a(j) > a(k) Then k = j
Next j
x = a(k) 该程序段执行后,变量x中存储的是( )
该算法完成的功能是( )
Dim a(1 To 5) As Integer Randomize
s = 0
Do While s<5
t = Int(Rnd * 5 + 1) a(t) = a(t) + 1
If a(t) = 1 Then s = s + a(t)
Loop
已知数组a(1)到 a(5)的初值均为0,该段程序运行后,下列说法正确的是( )
试题篮