试题 试卷
题型:单选题 题类:常考题 难易度:普通
浙江省东阳高级中学2018-2019学年高二下学期信息技术开学考试试卷
s = Text1.Text
List1.Clear
len1 = Len(s) ‘①
For i = 1 To len1 ‘②
For j = 1 To len1- i ‘③
List1.AddItem Mid(s, j, i) ‘④
Next j
Next i
运行时发现未输出所有子串,则修改( )
Private Sub Command1_Click()
n = 6
x = 1
For i =1 To n
x = x * i
Next
End Sub( )
Dim a As Integer
a = Val(Text1.Text)
Text1.Text = Str(Sqr(a))
End Sub
程序运行时,单击命令按钮Command1后弹出如图所示的错误信息提示。出现错误的原因可能是( )
图a
图b
x=10
y=3
print(x%y,x**y)
试题篮