网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
单选题
设有声明语句 Option Base 1 Dim a(-1 to 10,2 to 9,10)As Integer 则a数组中全部元素的个数为()。
A
960
B
920
C
900
D
1056
参考答案
参考解析
解析:
暂无解析
更多 “单选题设有声明语句 Option Base 1 Dim a(-1 to 10,2 to 9,10)As Integer 则a数组中全部元素的个数为()。A 960B 920C 900D 1056” 相关考题
考题
在窗体上添加一个命令按钮控件,名为Command1,事件过程如下,则执行结果是 Option Base 1 Private Sub Command1_Click() Dim a(5)As Integer Dim k As Integer Dim total As Integer a(1) = 2 a(2) = 5 a(3) = 4 a(4) = 10 a(5) = 6 For k = 1 To 5 Total = total + a(k) Next k Print total End SubA. 10 B.15 C. 27 D. 35
考题
—个二维数组可以存放—个矩阵。在程序开始有语句Option Base0,则下面定义的数组中正好可以存放—个4×3矩阵(即只有12个元素)的是______。A.Dim a(-2 To 0,2)As IntegerB.Dima(3,2)As IntegerC.Dim a(4,3)As IntegerD.Dim a(-1 To -4,-1 To -3)As Integer
考题
设有声明语句Option Base 1Dim b(-1 To 10, 2 To 9, 20) As Integer则数组b中全部元素的个数( )。A.2310B.1920C.1500D.1658
考题
( 15 ) 1 个二维数组可以存放 1 个矩形 . 在程序开始有语句 Option Base 0, 则下面定义的数组中正好可以存放 1 个 4*3 矩阵(即只有 12 个元素)的是( )A ) Dim a ( -2 To 0,2 ) AS IntegerB ) Dim a ( 3,2 ) AS IngegerC ) Dim a ( 4,3 ) AS IngegerD ) Dim a ( -1 To -4,-1 To -3 ) AS Ingeger
考题
(11)设有下列程序查找并输出该数组中的最小值,请在空白处填上合适的代码,将程序补充完整。 Option Base 1 Private Sub Command1_Click() Dim arr1 Dim Min As Integer,i As Integer Arr1=Array(12,435,76,-24,78,54,866,43) Min=arr1(1) For i=2 To 8 If arr1(1)Min Then Next i Print"最小值:";Min End Sud
考题
定义有5个整数型元素的数组,正确的语句是A.Dim a(4) As IntegerB.Option Base 1:Dim a(5)C.Dim a (5)D.Dime a(5) As Integer
考题
以下有关数组定义的语句序列中,错误的是A.Static arrl(3) arr1(1)=100 arrl(2)="Hello" arrl(3)=123.45B.Dim arr2()As Integer Dim size As Integer Private Sub Command2_Click() size=InputBOX(“输入:”) ReDim arr2(size) ┄ End SubC.Option Base 1 Private Sub Command3_Click() Dim arr3(3)As Integer ┄ End SubD.Dim n As Integer Private Sub Command4_Click() Dim arr4(n)As Integer ┄ End Sub
考题
以下有关数组定义的语句序列中,错误的是 ______。A.Static arrl(3) arrl(1)=100 arrl(2)="Hello" arrl(3)123.45B.Dim arr2()As Integer Dim size As Integer Private Sub Command2_click() size=InputBox("输入:") ReDimarr2(size) End SubC.Option Base1 Private Sub Command3_click() Dim arr3(3)As Integer End SubD.Dim n As Integer Private Sub Command4_Click() Dim arr4(n)As Integer End Sub
考题
下列数组定义语句错误的是A.k%=10 Dim Arr(k)B.Const k%=10 Dim Arr(k)C.Dim Arrl(10) As Integer Dim Arr2(10)D.Dim Arrl(1 To 10) Dim Arr2(1 To 10,2 To 11)
考题
以下有关数组定义的语句序列中,错误的是 ______。A.Static arr1(3) arr1(1)=100 arr1(2)="Hello" arr1(3)=12345B.Dim arr2()As Integer Dim size As Integer Private Sub Command2_Click() size=Input Box("输入:") ReDimarr2(size) ... End SubC.Option Base 1 Private Sub Command3_Click() Dim arr3(3)As Integer ... End SubD.Dim n As Integer Private Sub Command4_Click() Dim arr4(n)As Integer ... End Sub
考题
要强制显示声明变量,可在窗体模块或标准模块的声明段中加入语句( )。A.Option Base 0B.Option ExplicitC.Option Base 1D.Option Compare
考题
编写如下事件过程: Option Base 1 Private Sub Form Click() Dim x1()As Integer Dim i As Integer Dim s As Integer ReDim x1(3) For i = 1 To UBound(x1) x1(i)=i + 1 Next i Call sub1(x1) For i = 1 To UBound(x1) s = s + x1(i) Next i Print s End Sub Private Sub sub1(n()As Integer) Dim i As Integer ReDim Preserve n(5) For i = 3 To 5 n(i)=n(i-1)*2 Next i End Sub 程序运行后,单击窗体,则窗体上显示的内容是A.6B.12C.24D.47
考题
在一个窗体上添加一命令按钮控件,名为Command1,事件过程如下,则该过程的执行结果是( )。 option base 1 Private Sub Command1_Ctick() Dim a (5) As Integer Dim k As Integer Dim total As Integer a(1)=2 a(2)=5 a(3)=4 a(4)=10 a(5)=6 For k=1 To 5 total=total+a(k) Next k Print total End SubA.10B.15C.27D.35
考题
在一个窗体上添加一个命令按钮控件,名为Command1,事件过程如下,则执行结果是( )。 Option Base 1 Private Sub Command1_Cliek() Dim a(5) As Integer Dim k As Integer Dim tota1 As Integer a(1)=2 a(2)=5 a(3)=4 a(4)=10 a(5)=6 Fork=1 To 5 tota1=tota1+a(k) Next k Print total End SubA.10B.15C.27D.35
考题
要强制声明变量,可在窗体模块或标准模块的声明段中加入语句().A:Option Base 0B:Option ExplicitC:Option Base 1D:Option Compare
考题
以下有关数组定义的语句序列中,错误的是( )。A.Static arr1(3) arr1(1)=100 arr1(2)="Hello" arr1(3)=123.45B.Dim arr2() AsInteger Dim size As Integer Private Sub Command2_Click () size=InputBox("输入:") ReDim arr2(size) …… EndSubC.Option Base 1 Private Sub Command3 Click() Dim art3(3) As Integer …… End SubD.Dim n As Integer Private Sub Command4 Cliok() Dim arr4(n)As Integer …… End Sub
考题
要强制显示声明变量,可在窗体模块或标准模块的声明段中加入语句()。A、Option Base 0B、Option ExplicitC、Option Base 1D、Option Compare
考题
设有声明语句 Option Base 1 Dim a(-1 to 10,2 to 9,10)As Integer 则a数组中全部元素的个数为()。A、960B、920C、900D、1056
考题
如果不使用Option Base语句,则下面数组说明语句等效的有()A、Dim A(0to8,0to3)B、Dim A(1to8,1to3)C、S Dim A(7,2)D、Dim A(8,3)
考题
单选题设有声明语句 Option Base 1 Dim a(-1 to 10,2 to 9,10)As Integer 则a数组中全部元素的个数为()。A
960B
920C
900D
1056
热门标签
最新试卷