What is the objective of the Cisco Compatible Extensions program?()
第1题:
A、OB1
B、OB35
C、OB82
D、OB100
第2题:
有如下程序: #include <iostream> using namespace std; class Obj { static int i; public: Obj( ){i++;} ~Obj(){i--;} static int getVal( ){ return i;} }; int Obj::i=0; void f() {Obj ob2; cout<<ob2.getVal( ); } int main( ){ Obj ob1; f(); Obj *ob3=ew Obj; cout<<ob3->getVal( ); delete ob3; cout<<Obj::getVal( ); return 0; } 程序的输出结果是
A.232
B.231
C.222
D.221
第3题:
A、OB100
B、OB1
C、FC1
D、FB1
第4题:
使用VC6打开考生文件夹下的工程test38_1,此工程包含一个源程序文件test38_1.cpp,但该程序运行有问题,请改正函数中的错误,使该程序的输出结果为:
2 is a factor of 10
源程序文件test38_1.cpp清单如下:
include <iostream.h>
class myclass
{
/***************** found *****************/
int n,d
public:
myclass(int i, int j){ n=i; d=j; }
friend int factor( myclass ob);
};
/***************** found *****************/
int myclass::factor(myclass ob)
{
/***************** found *****************/
if(ob.n%ob.d)
return 1;
else
return 0;
}
void main()
{
myclass ob1(10,2),ob2(13,3);
if(factor(ob1))
cout<<"2 is a factor of 10\n";
if(factor(ob2))
cout<<"3 is not a factor of 13\n";
}
第5题:
A、点选OB两点,在任意位置放置
B、点选OB两点,在以OB为对角点的矩形区域放置
C、点选OB直线,在任意位置放置
D、B和C都可以
第6题:
此题为判断题(对,错)。
第7题:
A、吹氩气
B、吹氧气
C、吹氮气
D、吹空气
第8题:
A、OB1,FB1,FC1
B、FC1,FB1,OB1
C、OB1,FC1,FB1
D、FB1,FC1,OB1
第9题:
A、OB102
B、OB100
C、OB101
D、OB1
第10题:
有如下程序:#include <iostream>using namespace std;class Obj { static int i;public: Obj(){i++;} -Obj(){i--;} static int getVal(){return i;} };int Obj::i=0;void f(){Obj ob2; cout<<ob2.getVal(); }hat main(){ Obj ob1; f(); Obj *ob3=new Obj; cout<<ob3->getVal(); delete ob3; cout<<Obj:: getVal(); return (); }程序的输出结果是( )。
A.232
B.231
C.222
D.221