网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

在Option Base 1的前提下,若有定义Dim A%(10),则数组A所占的字节数是()

  • A、20
  • B、10
  • C、22
  • D、11

参考答案

更多 “在Option Base 1的前提下,若有定义Dim A%(10),则数组A所占的字节数是()A、20B、10C、22D、11” 相关考题
考题 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

考题 在窗体上添加一个命令按钮控件,名为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

考题 有如下程序,运行后输出的是( )。 Option Base 1 Private Sub Commandl_click() Dim aj(1 To 10) Forj=6 To 10 aj(j)=j*2 Nextj Printaj(1)+aj(j) End SubA.5B.20C.22D.显示出错信息

考题 在通用声明中给出Option Base 1语句,则数组a包含( )个元素。Dim a(3, -2 To 1, 5)A、 120B、 75C、 60D、 13

考题 定义有5个整数型元素的数组,正确的语句是A.Dim a(4) As IntegerB.Option Base 1:Dim a(5)C.Dim a (5)D.Dime a(5) As Integer

考题 有如下程序:Option Base 1Private Sub Form_Click()Dim arr,SumSum=0For i=1 To 10If arr(i)/3=arr(i)\3 ThenEnd IfNext iEnd Sub程序运行后,单击窗体,消息框的输出结果为( )。

考题 下面程序:________Option Base 1Private Sub Command1_Click() Dim a(10),p(3)As Integer Dim i,k As Integer k=5 For i=1 To 10 a(i)=i Next For i=1 To 3 p(i)=a(i*i) Next For i=1 To 3 k=k+p(i)*2 Next Print kEnd Sub运行后的输出结果为________。A.33B.28C.35D.37

考题 用下面的语句定义数组元素的个数为 ______。 Option Base 1 Dim Arr6(-2 to 6, -1 to 5)As IntegerA.30B.48C.63D.72

考题 在一个窗体上添加命令按钮控件,名为Command1,事件过程如下,则该过程的执行结果为______。Option Base 1Private 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 TotalEnd SubA.10B.15C.27D.35

考题 以下有关数组定义的语句序列中,错误的是 ______。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

考题 用下列语句定义数组的元素个数是( )。 Option Base 1 Dim Arr5(0 to 6,0 to 5)As IntegerA.42B.30C.37D.36

考题 下列程序段的执行结果是______。 option base 1 private eommand1_c1ick () Dim A(10) Dim E(5) For i = 1 To 10 A(i) = i Next i For j = 1 To 5 B(j) = j * 20 Next j A(5) = B(2) Print “A(5)=”; A(5) End subA.A(5)=20B.A(5)=30C.A(5)=40D.A(5)=50

考题 有如下程序:Option Base 1Private Sub Command1 Click( )Dim arr(10)arr=Array(10,35,28,90,54,68,72,90)For Eaeh a In arrIf a50ThenSum=Sum+aEnd IfNext aEnd Sub运行上述程序时出现错误,错误之处是( )。A.数组定义语句不对,应改为Dim arrB.没有指明For循环的终值C.应在For语句之前增加Sum=0D.Next a应改为Next

考题 有如下程序: Option Base 1 Private Sub Command1 Click( ) Dim arr(10) arr=Array(10,35,28,90,54,68,72,90) For Eaeh a In arr If a50Then Sum=Sum+a End If Next a End Sub 运行上述程序时出现错误,错误之处是( )。A.数组定义语句不对,应改为Dim arrB.没有指明For循环的终值C.应在For语句之前增加Sum=0D.Next a应改为Next

考题 在一个窗体上添加一命令按钮控件,名为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

考题 假设没有使用Option Base语句,用下面语句定义的数组元素个数是( )。 Dim Arr3(6,5)As IntegerA.42B.30C.37D.36

考题 设有声明语句 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)

考题 下列语句中,属于合法的Visual basic语句是()。A、Option Base 4B、Option Base 2C、Option Base 1D、Option Base 3

考题 设有数组声明语句:Option base 1 dim A(3,-2 to 1),则数组A中有()个元素。

考题 填空题设有数组声明语句:Option base 1 dim A(3,-2 to 1),则数组A中有()个元素。

考题 单选题在Option Base 1的前提下,若有定义Dim A%(10),则数组A所占的字节数是()A 20B 10C 22D 11

考题 单选题设有声明语句 Option Base 1 Dim a(-1 to 10,2 to 9,10)As Integer 则a数组中全部元素的个数为()。A 960B 920C 900D 1056