下面这段代码中,变量myInteger的结果是()。 Dim myString As String="ABCDE" Dim myInteger As Integer myInteger=myString.IndexOf("D")
第1题:
假设有如下的记录类型: Type Student number As String name AS String age As Integer End Type 则正确引用该记录类型变量的代码是______。
A.Student. name="" s. name="张红"
B.Dim s As Student s. Dame="张红"
C.Dim s As Type Student s. name="张红"
D.Dim s As Type s. name="张红"
第2题:
设有如下的用户定义类型: Type Student number As String name As string age As Integer End Type 则以下正确引用该类型成员的代码是______。
A. Student name="李明”
B.Dim s As Student s.name="李明"
C.Dim s As Type Student s.name="李明"
D.Dim s As Type s.name="李明"
第3题:
设有如下的记录类型: TypeStudent number As String name AS String age As Integer End Type 则正确引用该记录类型变量的代码是( )。
A.Student.name="张红"
B.Dim s As Student s.name="张红"
C.Dim s As Type Student s.name="张红"
D.Dim s As Type s.name="张红"
第4题:
以下将变量NewVar定义为Integer型正确的是______。
A.Integer NewVar
B.Dim NewVar Of Integer
C.Dim NewVar As Integer
D.Dim Integer NewVar
第5题:
(23)设有以下函数过程
Private Function Fun(a() As Integer, b As String) As Integer
...
End Function
若已有变量声明:
Dim x(5)As Integer, n As Integer, ch As String
则下面正确的过程调用语句是
A)x(o)=Fun(x, "ch")
B)n=Fun(n, ch
C)Call Fun x, "ch"
D)n=Fun(x(5), ch)
第6题:
下面这段代码中,变量subString的结果是()。 Dim aString As String = "Left Center Right" Dim subString As String subString = Mid(aString, 13)
第7题:
在VB中,使用变量前一般应对变量进行定义。以下变量定义语句错误的是()。
第8题:
下述代码A和B正确的值是() Dim X As String = "123" Dim Y As Integer = 123 Dim A As String = X + Y Dim B As String = X & Y
第9题:
下面这段代码中,变量subString的结果是()。 Dim aStringAs String="Left Center Right" Dim subStringAs String subString=aString.SubString(1,4)
第10题:
0
1
2
3
4
第11题:
_Left
Left_
Left
eft
第12题:
_Right
Right_
Right
Left Center_
Left Center
_Left Center_
Left Center R
第13题:
下面的语句用Array函数为数组变量a的各元素赋整数值:
a=Array(1,2,3,4,5,6,7,8,9)
针对a的声明语句应该是
A.Dim a
B.Dim a As Integer
C.Dim a(9) As Integer
D.Dim a() As Integer
第14题:
下面的数组声明语句中( )是正确的。
A.Dim A[3,4]As Integer
B.Dim A(3,4)As Integer
C.Dim A[3;4]As Integer
D.Dim A[3;4]As Integer
第15题:
有如下函数:Private Function firstfunc(x As Integer, y As Integer) As Integer Dim n As Integer Do While n <= 4 x=x +y n=-+1 Loop firstfunc = x End Function调用该函数的事件过程如下:Private Sub Command1_lick() Dim x As Integer Dim y As Integer Dim n As Integer Dim z As Integer x=1 y=1 For n = 1 To 3 z = firstfunc(x, y) Next n Print z End Sub该事件过程的执行结果是 ______。
A.1
B.3
C.16
D.9
第16题:
下列程序打印结果为 ______。Private Sub Command1_ Click() Dim a(5)As String Dim b As Integer Dim i As Integer for i = 0 To 5 a(i)= i +1 Print a(i); Next iEnd Sub
A.12345
B.6
C.1 2 3 4 5 6
D.0
第17题:
下述代码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”
B246,“123123”
C“123123”,“123123”
D123123,“123123”
第18题:
分析下面的JavaScript代码段: var mystring="I am a student"; a=mystring.indexOf("am"); document.write(a); 输出结果是()。
第19题:
在VB语言中,下列定义变量语句格式正确的是()。
第20题:
下面这段代码中,变量myChar的结果是()。 Dim myString As String = "ABCDE" Dim myChar As Char myChar = myString.Chars(3)
第21题:
“246”,“123123”
246,“123123”
“123123”,“123123”
123123,“123123”
第22题:
3
4
2
1
第23题:
B
C
D
E