网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
设有以下函数过程
Private Function Fun(a()As Integer,b As String)As Integer
Ehd Function
若已有变量声明:
Dim x(5)As Integer,n As Integer,ch As String
则下面正确的过程凋用语句是
A.x(0)=Fun(x,“ch”)
B.n=Fun(n,ch)
C.Call Fun x,“ch”
D.n=Fun(x(5),ch)
参考答案
更多 “ 设有以下函数过程Private Function Fun(a()As Integer,b As String)As IntegerEhd Function若已有变量声明:Dim x(5)As Integer,n As Integer,ch As String则下面正确的过程凋用语句是A.x(0)=Fun(x,“ch”)B.n=Fun(n,ch)C.Call Fun x,“ch”D.n=Fun(x(5),ch) ” 相关考题
考题
Function过程与Sub过程的最主要区别是( )。A.Function过程一定要有形参,而Sub过程可以没有形参B.Function过程的终端语句是End Function,而Sub过程的终端语句是End SubC.Function过程是用于计算函数值的,而Sub过程是用于改变属性值的D.Function过程有返回函数值,而Sub过程没有返回值
考题
Function过程有别于Sub过程的最主要的特点是( )。A.Function过程一定要有虚参,而Sub过程可以没有虚参B.Function过程的终端语句是EndFunction,而Sub过程的终端语句是EndSubC.Function过程是用于计算函数值的,而Sub过程是用于改变属性值的D.Function过程要返回函数值,而Sub过程没有值返回
考题
(24)Function过程与Sub过程的最主要区别是 A.Function过程一定要有形参,而Sub过程可以没有形参B.Function 过程的终端语句是End Function,而Sub过程的终端语句是End Sub C.Function过程时用于计算函数值的,而Sub过程时用于改变属性值的D.Function过程有返回函数值,而Sub过程没有返回值
考题
已知类MyClass的定义如下:classMyClass{public:voidfunctionl(MyClass&c){outc.data;}statievoidfunction2(MyClas&c){coutc.data;}voidfunction3(){outdata;}statiCvoidfunction4(){COutdata;}private:intdata;}:其中有编译错误的函数是( )。A.function1B.function2C.function3D.function4
考题
定义函数:double fun() { ...... },下列调用正确的语句是()。A.int x = fun();B.float x = fun();C.double x = fun();D.double x = function();
考题
Function过程需要由函数名返回一个值,如果不使用“As类型”选项来指定函数的类型,函数类型默认为"String"类型。
热门标签
最新试卷