网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
标准模块中有如下程序代码:
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 100
B.100 120
C.110 100
D.110 120
参考答案
更多 “ 标准模块中有如下程序代码: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 ” 相关考题
考题
( 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
考题
标准模块中有如下程序代码: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
考题
如下的类定义,括号里应填( )。 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.可以不添内容
考题
有如下程序:include include using nanespace std;class CSum{int x,y;pub
有如下程序:#include <iostream>#include <iomanip>using nanespace std;class CSum{ int x,y; public: CSum (int x0,int y0):x(x0),y(y0){} friend ostream operator<<(ostream os, const CSum xa) { os<<setw(5)<<xa.x+xa.y; return os; }};int main(){ CSum y(3,5); cout<<setfill('*')<<8; cout<<y; return 0;}执行上面程序的输出是( )。A.88B.****88C.****8****8D.8****8
考题
有如下程序:include include using namespace std;class CSum{int x,y;pub
有如下程序: #include <iostream> #include <iomanip> using namespace std; class CSum {int x,y; public: CSum(int x0,int y0):x(x0),y(y0) {} friend ostream operator<<(ostream os, const CSum xa) { os<<setw(5)<<xa.x+xa.y; return os; } int main() { CSum y(3,5); cout<<setfill('*')<<8; cout<<y; return 0; }执行上面程序的输出是______。A.88B.****88C.****8****8D.8****8
考题
标准模块中有如下程序代码: 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
考题
有以下程序:includeincludeusingnamespacestd;classDistance;classpoint{pub
有以下程序: #include <iostream> #include <cmath> using namespace std; class Distance; class point { public: friend class Distance; Point(int a,int B) { x=a; Y=b; } void Print() { cout<<"X= "<<X<<end1; cout<<"Y= "<<Y<<end1; } private: float X,Y; }; class Distance { public: float Dis(Point p,Point q); }; float Distance :: Dis(Point p,Point q) { float result; result=sqrt((p.X-q.X)*(p.X-q.X)+(p.Y-q.Y)*(p.Y-q.Y)); cout<<result<<end1; retUrn result; } int main() { Point p(10,10),q(10,30); Distance d; d.Dis(p,q); return 0; } 运行后的输出结果是( )。A.10B.30C.0D.20
考题
(X,Y)是二维随机向量,下列命题与Cov(X,Y)=0等价的是A.E(XY)=E(X)E(Y)B.Var(XY)= Var(X)Var(Y)C.Var(X+Y)=Var(X)−Var(Y)D.Var(X−Y)=Var(X) −Var(Y)
考题
程序代码如下, 在消息框中显示的消息内容为()。 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
热门标签
最新试卷