设有以下函数过程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)

设有以下函数过程

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)


相关考题:

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过程没有返回值

若定义了函数double*function(),则函数function的返回值为()。A.实数型B.实数的地址C.指向函数的指针D.函数的地址

已知类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 *function(),则函数function的返回值为(47)。A.实数B.实数的地址C.指向函数的指针D.函数的地址

2、Function过程需要由函数名返回一个值,如果不使用“As类型”选项来指定函数的类型,函数类型默认为()类型。A.IntegerB.VariantC.LongD.String

Function过程需要由函数名返回一个值,如果不使用“As类型”选项来指定函数的类型,函数类型默认为()类型。A.IntegerB.VariantC.LongD.String

定义函数:double fun() { ...... },下列调用正确的语句是()。A.int x = fun();B.float x = fun();C.double x = fun();D.double x = function();

Function过程需要由函数名返回一个值,如果不使用“As类型”选项来指定函数的类型,函数类型默认为"String"类型。