共用题干题设有下面4条路由:172.18.129.0/24、172.18.130.0/24、172.18.132.0/24和172.18.133.0/24,如果进行路由汇聚,能覆盖这4条路由的地址是(8)。网络122.21.136.0/24和122.21.143.0/24经过路由汇聚,得到的网络地址是(9)。
空白处(9)应选择()
A.122.21,136.0/22
B.122.21.136.0/21
C.122.21.143.0/22
D.122.21.128.0/24
第1题:
4、下面是冒泡法排序(升序),空白处应填入________。 Dim a(9) As Integer, i%, j%, t% For i = 0 To 9 a(i) = Int(Rnd() * 89 + 10) Next For i = 0 To 8 For j = 0 To ________ If a(j) > a(j + 1) Then t = a(j) a(j) = a(j + 1) a(j + 1) = t End If Next Next
A.9
B.i
C.9 - i
D.8 - i
第2题:
下面是冒泡法排序(升序),空白处应填入________。 Dim a(9) As Integer, i%, j%, t% For i = 0 To 9 a(i) = Int(Rnd() * 89 + 10) Next For i = 0 To 8 For j = 0 To ________ If a(j) > a(j + 1) Then t = a(j) a(j) = a(j + 1) a(j + 1) = t End If Next Next
A.9
B.i
C.9 - i
D.8 - i
第3题:
下面是选择法排序(升序),空白处应填入________。 Dim a(9) As Integer, i%, j%, imin%, t% For i = 0 To 9 a(i) = Int(Rnd() * 99 ) Next For i = 0 To 8 imin = i For j = i + 1 To 9 If a(________) > a(j) Then imin = j End If Next t = a(imin) a(imin) = a(i) a(i) = t Next
A.imin
B.0
C.i
D.i+1
第4题:
若要使变量x存放数值987654321,则下面空白处应填入__________。 Dim i%, x% x = 0 For i = ___________ x = x * 10 + i Next MsgBox(x)
A.1 To 9
B.9 To 1
C.9 To 1 Step -1
D.1 To 9 Step -1
第5题:
3、下面是选择法排序(升序),空白处应填入________。 Dim a(9) As Integer, i%, j%, imin%, t% For i = 0 To 9 a(i) = Int(Rnd() * 99 ) Next For i = 0 To 8 imin = i For j = i + 1 To 9 If a(________) > a(j) Then imin = j End If Next t = a(imin) a(imin) = a(i) a(i) = t Next
A.imin
B.0
C.i
D.i+1
第6题:
1、若要使变量x存放数值987654321,则下面空白处应填入__________。 Dim i%, x% x = 0 For i = ___________ x = x * 10 + i Next MsgBox(x)
A.1 To 9
B.9 To 1
C.9 To 1 Step -1
D.1 To 9 Step -1