• 2022-06-15
    下面哪个定义了一个整型变量x
    A: Dim x As Single
    B: Dim x As Integer
  • B

    内容

    • 0

      下面可以正确定义2个整型变量和1个字符串变量的语句是【 】 A: Dim n,m As Integer,s As String B: Dim a%,b$,c As String C: Dim a As Integer,b,c As String D: Dim x%,y As Integer,z As Suing

    • 1

      下列数组声明语句中,正确的是_________。 A: Dim a(5) As Integer = {11,22,33,44,55} B: Dim a( , ) As Single = {{1,2,3,4,5},{6,7,8,9,0}} C: Dim a(x) As Single x此前未声明 D: Dim a(4) As Integer = {1,2,3,4,5}

    • 2

      下面可以正确定义2个整型变量和1个字符串变量的语句是? A: Dim n, m As Interger, s As String B: Dim a%, b $ , c As String C: Dim a As Integer, b, c As String D: Dim x%, y As Integer, z As String

    • 3

      要在窗体Form1中定义一个可以在窗体Form2中使用的整型变量X,可在Form1窗体的通用部分输入语句( )。 A: Dim X As Integer B: Static X As Integer C: Private X As Integer D: Public X As Integer

    • 4

      以下定义数组或给数组元素赋值的语句中,正确的是 A: Dim x%(2) x(1)="等级考试" B: Dim x(3), y(3)As Integer x(0)=1:y=x C: Dim x x=Array(0,1,2) D: Dim x(3)As Integer x=Array(0,1,2)