下面两个语句的区别在于Xl不能多次赋值,而X2可以______赋值。
Xl EQU l000
X2=1000H
第1题:
若有以下程序: #include<iostream> using namespaces std; class A { public: A(){} A(int i) { xl=i; } void dispa() { cout<<"x1="<<x1<<","; } private: int x1; }; class B:public A { public: B(){} B(int i):A(i+10) { x2=i; } void dispb() { dispa(); cout<<"x2="<<x2<<endl; } private: int x2; }; int main{) { B b(2); b.dispb(): return 0; } 程序运行后的输出结果是
A.x1=10,x2=2
B.x1=12,x2=10
C.x1=12,x2=2
D.x1=2,x2=2
第2题:
下面是用过程赋值语句为异或门和与门建模写的一段程序,该程序正确吗? module Gate (X1, X2, Y, Overflow); //design block input X1, X2; output Y, Overflow; initial begin #10 Y = X1 ^ X2; overflow = X1 && X2; end ; endmodule ;
第3题:
1、某一封闭系统只有l、2两个表面A1=2A2,X2,l=0.5,X2,2=0.5 ,则Xl,2为多少?
A.Xl,2=0.25
B.Xl,2=0.2
C.Xl,2=0.1
D.Xl,2=0.3
第4题:
某事故树的结构函数为T={ Xl + Xl X2+ Xl X3},则导致该事故的最基本原因是 ( )。
A.{Xl},{ XlX2},{ Xl X3}
B.{Xl}
C.{ Xl},{ Xl X3}
D.{X2},{X3}
第5题:
某一封闭系统只有l、2两个表面A1=2A2,X2,l=0.5,X2,2=0.5 ,则Xl,2为多少?
A.Xl,2=0.25
B.Xl,2=0.2
C.Xl,2=0.1
D.Xl,2=0.3