网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
单选题
已知函数定义Functionf(x1%,x2%)as integer,则下列调用语句正确的是()
A
a=f(x,y)
B
call f(x,y)
C
f(x,y)
D
fxy
参考答案
参考解析
解析:
暂无解析
更多 “单选题已知函数定义Functionf(x1%,x2%)as integer,则下列调用语句正确的是()A a=f(x,y)B call f(x,y)C f(x,y)D fxy” 相关考题
考题
设有如下说明:var q,p:^integer; 且已知有过程调用new(p);new(q);则下面语句正确的是( )
Aread(p,q);Bp^:=q^Cp:=p+1Dp:=p+q;
考题
( 27 )要想在过程 Proc 调用后返回形参 x 和 Y 的变化结果,下列定义语句中正确的是A ) Sub Proc ( x as Integer,y as Integer )B ) Sub Proc ( ByVal x as Integer, y as Integer )C ) Sub Proc ( x as Integer,Byval y as Integer )D ) Sub Proc ( Byval x as Integer, Byval y as Integer )
考题
已知x1(t)和x2(t)的傅里叶变换分别为X1(f)和X2(f),则卷积x1(t)*x2(t)的傅里叶变换为()。
A、X1(f)X2(f)B、X1(f)*X2(f)C、X1(-f)X2(-f)D、X1(-f)*X2(-f)
考题
已知递归函数f 的定义如下:int f (int n){If(n=1)return 1;//递归结束情况else return n*f(n-2);//递归}则函数调用语句f(5)的返回值是( )。
考题
( 8 )已知递归函数 f 的定义如下:int f(int n){if (n = 1) return 1; // 递归结束情况else return n * f(n-2); // 递归 }则函数调用语句 f(5) 的返回值是 【 8 】 。
考题
设有以下函数过程:Function fun(m As Integer) As IntegerDim k As Integer, sum As Integersum = 0For k = m To 1 Step -2sum = sum + kNext kfun = sumEnd Function若在程序中用语句 s = fun(10) 调用此函数,则s的值为______。
考题
设程序中有如下数组定义和过程调用语句: Dim a(10)As Integer … Call D(a) 如下过程定义巾,正确的是( )。A.Private Sub p(a As Integer)B.Private Sub p(a( )As Integer)C.Private Sub p(a(10)As Integer)D.Private Sub p(a(n)As Integer)
考题
数组A在子过程或函数中定义为形参,正确的语句是( )。
A、Private Sub sele(ByVal A( ) As integer)B、Private Function sale(A() As Integer) As StringC、Private Sub sale(A() As Integer) As IntegerD、Private Sub sale(A(i) As Integer)
考题
如果Add函数的调用代码为:func main() {var a Integer = 1var b Integer = 2var i interface{} = asum := i.(Integer).Add(b)fmt.Println(sum)}则Add函数定义正确的是()
A.type Integer intfunc (a Integer) Add(b Integer) Integer { return a + b}B.type Integer intfunc (a Integer) Add(b *Integer) Integer { return a + *b}C.type Integer intfunc (a *Integer) Add(b Integer) Integer { return *a + b}D.type Integer intfunc (a *Integer) Add(b *Integer) Integer { return *a + *b}
考题
设有以下函数过程:Functiofun(m As Integer)As IntegerDimk As Integer,sum As Integersum=0Fork=m To 1 Step-2sum=sum+kNextkfun=sumEnd Function若在程序中用语句s=fun(10)调用此函数,则s的值为______。
考题
设程序中有如下数组定义和过程调用语句:Dim a(10) as integer……Call p(a)如下过程定义中,正确的是A)Private Sub p(a as integer)B)Private Sub p(a() as integer)C)Private Sub p(a(10) as integer)D)Private Sub p(a(n) as integer)
考题
已知数Dima(1 To lO)As Integer,则下面正确调用GetValue函数的是( )。Pdvate Funtion GetValu(a() As Integer)AsIntegerA.S=GetValue(a(1 T0 10))B.S=GetValue(a)C.S=GetValue(a(10))D.S=GetValuea
考题
下面子过程语句说明合法的是( )。A.Sub f1(ByValx() As Integer)B.Subf1(x%())As IntegerC.Functionf1%(f1%)D.Functionf1%(x As Integer)
考题
要想在过程Proc调用后返回形参x和Y的变化结果,下列定义语句中正确的是( )。【考点5过程调用与参数传递】A.Sub Proc(x as Integer,Y as Integer)B.Sub Proc(ByVal x as Integer,Y as Integer)C.Sub Proc(x as Integer,ByVal Y as Integer)D.Sub Proc(ByVal x as Integer,ByVal Y as Integer)
考题
下列描述正确的是( )。A.C语句能嵌套定义函数,但不可以嵌套调用函数B.C语句不能嵌套定义函数,也不可以嵌套调用函数C.C语句能嵌套定义函数,也可以嵌套调用函数D.C语句不能嵌套定义函数,但可以嵌套调用函数
考题
已知一个类A,其中Fun()函数是类A的一个成员函数,A*p,a;p=a;,则下面语句正确的是( )。A.语句p=a;是把对象a赋值给指针变量pB.语句A*p,a;p=a;调用两次类A的构造函数C.对语句*p.fun();的调用是正确的D.语句 p->fun();和语句 a.fun();等价
考题
(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, chC)Call Fun x, "ch"D)n=Fun(x(5), ch)
考题
下列定义Funct函数过程的语句,错误的是()A、Private Public Funct(a)As IntegerB、Static Function Funct(a)C、Private Function Funct(a As Single)D、Function Funct(a As Integer)As Integer
考题
有以下函数定义voidfun(intn){…};若以下选项中的变量都已经正确定义且赋值则对函数fun的正确调用语句是()A、fun(inty);B、k=fun(10);C、fun(x);D、voidfun(n);
考题
单选题已知递归函数fun的定义如下:则函数调用语句fun(5)的返回值是( )。A
5B
12C
15D
30
热门标签
最新试卷