A、would go
B、went
C、will be going
D、goes
第1题:
第2题:
11.abstractclassVehicle{publicintspeed(){return0;}}12.classCarextendsVehicle{publicintspeed(){return60;}}13.classRaceCarextendsCar{publicintspeed(){return150;}}......21.RaceCarracer=newRaceCar();22.Carcar=newRaceCar();23.Vehiclevehicle=newRaceCar();24.System.out.println(racer.speed()+,?+car.speed()25.+,+vehicle.speed());Whatistheresult?()
A.0,0,0
B.150,60,0
C.Compilationfails.
D.150,150,150
E.Anexceptionisthrownatruntime.
第3题:
18.It was a very long day for Jack. He didn’t get home from school ________six o’clock.
A. since
B. to
C. by
D. until
第4题:
You can go out, ____________ you promise to be back before 11 o’clock.
A、as far as
B、as long as
C、as well as
D、as soon as
第5题:
You can go out, ______you promise to be back before 11 o'clock.
A. even though
B. ever since
C. as far as
D. as long is
7.答案为D 你可以出去,只要你保证11点之前回来。even though“即使”;ever since“自从”;as far as“就……而言”;as long as“只要”。根据句子的逻辑关系,只有D选项正确。
第6题:
本题要求编程过现一个继承体系,定义一个抽象基类 Vehicle,含私有数据成员车速 speed,车轮数量wheel。 从 Vehicle 派生出自行车类 Bicycle、汽车类Car;从 Bicycle 和Car中派生出摩托车类 Motocycle。