2/20
19/21
21/19
18/20
20/18
第1题:
有以下程序: Class Date { public: Date(int y,int m,mt d); { year=y; month=m; day=d; } Date(int y=2000) { year=y; month=10; day=1; } Date(Date &D) { year=d.year; month=d.month; day=d.day; } Void prin
A.2
B.3
C.4
D.5
第2题:
有以下程序: class Date { public: Date(int y,int m,int D) ; { year =y; month=m; day=d; } Date(int y=2000) { year=y; month=10; day=1; } Date(Date &D) { year=d.year; month=d.month; day=d.day; } void print () { cout<<year<<"."<<month<<"."<<day<<end1; } private: int year,month,day; }; Date fun(Date D) { Date temp; temp=d; return temp; } int main() { Date date1(2000,1,1),date2(0,0,0); Date date3(date1); date2=fun(date3); return 0; } 程序执行时,Date类的拷贝构造函数被调用的次数是
A.2
B.3
C.4
D.5
第3题:
A. X x=new X();
Y y=new Y();
Z z=new Z();
y=(Y)x;
B. X x=new X();
Y y=new Y();
Z z=new Z();
x=(X)y;
C. X x=new X();
Y y=new Y();
Z z=new Z();
Z=(Z)x;
D. X x=new X();
Y y=new Y();
Z z=new Z();
W w=(W)x;
答案:D
解析:对象的强制类型转换的格式要求:"W w=(W)x;",只有D项符合
第4题:
SIEMENS数控铣床上可以这样编写圆弧程序G2X50Y40AR=150。
第5题:
有以下程序: Class Date {public: Date(int y,int m,int d); {year=y; month=m; day=d;} Date(int y=2000) {year=y; month=10; day=1;) Date(Date &D) {year=d.year; month=d.month; day=d.day;} void print() {cout<<year<<“.”<<mo
A.2
B.3
C.4
D.5
第6题:
Our stocks include a wide range of first-class electrical typewriters at very competitive prices.They have the correcting and automatically storing system. From the catalogues enclosed, you will find that our prices are much lower than those in the market.(英译中)
第7题:
下面语句正确的是
A.If x<3 * y And x>y Then y=x^3
B.If x<3 * y And x>y Then y=x3
C.If x<3 * y:x>y Then y=x^3
D.If x<3 * y And x>y Then y=x* *3
第8题:
(53)下列关于函数依赖和多值依赖的叙述中,( )是不正确的。
Ⅰ、若X→Y,则X→→Y Ⅱ、若X→→Y,则X→Y
Ⅲ、若Y í X,则X→Y Ⅳ、若Y í X,则X→→Y
Ⅴ、若X→Y,Y* ì Y,则X→Y* Ⅵ、若X→→Y,Y*ìY,则X→→Y*
A)仅Ⅱ和Ⅳ
B)仅Ⅰ、Ⅱ和Ⅳ
C)仅Ⅱ和Ⅵ
D)仅Ⅳ、Ⅴ和Ⅵ
第9题:
第10题:
已知元素X、Y的核电荷数小于31,且能形成XY2型的化合物。回答下列问题:若Y的阴离子与Ar有相同的电子层结构,则X的原子外围电子层排布构型有哪些?