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

题目内容 (请给出正确答案)
单选题
设PROC是带有x,y两个参数的SUB过程,试指出在下列的过程调用中哪些写法是错误的:()
A

CALL MYPROC X,Y

B

CALL MYPROC(X,Y)

C

MYPROC  X,Y

D

MYPROC(X,Y)


参考答案

参考解析
解析: 暂无解析
更多 “单选题设PROC是带有x,y两个参数的SUB过程,试指出在下列的过程调用中哪些写法是错误的:()A CALL MYPROC X,YB CALL MYPROC(X,Y)C MYPROC  X,YD MYPROC(X,Y)” 相关考题
考题 Sub过程与Function函数的最根本区别是( )。 A.Function过程可以有参数,而Sub过程不可以B.两种过程参数的传递方式不同C.Sub过程无返回值,但Function过程有返回值D.Sub过程是语句级调用,可以使用Call或直接使用过程名,但Function过程是在表达式中调用

考题 ( 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”

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

考题 ( 23 )已知有下面的过程( )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 ”

考题 以下叙述不正确的是: ______。A.在Sub过程中可以调用Function过程B.在用Call调用Sub过程时必须把参数放在括号里C.在Sub过程中可以嵌套定义FunctionD.用Static声明的过程中的局部变量都是Static类型

考题 设有下列过程: Sub ff(x,y,z) X=y+z End Sub 下列选项中所有参数的虚实结合都是传址方式调用的是 A.Call ff(5,7.z) B.Call ff(x,y.z)C.Call ff(3+X,5+Y,z) D.Call ff(x+y,x-y,z)

考题 (26)设有下列过程: Private Sub ppp(As Single,b As Single) A=a+b Print a,b B=a+b Print a,b End Sub Private Sub Form_Activate() x=18 Call ppp ((x),(x)) Print x End Sub 则下列说法中不正确的是 A.形参是a和b,两个实参(x)和(y)允许重名 B.形参是a和b,实参(x)表示传值调用 C.形参是a和b,实参(x)表示是非传址调用 D.形参是a和b,两个实参(x)和(y)不允许重名

考题 (12)有下列Sub过程: Sub Sub(x As Single,y As Single) t=x x=t/y y=t Mody End Sub 在窗体上的命令按钮Commandl中,编写下列事件过程,执行该事件过程调用Sun过程,结果是( )。 Private Sub Commandl_Click() Dim a As Single Dim b As Single a=5 b=4 Sun a,b Print a;b End Sub A.1.25 1 B.5 4 C.4 5 D.1 1.25

考题 设myproc是带有x、y两个参数的Sub过程,调用该过程可用Callmyprocx,y或myprocx、y。() 此题为判断题(对,错)。

考题 以下过程的定义中,( )是错误的。 A、Public Sub Sum(x ; y)B、Public Sub Sum(ByVal x, ByVal y)C、Public Sub Sum(x As Integer,y As Integer)D、Public Sub Sum(x%, y%)

考题 设有如下过程:Sub ff(x,y,z,) x=y+zEnd Sub以下所有参数的虚实结合都是传址方式的调用语句是A.Call ff(5,7,z)B.Call ff(x,y,z)C.Call ff(3+x,5+y,z)D.Call ff(x+y,x-y,z)

考题 有如下过程,将两次调用过程proc的结果分别填于空【 】和【 】处。Private Sub Command1_Click( )Dim a As IntegerDim b As Integera=2b=5Call proc(a,B) 【 】Call proc(A) 【 】End SubPrivate Sub proc(x As Integer,Optional y)Dim z As IntegerIf IsMissing(y) ThenMsgBox ("没有提供可选参数")Elsez=x*yMsgBox ("乘积=" + Str(z))End IfEnd Sub

考题 编写如下通用过程: Sub Proc(x As Single,y As Single) t=x x=t/y y=t Mod y End Sub 在窗体上画一个命令按钮,然后编写如下事件过程: Private Sub Commandl Click() Dim a As Single Dim b As Single a=5 b=4 Proc a,b Print a,b End Sub 程序运行后,如果单击命令按钮,则输出结果为A.5 4B.1.25 1C.4 5D.1.25 5

考题 要想在过程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)

考题 若要在子过程Procl调用后返回两个变量的结果,下列过程定义语句中有效的是( )。【考点5过程调用与参数传递】A.Sub Procl(n,m)B.Sub Procl(ByVal n,m)C.Sub Procl(n,BYVal m)D.Sub Procl(ByVal n,ByVal m)

考题 在以下事件中,Private表示 Private Sub sub1(x As Integer,y As Integer) ...End SubA.此过程可以被其他过程调用B.此过程只可以被本窗体模块中的其他过程调用C.此过程不可以被任何其他过程调用D.此过程只可以被本工程中的其他过程调用

考题 |在窗体上有一个命令按钮Commandl,编写事件代码如下: Private Sub Commandl_Click( ) Dim X As Integer,Y As Integerx=12:y=32Call Proc(x,y)EndSubPublic Sub Proc{n As Integer,ByVM mAs mteger}n=nMod l0m=mModl0EndSub打开窗体运行后,单击命令按钮,立即窗口上输出的结果是( )。l考点5过程调用与参数传递1A.2 32B.12 3C.2 2D.12 32

考题 设有如下过程; Sub ff(x,y,z) x=y+Z End Sub 下列选项中所有参数的虚实结合都是传址方式调用的是( )。A.Call ff(5,7,2)B.Call ff(x,y,z)C.Call ff(3+x,5+y,z)D.Call ff(x+y,x-y,z)

考题 若要在子过程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 l调用后返回两个变量的结果,下列过程定义语句中有效的是( )。A.Sub Proc1(n,m)B.Sub Proc1(By Val n ,m)C.Sub Proc1(n, By Val m)D.Sub Proc1 (By Val n,By Val m)

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

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

考题 以下定义的过程()是按“传值”方式传递参数的。A、Public Sub Sum(x,y)B、Public Sub Sum(ByVal x, ByVal y)C、Public Sub Sum(x As Integer,y As Integer)D、Public Sub Sum(x%, y%)

考题 下列定义abc过程的语句,正确的是()A、Dim Sub abc(x,y)B、Public abc(x,y)C、Private Sub abc(x,y)As IntegerD、Sub abc(x,y)

考题 有关过程的说法中错误的是()A、递归过程既可以是递归Function过程,也可以是递归Sub过程B、在Sub或Function过程中不能再定义其他Sub或Function过程C、在调用过程时,形参为数组的参数对应的实参只能是数组D、在调用过程时,与使用ByRef说明的形参对应的实参只能按地址传递方式结合

考题 单选题设MYPROC是带有x,y两个参数的SUB过程,试指出在下列的过程调用中哪些写法是错误的:()A CALL  MYPROC X , YB CALL  MYPROC(X,Y)C MYPROC  X, YD MYPROC(X,Y)