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

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

标准模块中有如下程序代码:

Public x As Integer,Y As Integer

Sub vat_pub()

x=10:Y=20

End Sub

在窗体上有1个命令按钮,并有如下事件过程:

Private Sub Commandl—Click()

Dim X As Integer

Call vat_pub

x=x 4-loo

Y=Y+100

Print x;Y

End Sub

运行程序后单击命令按钮,窗体上显示的是

A.100 100

B.100 120

C.110 100

D.110 120


参考答案

更多 “ 标准模块中有如下程序代码:Public x As Integer,Y As IntegerSub vat_pub()x=10:Y=20End Sub在窗体上有1个命令按钮,并有如下事件过程:Private Sub Commandl—Click()Dim X As IntegerCall vat_pubx=x 4-looY=Y+100Print x;YEnd Sub运行程序后单击命令按钮,窗体上显示的是A.100 100B.100 120C.110 100D.110 120 ” 相关考题
考题 program exam(output); var x,y,x:integer; proedure silly(x:integer;vary:integer); begin x:=5;y:=6;z:=3; writeln(x,y,z) end; begin x:=1;y:=2;z:=3; silly(x,y); writeln(x,y,z) end. 以上程序运行结果为(). A567 563B567 567C567 167D567 163

考题 ( 28 ) 标准 模块中有如下程序代码:Public x As Integer,y As IntegerSub var_pub()x=10:y=20End Sub在窗体上有 1 个命令按钮,并有如下事件过程:Private Sub Command1_Click()Dim x As IntegerCall var_pubx=x+100y=y+100Print x;yEnd Sub运行程序后单击命令按钮,窗体上显示的是A ) 100 100B ) 100 120C ) 110 100D ) 110 120

考题 如下的类定义,括号里应填( )。 class Myclass { public: MyClass(int a =0,int b =0) { X=a; Y=b; void Change ( ) const { X- =10; Y+ =10; public: ( )int X,Y;A.staticB.constC.mutableD.可以不添内容

考题 以下程序的执行后,x和y的值是 ______ 。 include class Sample { public: int x; 以下程序的执行后,x和y的值是 ______ 。 #include <iostream. h> class Sample { public: int x; int y; void disp() { cout<<"x="<<x<<", y="<<y<<end1; } }; void main() int Sample: :*pc; Sample s; pc=Sample:: x; s. *pc=10; pc=Sample: :y; s. *pc=.20; s. disp ();A.x=10, y=20B.x=20, y=10C.x=10, y=10D.x=20, y=20

考题 标准模块中有如下程序代码: Public x As Integer,y As Integer Sub var pub( ) x=10:y=20 End Sub 在窗体上有1个命令按钮,并有如事件过程: Private Sub Command1 Click( ) Dim x As Integer Call var pub x=x+100 y=y+100 Print x;y End Sub 运行程序后单击命令按钮,窗体上显示的是( )。A.100 100B.100 120C.110 100D.110 120

考题 有如下类的定义。那么空格处的语句是( )。 class MyClass { ____________int x,y; public: MyClass(int x1=0,int y1=0) { x=x1; y=y1; } static void change() { x+=10; y+=10; } };A.staticB.constC.privateD.不需要填入内容

考题 有如下类的定义。空格处的语句是class MyClass{ ______ int x, y;public: MyClass(int a=0, int b=0) { x=a; y=b; } static void change() { x-=10; y-=10; }};A.staticB.constC.privateD.不需要填入内容

考题 程序代码如下, 在消息框中显示的消息内容为()。 Dim m%, n%, x%, y%, k% m = 100 : n = 10 : x = 10 : y = 100 k = IIf (m <= n, x, y ) MsgBox(k)A.100B.10C.20D.90

考题 11、下面哪些定义是类型正确的?A.f :: (Integer, Integer) - Float f (x,y) = x / yB.f :: (Integer, Integer) - Float f (x,y) = (fromInteger x) / (fromInteger y)C.f :: (Integer, Integer) - Float f (x,y) = 3*x + yD.f :: (Integer, Integer) - Integer f (x, y) = 3*x + y