考题
() in our class went to the new movie but no one enjoyed it very much.
A、EverybodyB、Everyone
考题
有如下程序:#includeusing namespace std;class ONE{public:virtual void f(){cout"l";}};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;}执行上面程序的输出是 【 11 】 。
考题
有如下程序: include using namespaee std; class ONE{ public: virtual void f
有如下程序:include <iostream>using namespaee std;class ONE{public:virtual void f( ){cout<<"1";}};class TWO:public ONE{public:TWO( )1 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;}程序的输出结果是______。
考题
( 35 )有如下程序:#includeiostreamusing namespace std;class ONE{int c;public:ONE ( ) : c ( 0 ) {cout1;}ONE ( int n ) : c ( n ) {cout2;}};class TWO{ONE onel;ONE one2;public:TWO ( int m ) : one2 ( m ) {cout3;}};int main () tTWO t ( 4 )return 0}运行时的输出结果是A ) 3B ) 23C ) 123D ) 213
考题
Eponyms is a process that puts an existing word of one class into another class.()
考题
Ms.Priely is the only one of the teachers who( ) got that wonderful idea.
A、willB、have beenC、haveD、has
考题
Lucy and Lily is both in Class One.()
考题
有如下程序: include using namespace std; class ONE { public: virtual void f() {
有如下程序: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;}执行上面程序的输出是【 】。
考题
one of the distinctive features about the british class system is that it has also retained a hereditary aristocracy. ()
考题
类clasg one在声明func成员函数时发生错误,出错原因是______。class oneprivate:int a;public:void func(two);};class two{private:int b;friend vold one::func(two);};void one::func(twor){a=r.b;}
考题
有如下程序:#includeiostreamusing narnespace std;class ONE{int e;public:ONE():c(O){cout1;)ONE(int n):c(13){cout2;}};class TWO{ONE oriel;ONE one2,public:TWO(int m):one2(m){cout3;}};int main(){TWO t(4);return O;}运行时的输出结果是A.3B.23C.123D.213
考题
有下列程序:includeusing namespace std;class ONE{ public:virtual void f(){COUt
有下列程序: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
考题
关于下列代码编译或执行结果的描述中,正确的是( )。 public class Test{ public static void main(String argsE]){ TcstThread pml=new TestThread("One") pml.start; TestThread pm2=new TestThread("Tw0") pm2.start; } } class TestThread extends Thread( private String sTname=""; TestThread(String s){ sTname=s; } public void run{ for(int i=O;i2;i++){ try{ sleep(1000); }catch(InterruptedException e){} system.out.print(sTname+""); } } }A.不能通过编译,TestThread类中不能定义变量和构造方法B.输出One One Two TwoC.输出Two One One TwoD.选项B或C都有可能出现
考题
类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;}
考题
12.A. grade one,class fourB. class four,grade oneC. Grade One,Class FourD. Class Four,Grade One
考题
The red flower goes from one to()in the class.Athe otherBothersCanotherDother
考题
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?() A、 1B、 3C、 123D、 321E、 The code rims with no output.
考题
class One { void foo() {} } class Two extends One { //insert method here } Which three methods, inserted individually at line 14, will correctly complete class Two?()A、 int foo() { /* more code here */ }B、 void foo() { /* more code here */ }C、 public void foo() { /* more code here */ }D、 private void foo() { /* more code here */ }E、 protected void foo() { /* more code here */ }
考题
A computer’s onboard LPT1 port fails. Which of the following I/O cards should be installed to fix this problem?()A、SerialB、ParallelC、FireWireD、USB
考题
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?()A、 public void foo() { }B、 public int foo() { return 3; }C、 public Two foo() { return this; }D、 public One foo() { return this; }E、 public Object foo() { return this; }
考题
单选题He was one of the boys who _____ late for class.A
areB
isC
wereD
was
考题
多选题class One { void foo() {} } class Two extends One { //insert method here } Which three methods, inserted individually at line 14, will correctly complete class Two?()Aint foo() { /* more code here */ }Bvoid foo() { /* more code here */ }Cpublic void foo() { /* more code here */ }Dprivate void foo() { /* more code here */ }Eprotected void foo() { /* more code here */ }
考题
单选题There ______ a basketball match between Class One and Class Three this afternoon.A
is going to beB
will haveC
are going to beD
is going to have
考题
单选题There are not_____students in Class One as in Class Two.A
so manyB
so muchC
moreD
much more
考题
单选题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?()A
1B
3C
123D
321E
The code rims with no output.
考题
单选题She has got two cats now. ______ black and white one is called Rosie and ______ brown one Joseph.A
The; aB
A; theC
The; theD
A; a
考题
单选题One Class Surveyor got onboard of a 45000 DWT new construction Chemical Tanker a week before delivery, he carried out the initial Safety Equipment survey in accordance with the Fire Fighting and Life-saving Control Plan.Surveyor noted that the vessel had two (2) 15 persons’ Life-rafts at each side, and One (1) 6 persons’ Life-raft on the forward main deck. The surveyor verified the Life-rafts’ certificate and found that the max storing height of one 15 person’s Life-raft at port side to be 18 meters as indicated on its certificate. But the surveyor checked the drawings and noted that actual storing position was 18.5 meters above the Lightweight water line of this vessel.Surveyor recommended shipyard to change the Life-raft or re-locate the life-raft in order to comply with the stowing height requirement as indicated on its certificate. Do you think the Surveyor’s recommendation is correct?()A
The surveyor’s comment was not correct; because the Life-raft has the Hydra-Static Releaser, should not care the height of Storing PositionB
The surveyor’s comment was correct; because if the Storing height was over the Limit of the Life-raft, It may damage the Life-raft when throwing off to the waterC
The surveyor’s comment was not correct; the storing position was the same location as showing on the approved drawingsD
The surveyor’s comment was correct; as a surveyor, he can give any comment as he like
考题
多选题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?()Apublic void foo() { }Bpublic int foo() { return 3; }Cpublic Two foo() { return this; }Dpublic One foo() { return this; }Epublic Object foo() { return this; }