下面数组说明语句错误的是______。
A: Dimb(-10)AsDouble
B: Dimc(8,3)AsByte
C: Dimd(-10To-1)AsBoolean
D: Dime(-99To-5,-3To0)
A: Dimb(-10)AsDouble
B: Dimc(8,3)AsByte
C: Dimd(-10To-1)AsBoolean
D: Dime(-99To-5,-3To0)
举一反三
- 下面数组说明语句错误的是(). A: Dim a(10) As Intege B: Dim d(-10 To -1) As Boolean C: Dim e(-99 To -5,-3 To 0) D: Dim f(-10 To -20,10 To 20) As Long
- 当执行下面的语句定义一维数组a后,此数组的所有元素为 ( ) inta[10]; A.a[1],a[2],a[3],a[4],a[5],a[6],a[8],a[9],a[10],a[10] B.a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8],a[9] C.a[0],a[2],a[3],a[4],a[5],a[6],a[7],a[8],a[9],a[10] D.a[1],a[2],a [3],a[4],a [5],a [9],a [7],a [8],a [9],a [10],a [11]
- >>>x= [10, 6, 0, 1, 7, 4, 3, 2, 8, 5, 9]>>>print(x.sort()) 语句运行结果正确的是( )。 A: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10] B: [10, 6, 0, 1, 7, 4, 3, 2, 8, 5, 9] C: [10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0] D: ['2', '4', '0', '6', '10', '7', '8', '3', '9', '1', '5']
- 下面语句的输出结果是?range(len('HelloWorld')) A: [1, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11] B: 11 C: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10] D: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
- 若定义数组并初始化chara[10]={‘0’,’1’,’2’,’3’,’4’,’5’,’6’,’7’,’8’,’9’};,以下正确语句是()。