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

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

下述代码A和B正确的值是() Dim X As String = "123"  Dim Y As Integer = 123  Dim A As String = X + Y  Dim B As String = X & Y

  • A、“246”,“123123”
  • B、246,“123123”
  • C、“123123”,“123123”
  • D、123123,“123123”

参考答案

更多 “ 下述代码A和B正确的值是() Dim X As String = "123"  Dim Y As Integer = 123  Dim A As String = X + Y  Dim B As String = X  YA、“246”,“123123”B、246,“123123”C、“123123”,“123123”D、123123,“123123”” 相关考题
考题 下面可以正确定义2个整形变量和1个字符串变量的语句的是( )。A.Dim n,m AS Interger,s AS StringB.Dim a%,b$,c AS StringC.Dim a AS Integer,b,c AS StringD.Dim x%,y AS Integer,z AS String

考题 下面程序段运行后,变量x的值为上 【 】 。Dim x As IntegerDim i As Integerx=Ofor i=0 to 50 step 10X=X+inext i

考题 没有如下的用户定义类型:Type Studentnumber As Stringname As Stringage AS IntegerEnd Type则以下正确引用该类型成员的代码是( )。 A.Student. name="李明"B.Dim s As StudentS. name="李明"C.Dim s As Type StudentS. name="李明"D.Dim s As TypeS. name="李明

考题 ( 14 )设有如下的用户定义类型:Type Studentnumber As Stringname As Stringage As IntegerEnd Type则以下正确引用该类型成员的代码是A ) Student.name = " 李明 "B ) Dim s As Students.name = " 李明 "C ) Dim s As Type Students.name = " 李明 "D ) Dim s As Types.name = " 李明 "

考题 下面可以正确定义两个整型变量和—个字符串变量的语句是______。A.Dim n,m As Integer,s As StringB.Dim a%,b$,c As StringC.Dim a As Integer,b,c As StringD.Dim x%,y As Integer,z As String

考题 ( 11 )下面可以正确定义 2 个整形变量和 1 个字符串变量的语句的是( )A ) Dim n,m AS Interger,s AS StringB ) Dim a%,b$,c AS StringC ) Dim a AS Integer,b,c AS StringD ) Dim x%,y AS Integer,z AS String

考题 定义变量如下: Dim Str_x Str_x="祝你成功!" 若在立即窗口中显示Str_x的值,下面正确的是______。A.Debug. Print Str_xB.PictureBox. Print Str_xC.Printer. Print Str_xD.Print Str_x

考题 单击命令按钮时,下列程序代码的执行结果为( )。 Private Function FirProc(x As Integer,y As Integer,z As Integer) FirProc=2*x+y+3*z End Funcfion Private Function SecProc(x As Integer,y As Integer,z As Integer) SecProc=FirProc(z,x,y)+x End Funcfion Private Sub Command1_Click() Dim a As Integer Dim b As Integer Dim c As Integer a=2 b=3 c=4 Printf SecProc(c,b,a) End SubA.21B.19C.17D.34

考题 (23)下列程序执行后,变量x的值为 。 Dim a,b,c,d As Single Dim x As Single a=10 b=30 c=400 If ba Then d=a:a=b:b=d End If If bc Then x=b Elself ac Then x=c Else x=c End IfA.10 B.30 C.400 D.430

考题 下面程序段运行后,变量X的值为【 】。Dim x AS IntegerDim I AS Integerx=0for I=0 to 50 step 10X=X+I。next IPrint X

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

考题 Command1_Click()事件代码如下: Private Sub Command1_Click() Dim x As Integer, Y As Integer x = 6 : Y : 8 Call ABC(X, Y) Print X; Y End Sub Private Sub ABC(ByVal X As Integer,Y As Integer) X = X + 4 Y = Y = 2 End Sub 事件发生后,X和Y的值分别为 ______。A.6, 8B.10, 10C.10, 8D.6, 10

考题 设有如下声明: Dim X AS Integer 如果Sgn(X)的值为-1,则X的值是( )。A.整数B.大于0的整数C.等于0的整数D.小于0的数

考题 设有如下声明: Dim x As Integer 如果Sgn(x)的值为-1,则表示x的值是A.整数B.大于0的整数C.等于0的整数D.小于0的数

考题 下列程序执行后,变量x的值为( )。 Dim a,b,c,d As Single Dim x As Single a=10 b=30 c=400 If b>a Then d=a:a=b:b=d End If If b>c Then x=b Else If a>c Then x=c Else x=a End IfA.10B.30C.400D.430

考题 下列数组说明语句正确的是A.Dim g(0,-5)As SingleB.Dim h(100 To 100,100)As StringC.Dim x(5)As Integer ReDim x(10)As IntegerD.Dim y() ReDim y

考题 以下程序的功能是求“X^3*5”表达式的值,其中X的值由文本框Text0输入,运算的结果由文本框Textl输出。运行上述程序时,会有错误。错误的语句是A.Dim x As IntegerB.Me.TextO=xC.Me.Textl=yD.Dim YAs Long

考题 下列各语句中,正确的是A) Dim x As Variant=Array(1, 2,3, 4. 5)B)Dim xo As Integer: x=Array (1, 2:3: 4.5)C)Dim x As ariant: x=Array(1: abc: 2,3. 41)D) Dim x As Integer: x=Arra (1, 2, 3+25)

考题 以下是某个窗体的模块代码,请分析单击窗体后程序运行至"*"号位置时变量X、Y和Z的值分别是【 】。DIM X AS INTEGERDIM Y AS INTEGERPRIVATE SUB FORM_CLICK()DIM X AS INTEGERX=1Y=1CALL AA(Y+1)Z=BB(X)'* * * * * * *MSGBOX "X="X"/Y="Y"/Z="ZEND SUBPRIVATE SUB AA(BYVAL Z AS INTEGER)Y=Z+XZ=X+YEND SUBPRIVATE FUNCTION BB(BYREF Y AS INTEGERY=Y+1BB=X+YEND FUNCTION

考题 下述代码A和B正确的值是() Dim X As String = "123"  Dim Y As Integer = 123  Dim A As String = X + Y  Dim B As String = X  YA“246”,“123123”B246,“123123”C“123123”,“123123”D123123,“123123”

考题 已知在“通用”代码有以下语句: Dim stu()As String 则,在某一事件代码中使用()是正确的。A、ReDim stu(120)B、ReDim stu(4,120)C、ReDim stu( )D、ReDim stu( ) As Integer

考题 下面这段代码中,变量myChar的结果是()。 Dim myString As String = "ABCDE" Dim myChar As Char myChar = myString.Chars(3)A、BB、CC、DD、E

考题 直接以Dim x(6,2 to 5)来声明一个二维数组,错误的选项是()。A、Lbound(x,2)的返回值是1B、Ubound(x,2)的返回值是5C、Ubound(x,1)的返回值是6D、Lbound(x,1)的返回值是0

考题 VB中将变量x1声明为Excel应用程序对象的方法是()。A、Dim x1 As Excel.ApplicationB、Dim x1 As Excel.WorkbookC、Dim x1 As Excel.WorksheetD、Dim x1 As Excel.Worksheets

考题 单选题直接以Dim x(6,2 to 5)来声明一个二维数组,错误的选项是()。A Lbound(x,2)的返回值是1B Ubound(x,2)的返回值是5C Ubound(x,1)的返回值是6D Lbound(x,1)的返回值是0

考题 单选题下面这段代码中,变量myChar的结果是()。 Dim myString As String = "ABCDE" Dim myChar As Char myChar = myString.Chars(3)A BB CC DD E

考题 单选题下述代码A和B正确的值是() Dim X As String = "123"  Dim Y As Integer = 123  Dim A As String = X + Y  Dim B As String = X  YA “246”,“123123”B 246,“123123”C “123123”,“123123”D 123123,“123123”