VB高手快帮忙。谢谢

来源:百度知道 编辑:UC知道 时间:2024/07/12 11:54:14
1、 下面数组声明语句中()是正确的
A) dim ma[1:5,1:5] as string
B) dim ma[5 to 5] as string
C) dim ma(1 to 5,1 to 5) as string
D) dim ma(1:5,1:5) as string
请选择-> A B C D

2、 执行以下command1的click事件,在窗体上显示的是()
option base 0
private sub command1_click()
dim a
a=array("a","b","c","d","e","f","g")
print a(1);a(3);a(5)
end sub
A) abc B) bdf C) ace D) 出错
请选择-> A B C D

3、 设有数组声明语句: 重复
optiont base 1
dim a(2,-1 to 1)
以上语句所定义的数组a第二维下标下界为多少
A) 0 B) 1 C) -1 D) 2
请选择-> A B C D

4、 语句dim arr(-3 to 5,2 to 6)as integer定义的数组所占存储单元字节数为()
A) 45 B) 90 C) 180 D) 270
请选择-> A B C D

5、 语句dim arr(-3 to 5,2 to 6

1、 下面数组声明语句中(C)是正确的
2、 执行以下command1的click事件,在窗体上显示的是(B)
3、 设有数组声明语句: 重复
optiont base 1
dim a(2,-1 to 1)
以上语句所定义的数组a第二维下标下界为多少 C
4、 语句dim arr(-3 to 5,2 to 6)as integer定义的数组所占存储单元字节数为(B)
5、 语句dim arr(-3 to 5,2 to 6)as integer定义的数组元素有A
6、 用下面语句定义的数组的元素个数是 D
7、 下面数组声明语句中(B)是正确的。
8、 设有数组声明语句:
Option Base 1
dim a(2,-1 to 1)
以上语句所定义的数组a共有(D)元素
9、 设有数组声明语句:
Option Base 1
dim a(2,-1 to 1)
以上语句所定义的数组a的第二维下标从-1到(A)
10、 以下说法正确的是(C)。