A.1
B.7
C.6
D.4
I can’t afford a bicycle, _______ a car.A. not to speakB. not to mentionC. that’s to sayD. let alone
点击查看答案
In order to cut down on the carbon emission, more people choose to travel_.A.by electric car, bicycle or planeB.by private car, bicycle or busC.by bus, electric car or planeD.by bicycle, bus or electric car
请使用VC6或使用【答题】菜单打开考生文件夹proj2下的工程proj2,其中定义了vehiele类,并派生出motorcar类和bicycle类。然后以motorcar和bicycle作为基类,再派生出motorcycle类。要求将Vehicle作为虚基类,避免二义性问题。请在程序中的横线处填写适当的代码并删除横线,以实现上述类定义。此程序的正确输出结果应为:801501001注意:只能在横线处填写适当的代码,不要改动程序中的其他内容,也不要删除或移动“//****found****”。includeclass vehicle{private:int MaxSpeed;int Weight;public://*************found************vehicle(int maxspeed,int weight):——~vehicle{};int getMaxSpeed{return MaxSpeed;}int getWeight{retum Weight;}};//****************found************class bicycle:——public vehicle{private:int Height;public:bicycle(int maxspeed,int weight,int height):vehicle(maxspeed,weight),Height(height){}int getHeight{retum Height;};};//*******************found**************class motorcar:——public vehicle{private:int SeatNum;public:motorcar(int maxspeed。int weight,int seatnum):vehicle(maxspeed,weight),SeatNum(seatnum){}int getSeatNum{return SeatNum;};};//*****************found***************class motorcycle:——{public:motorcycle(int maxspeed,int weight,int height):vehicle(maxspeed,weight),bicycle(maxspeed,weight,height),motorcar(maxspeed,weight,1){}};void main{motorcycle a(80,150,100);cout<<a.getMaxSpeed<<endl;cout<<a.getWeight<<endl;cout<<a.getHeight<<endl;cout<<a.getSeatNum<<endl;}
We can't afford a bicycle ()a car.A. even ifB. let aloneC. let out
根据短文内容判断给出的语句是否正确,正确的写“T”,错误的写“F”。Pedestrian Critically Injured in Westwood HitandRun CrashA pedestrian was critically injured in a Westwood area car accident near the comer of Wilshire Boulevard and Veteran Avenue early morning on January 5, 2016.The police said it involved a hitandrun driver. The car was dark and was last seen traveling east on Ashton Avenue from Veteran Avenue. The investigation is ongoing.It appears that the driver struck and seriously injured the pedestrian, and left the victim lying in the roadway without even stopping to help or call emergency personnel. Outrageous! Leaving the scene of an injury or fatal crash is a serious crime under California law. California Vehicle Code 20001(a)states:“The driver of a vehicle involved in an accident resulting in injury to a person, other than himself or herself, or in the death of a person shall immediately stop the vehicle at the scene of the accident.”We hope the driver in this case is arrested and brought to justice. If you have any information about the suspect or the vehicle, please visit the HitandRun Reward website at hitandrunreward.com to offer a useful tip and become qualified for a $1,000 reward.( )21. A pedestrian was dead in the hitandrun case.( )22. Leaving the scene of an injury or fatal crash is not a serious crime under California law.( )23. The investigation is going on.( )24. The driver was against the California Vehicle Code 20001.( )25. Any information about hitand run cases provided via hitandrunreward.com can get $1,000 reward.
使用VC6打开考生文件夹下的工程test17_1,此工程包含一个源程序文件test17_1.唧,但该程序运行有问题,请改正程序中的错误,使程序的输出结果如下:Vehicle messageCar messageVehicle message源程序文件test17_1.cpp 清单如下:include <iostream.h>class vehicle{int wheels;float weight;public:/***************** found *****************/void message(void){ cout<<"Vehicle message\n";}};class car:public vehicle{int passenger_load;public:/***************** found *****************/void message (void){cout>>"Car message\n";}};class truck:public vehicle{int passenger_load;float payload;public:int passengers(void){return passenger_load;}};void main(){vehicle * unicycle;unicycle=new vehicle;/***************** found *****************/unicycle.message()delete unicycle;unicycle=new car;unicycle->message();delete unicycle;unicycle=new truck;unicycle->message();delete unicycle;}
若已定义了类Vehicle,则下列派生类定义中,错误的是A.class Car:Vehicle{/*类体略*/);B.class Car:public Car{/*类体略*/);C.class Car:public Vehicle{/*类体略*/);D.class Car:virtual public Vehicle{/*类体略*/);