网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

( 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 )


参考答案

更多 “ ( 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 ) ” 相关考题
考题 已知有下面的过程Private Sub proc1(a As Integer,b As String,Optional x As Boolean)……End Sub正确调用此过程的语句是( )。A.Call procl(5)B.Call proc1 5,”abc”,FalseC.proc1(12,”abc”,True)D.proc1 5, “abc”

考题 要想在过程Proc调用后返回形参x和y的变化结果,下列定义语句中正确的是______。A.Sub Proc(x as Integer, y as Integer)B.Sub Proc(By Val x as Integer, y as Integer)C.Sub Proc(x as Integer, By Val y as Integer)D.Sub Proc(By Val x as Integer, By Val y 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)

考题 下列给定程序中,函数proc()的功能是:判断一个整数m是否是素数,若是返回1,否则返回0。在main()函数中,若proc()返回1,则输出″YES″;若proc()返回0,则输出″NO″!请修改程序中的错误,使它能得出正确的结果。注意:不要改动main)函数,不得增行或删行,也不得,t更改程序的结构。试题程序:

考题 数组xx[M]保存着一组4位无符号整数,其元素的个数通过变量num传人函数proc()。请补充函数proc(),该函数的功能是:从数组XX中找出个位和百位上的数字相等的所有无符号整数,结果保存在数组yy中,其个数由函数proc()返回。例如,当xx[8]={1111 2413 2321 2222 4245 3333 14145335)时,yy[6]={1111 2222 3333 1414}。注意:部分源程序给出如下。请勿改动main()函数和其他函数中的任何内容,仅在函数proc的横线上填入所编写的若干表达式或语句。试题程序:

考题 若要在子过程Proc1调用后返回两个变量的结果,下列过程定义语句中有效的是( )。A.Sub Proc1(n,m)B.Sub Proc1(ByVal n,m)C.Sub Proc1(n,ByVal m)D.Sub Proc1(ByVal n,ByVal m)

考题 设PROC是带有x,y两个参数的SUB过程,试指出在下列的过程调用中哪些写法是错误的:()ACALL MYPROC X,YBCALL MYPROC(X,Y)CMYPROC  X,YDMYPROC(X,Y)

考题 要想从子过程调用后返回两个参数的值,下面子过程语句满足要求的是__________。A.Sub proc(x%,Byval y%)B.Sub proc(ByVal x%,Byval y%)C.Sub proc(x%,y%)D.Sub proc(Byval x%,y%)

考题 下列那个语句标识是过程步的开始()A.DataB.inputC.cardsD.Proc