A.Dim NewArray(10)As Integer
B.Dim NewArray(1 To 10)As Integer
C.Dim NewArray(10)Integer
D.Dim NewArray(1 To 10)Integer
[单选题]以下______选项定义了10个整型数构成的数组,数组元素为NewArray(1)至 NewArray(10)?A.Dim NewArray10. As IntegerB.Dim NewArray(1 To 10) As IntegerC.Dim NewArray10. IntegerD.Dim NewArray(1 To 10) Integer
[单选题]以下哪个选项定义了10个整型数构成的数组,数组元素为NewArray(1)至NewArray (10)? ( )A.Dim NewArray(10) As IntegerB.Dim NewArray(1 To 10) As IntegerC.Dim NewArray(10) IntegerD.Dim NewArray(1 To 10) Integer
[单选题]以下哪个选项定义了10个整型数构成的数组,数组元素为NewArray(1)至NewArray(10)A.Dim NewArray(10)As IntegerB.Dim NewArray(1 T0 10)As IntegerC.Dim NewArray(10)IntegerD.Dim NewArray(1 To 10)Integer
[单选题]以下哪个选项定义了10个整型数构成的数组,数组元素为NewArray(1)至NewArray(10)? ( )。A.Dim NewArray(10)As IntegerB.Dim NewArray(1 To 10)As IntegerC.Dim NewArray(10) IntegerD.Dim NewArray(1 To 10) Integer
[单选题]以下哪个选项定义了10个整型数构成的数组,数组元素为NewArray(1)至NewArray(10)A.Dim NewArray (10)As IntegerB.Dim NewArray(1 To 10)As IntegerC.Dim New Array(10)IntegerD.Dim NewArray(1 To 10)Integer
[主观题]本题中定义了长度为20的-维整型数组a,并将数组元素的下标值赋给数组元素,最后打印输出数组中下标为奇数的元素。 public class javal{ public static void main(String[]args){ int a[]= Int i: for a[i]=i for i++) =1: i=0;i<20;i++){ System.out.print(”a[”+i+”]=”+a[i]+”,“); }
[单选题]若要定义一个具有5个元素的整型数组,以下错误的定义语句是( )。A.int a[5]={0;B.int b[]:{0,0,0,0,0};C.int c[2+3];D.int i=5,d[i];
[单选题]现有一个整型数组a[4],它的所有数组元素为( )。A.a0、a1、a2、a3B.a[0]、a[1]、a[2]、a[3]C.a[1]、a[2]、a[3]、a[4]D.a[0]、a[1]、a[2]、a[3]、a[4]
[单选题]若要定义一个具有5个元素的整型数组,以下定义语句错误的是( )。A.inta[5]=0;B.intb[]=0,0,0,0,0;C.intc[2﹢3]
[单选题]定义了二维数组A(1 to 6,6),则该数组的元素个数为( )。A.24个B.36个C.42个D.48个