题型:填空题 题类:常考题 难易度:困难
浙江省台州市黄岩第二高级中学2017-2018学年高二下学期信息技术期中考试试卷
实现上述功能的VB程序如下,代码加框处有错,请改正。
Dim a(1 to 10) As Integer ‘存储原始数据
Dim b(1 to 10)As Integer ‘存放名次
Private Sub Command1_Click()
Dim i As Integer, j As Integer, n As Integer
For i=1 To 10
n=0
For j=1 To 10
If
Then n=n+1 ‘①
‘②
Next j
Next i
For i= 1 to 10
List2.Additem a(i)&” ”&b(i)
Next i
End Sub
Private Sub Form_Load()
‘随机产生10个[60,100]之间的随机数,并显示在List1中,代码略。
End Sub
①处代码应改为:
②处代码应改为:
试题篮