(1)根据本题代码,如图中所示,数组元素 b(2)的值为(_____)
(2)实现上述功能的 VB 程序如下,请在划线处填入合适的代码。

Private Sub Command1_Click()
Dim a(1 To 200) As String '用来存储学号
Dim b(1 To 200) As String '关联 a 数组,用于矩阵输出
Dim i As Integer, j As Integer, k As Integer, pos As Integer
Dim row as Integer, column as Integer, s As String
For i = 1 To 200 '产生 3 位数的学号
a(i) = Mid("00", 1, (3 - Len(CStr(i)))) + CStr(i)
Next i
row = Val(Text1.Text)
column = Val(Text2.Text)
k = 1
For i = 1 To column
If (_____) then
pos = i 'pos是b数组的下标,根据行列来关联a数组
For j = 1 To rowb(pos) = a(k)
(_____)
k = k + 1
Next j
Elsepos = (row - 1) * column + i
For j = 1 To row
b(pos) = a(k)
pos = pos - column
k = k + 1
Next j
End If
Next i
For i = 1 To row '按行输出学生信息
s = ""
For j = 1 To Column
s = s + " " + (_____)
Next j
List1.AddItem s
Next i
End Sub
同类型试题

y = sin x, x∈R, y∈[–1,1],周期为2π,函数图像以 x = (π/2) + kπ 为对称轴
y = arcsin x, x∈[–1,1], y∈[–π/2,π/2]
sin x = 0 ←→ arcsin x = 0
sin x = 1/2 ←→ arcsin x = π/6
sin x = √2/2 ←→ arcsin x = π/4
sin x = 1 ←→ arcsin x = π/2


y = sin x, x∈R, y∈[–1,1],周期为2π,函数图像以 x = (π/2) + kπ 为对称轴
y = arcsin x, x∈[–1,1], y∈[–π/2,π/2]
sin x = 0 ←→ arcsin x = 0
sin x = 1/2 ←→ arcsin x = π/6
sin x = √2/2 ←→ arcsin x = π/4
sin x = 1 ←→ arcsin x = π/2

