• 2021-04-14 问题

    执行以下程序段后,数组b中的元素个数有________个。Dim a() As Integer = {2, 15, 9, 4, 5, 56, 74, 8, 43, 10}Dim b(9) As IntegerDim count As Integer = 0Dim i As IntegerFor i = 0 To UBound(a)If a(i) Mod 2 = 0 Thenb(count) = a(i)count += 1End IfNextReDim Preserve b(count - 1)

    执行以下程序段后,数组b中的元素个数有________个。Dim a() As Integer = {2, 15, 9, 4, 5, 56, 74, 8, 43, 10}Dim b(9) As IntegerDim count As Integer = 0Dim i As IntegerFor i = 0 To UBound(a)If a(i) Mod 2 = 0 Thenb(count) = a(i)count += 1End IfNextReDim Preserve b(count - 1)

  • 2021-04-14 问题

    下面语句正确的是______。? Dim a(1) As Integer = {12}|Dim a(1) As Integer = {12, 12}|Dim a( ) As Integer = {12}|Dim a( ) As Integer = 0

    下面语句正确的是______。? Dim a(1) As Integer = {12}|Dim a(1) As Integer = {12, 12}|Dim a( ) As Integer = {12}|Dim a( ) As Integer = 0

  • 2022-05-30 问题

    下面数组声明语句错误的是__________。 A: Dim a%(-5 to -3) B: Dim a%(-1 to 2,3) C: Dim n%,a%(n) D: Dim a(-1 to 0) as Integer

    下面数组声明语句错误的是__________。 A: Dim a%(-5 to -3) B: Dim a%(-1 to 2,3) C: Dim n%,a%(n) D: Dim a(-1 to 0) as Integer

  • 2022-05-31 问题

    下列数组声明语句中, 不正确的是___________。 A: Dim a(5) As Single B: Dim a(1 To 5) As Single C: Dim a(0) As Single D: Dim a(5) As Single=(1,2,3,4,5,6)

    下列数组声明语句中, 不正确的是___________。 A: Dim a(5) As Single B: Dim a(1 To 5) As Single C: Dim a(0) As Single D: Dim a(5) As Single=(1,2,3,4,5,6)

  • 2022-05-30 问题

    下面的数组声明语句中,正确的是_____。 A: Dim a[1,2] As Integer B: Dim a(1,2) As Integer C: Dim a[1] [2] As Integer D: Dim a(1 to 0,2 to 0) As Integer

    下面的数组声明语句中,正确的是_____。 A: Dim a[1,2] As Integer B: Dim a(1,2) As Integer C: Dim a[1] [2] As Integer D: Dim a(1 to 0,2 to 0) As Integer

  • 2022-05-31 问题

    下列数组声明语句中,不正确的是_________。 A: Dim a(3) As Single = {0, 1, 2, 3} B: Dim a%(3) C: Dim a(1, 4) As Single D: Dim a(4) As Single

    下列数组声明语句中,不正确的是_________。 A: Dim a(3) As Single = {0, 1, 2, 3} B: Dim a%(3) C: Dim a(1, 4) As Single D: Dim a(4) As Single

  • 2021-04-14 问题

    已知:Option Base 0,Dim a() As Integer, Dim b(4) As Single,Dim c(4) As Integer,则下列赋值操作中,正确的赋值是

    已知:Option Base 0,Dim a() As Integer, Dim b(4) As Single,Dim c(4) As Integer,则下列赋值操作中,正确的赋值是

  • 2022-05-30 问题

    下列语句中,正确的是______。 A: Dim a As Varianta = Array(1,2,3,4,5) B: Dim a(10) As Integera = Array(1,2,3,4,5) C: Dim a%(10)a(1) = "ABCDE" D: Dim a(3),b(3) As Integera(0) = 0b = a

    下列语句中,正确的是______。 A: Dim a As Varianta = Array(1,2,3,4,5) B: Dim a(10) As Integera = Array(1,2,3,4,5) C: Dim a%(10)a(1) = "ABCDE" D: Dim a(3),b(3) As Integera(0) = 0b = a

  • 2022-06-19 问题

    下列一维数组声明语句错误的是( B )。 A: DIM B(100) AS DOUBLE B: DIM B(-20 TO -50) AS INTEGER C: DIM B(-15 TO 0) D: DIM B(5 TO 5) AS STRING

    下列一维数组声明语句错误的是( B )。 A: DIM B(100) AS DOUBLE B: DIM B(-20 TO -50) AS INTEGER C: DIM B(-15 TO 0) D: DIM B(5 TO 5) AS STRING

  • 2022-07-25 问题

    下面数组说明语句错误的是(). 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: 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

  • 1 2 3 4 5 6 7 8 9 10