【简答题】在标准模块"模块1"声明区中定义了变量x和变量y,如下所示,则变量x和变量y的作用范围分别是( )。Dim x As IntegerPublic y As IntegerSub demoVar()x = 3y = 5Debug.Print x & " " & yEnd SubA. 模块级变量和过程级变量 B. 过程级变量和公共变量 C. 模块级变量和公共变量 D. 过程级变量和模块范围
【单选题】已知数组arr进行以下定义: Dim arr() as Integer = {1,1,1,1,1} 过程MySub定义如下: Sub MySub(ByVal ar() As Integer, ByRef x As Integer) Dim i As Integer For i = 0 To UBound(ar) " 注:UBound(ar)求数组ar的下标上限 ar(i) = x Next x =...