A.car
B.7
C.1
D.2
第1题:
使用VC6打开考生文件夹下的工程test17_1,此工程包含一个源程序文件test17_1.唧,但该程序运行有问题,请改正程序中的错误,使程序的输出结果如下:
Vehicle message
Car message
Vehicle 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;
}
第2题:
A.train
B.bus
C.car
D.ship
第3题:
A.3
B.7
C.6
D.4
第4题:
A.2
B.7
C.6
D.4
第5题:
29. When people travel on business(出差) ,they usually take _________ .
A. a train or a plane
B. a boat or a train
C.a car or a boat .
D.a plane or a car
第6题:
第7题:
下面哪一些是合法的C++标识符? extern,_book,Car,car_1,ca1r,1car,friend,car1_Car,Car_Type,No.1,123
第8题:
Direct correction.
Indirect correction.
Self-correction.
Peer correction.
第9题:
taken effective measures to solve the car-theft problem
overestimated the seriousness of the car-theft problem
failed to give proper attention to the car-theft problem
realized the seriousness of the car-theft problem
第10题:
By train and by car.
Just by car.
On foot.
第11题:
0, 0,0
150, 60, 0
Compilation fails.
150, 150, 150
An exception is thrown at runtime.
第12题:
buying a new car that
to buy a new car that
to buy a new car what
buying a new car which
第13题:
若已定义了类Vehicle,则下列派生类定义中,错误的是
A.class Car:Vehicle{/*类体略*/);
B.class Car:public Car{/*类体略*/);
C.class Car:public Vehicle{/*类体略*/);
D.class Car:virtual public Vehicle{/*类体略*/);
第14题:
A.1
B.7
C.6
D.4
第15题:
A.1
B.2
C.3
D.4
第16题:
22..What kind of car does Mrs Hill have?
A. A fast and new car.
B. A fast but old car.
C. A slow and old car.
D. A fast but small car.
第17题:
In order to cut down on the carbon emission,more people choose to travel______.
A.by electric car,bicycle or plane
B.by private car,bicycle or bus
C.by bus,electric car or plane
D.by bicycle. bus or electric car
第18题:
第19题:
By car.
By train.
By plane.
By ship.
第20题:
By car.
By bus.
By ship.
By train.
第21题:
Direct correction.
Indirect correction
Self-correction.
Peer correction.
第22题:
car-renting services in the US
a special rate of car-renting
the advantages of car-renting
a US car-renting company
第23题: