A. composed
B. in consisted
C. is constituted
D. consisted
第1题:
( 35 )有如下程序:
#include<iostream>
using namespace std;
class ONE{
int c;
public:
ONE ( ) : c ( 0 ) {cout<<1;}
ONE ( int n ) : c ( n ) {cout<<2;}
};
class TWO{
ONE onel;
ONE one2;
public:
TWO ( int m ) : one2 ( m ) {cout<<3;}
};
int main () t
TWO t ( 4 )
return 0
}
运行时的输出结果是
A ) 3
B ) 23
C ) 123
D ) 213
第2题:
22.I am in _________ .
A. Grade One
B. eight
C. my friend
D. Class One
第3题:
Lucy and Lily is both in Class One.()
第4题:
有如下程序:
include <iostream>
using namespace std;
class ONE
{
public:
virtual void f() { cout << "1"; }
};
class TWO: public ONE
{
public:
TWO() { cout << "2"; }
};
class THREE: public TWO
{
public:
virtual void f() {TWO::f(); cout << "3"; }
};
int main()
{
ONE aa, *p;
TWO bb;
THREE cc;
p=&cc;
P->f();
return 0;
}
执行上面程序的输出是【 】。
第5题:
有如下程序:
#include<iostream>
using narnespace std;
class ONE{
int e;
public:
ONE():c(O){cout<<1;)
ONE(int n):c(13){cout<<2;}
};
class TWO{
ONE oriel;
ONE one2,
public:
TWO(int m):one2(m){cout<<3;}
};
int main(){
TWO t(4);
return O;
}
运行时的输出结果是
A.3
B.23
C.123
D.213
第6题:
类class one 在声明func 成员函数时发生错误,出错原因是【 】。
Class one
{
private:
int a;
public:
void func(two& )
};
class two
{
private:
int b;
friend void one: :func(two & );
};
void one: : func(two& r)
a=r.b;
}
第7题:
第8题:
The red flower goes from one to()in the class.
Athe other
Bothers
Canother
Dother
第9题:
class One { public One foo() { return this; } } class Two extends One { public One foo() { return this; } } class Three extends Two { // insert method here } Which two methods, inserted individually, correctly complete the Three class?()
第10题:
is going to be
will have
are going to be
is going to have
第11题:
When the distress alert is sounded
When the emergency equipment is switching on
When the general emergency alarm is sounded
When the distress broadcast is sounded
第12题:
public void foo() { }
public int foo() { return 3; }
public Two foo() { return this; }
public One foo() { return this; }
public Object foo() { return this; }
第13题:
I like the arguments she _______. They sound very convincing.
A. composed
B. said
C. presented
D. offered
第14题:
Eponyms is a process that puts an existing word of one class into another class.()
第15题:
A、made up of
B、consisted of
C、made up with
D、consisted in
第16题:
类clasg one在声明func成员函数时发生错误,出错原因是______。
class one
private:
int a;
public:
void func(two&);
};
class two
{
private:
int b;
friend vold one::func(two&);
};
void one::func(two&r)
{
a=r.b;
}
第17题:
有下列程序:
include<iostream>
using namespace std;
class ONE
{
public:
virtual void f(){COUt<<"1";}
};
c1assTWO:public ONE
{
public:
TWO(){cout<<"2";}
};
class THREE:public TWO
{
pub
第18题:
12.
A. grade one,class four
B. class four,grade one
C. Grade One,Class Four
D. Class Four,Grade One
第19题:
第20题:
class One { public One() { System.out.print(1); } } class Two extends One { public Two() { System.out.print(2); } } class Three extends Two { public Three() { System.out.print(3); } } public class Numbers{ public static void main( String[] argv) { new Three(); } } What is the result when this code is executed?()
第21题:
are
is
were
was
第22题:
so many
so much
more
much more
第23题:
1
3
123
321
The code rims with no output.