单项选择题
以下关于Visual Basic数据类型的说法,不恰当的是( )。
A.char str[ ];
B.char str[ ][ ];
C.String str[ ] = new String[10];
D.String str[10];
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
在窗体上画一个名称为List1的列表框,一个名称为Label1的标签,列表框中显示若干城市的名称。当单击列表框中的某个城市名时,该城市名从列表框中消失,并在标签中显示出来。下列能正确实现上述操作的程序是【 】
A.Pivate Sub Listl_Click() Label1.Caption:List1.Listlndex List1.Removeltem List1.Text End Sub
B.Private Sub Listl_Click() Label1.Name=List1.Listlndex Listl.Removeltem Listl.Text End Sub
C.Private Sub List1_Click() Labell.Caption=Listl.Text List1.Removeltem Listl.Listlndex End Sub
D.Private Sub List1_Click() Label1.Name=List1.Text List1.Removeltem List1.Listlndex End Sub
点击查看答案&解析
单项选择题
运行下面的程序后,输出的结果为( )。ClsDim t(5,5) as IntegerFor i=1 To 5:t(i,i)=1:NextFor i=1 To 5For j=1 To 5Print t(i,j),Next jPrintNext I
A.1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 l 1 1 1 1 1 1
B. 1 1 l 1 1
C.1 0 0 0 0 0 1 0 0 00 0 1 0 00 0 0 1 00 0 0 0 1
D.1 1 1 1 1
点击查看答案&解析
相关试题
如下事件过程:Function Feed(x)If x ...
在窗体上画一个名称为Command1的命令按钮...
有如下的程序:Private Sub Command1_C...
下列程序的执行结果为( )。Private Sub...
设一个工程由两个窗体组成,其名称分别为Fo...