试题 试卷
题型:单选题 题类:常考题 难易度:普通
浙江省桐乡市茅盾中学2015-2016学年高一下学期期中考试信息技术试题
Private Sub Command1_Click()
Dim x As String, i As Integer
For i = 1 To 10
If i Mod x = 1 Then
x = "奇数"
Else
x = "偶数"
Next i
……
End Sub
产生此错误的语句是( )。
执行该算法,当x的值为5时( )
Dim a(1 To 5) As Integer, i As Integer
a(1)=1: a(2)=1
For i=3 To 5
a(i)=a(i-1)+a(i-2)
Text1.Text=Str(a(i-1))
该程序段运行后,文本框Textl中显示的内容是( )
For i= 1 To 6
a(i)=i+1
该程序段运行后数组元素a(3)的值是:( )
PRIVATE SUB FORMCLICK
FOR I = 3 TO {#blank#}1{#/blank#}
F=0
FOR J= 2 TO I-1
IF {#blank#}2{#/blank#} THEN
F=1
EXIT FOR
END IF
NEXT J
IF F=0 THEN {#blank#}3{#/blank#}
{#blank#}4{#/blank#}
END SUB
试题篮