The traffic lights were red when the driver reached them.To the surprise of his passenger,the ear did not slow down.Unexpectedly the passenger was thrown forward in the vehicle as the driver put on h

题目
The traffic lights were red when the driver reached them.To the surprise of his passenger,the ear did not slow down.Unexpectedly the passenger was thrown forward in the vehicle as the driver put on his brakes at the last moment.The car stopped just in time.
"Sorry,I didn't notice the light.I thought it was green until I saw that it was the top light which was shining."
This strange story is quite true.About ten men in every hundred are color blind in some way;women are luckier--only about one in two hundred suffers from color blindness.
In some cases,a man may not be able to see deep red.He may think that red,orange and yellow are all the same as green.
People often like one color more than others.Blue is the color of the sky and sea.Green makes us think of fields and trees.Red is the color of blood and makes some people think of danger.Black is the color of night.In the dark we cannot see what is around us so we are sometimes afraid of the unknown and do not like black as a color.

According to the passage,which of the following statements is true?

A.Black stands for unhappines
B.Black makes people think of nigh
C.Black makes people think of sorro
D.Black is the color of the mournin
参考答案和解析
答案:B
解析:
参见文章最后一个句子。
如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

The driver ____at the crossroads as the traffic lights flashed red.

A. pulled off

B. pulled up

C. pulled round

D. pulled over


正确答案:B

第2题:

Taxi driver: Here you are, sir. Queens Hotel.

Passenger: How much is it?

Taxi driver: Three dollars and seventy-five cents.

Passenger: Here is four dollars. _____________.

A: It ’s not necessary to give me the coins

B: Don’t giv e me the rest

C: Keep the change

D: I give up the pocket money


参考答案:C

第3题:

A)阅读下面的短文,判断短文后面的句子是否符合短文内容。符合的写(A),不符合的写(B)。(10分)

It was a cold night. The taxi driver didn’t take even one passenger(乘客) all day. When he went by the railway station, he saw a young man coming out with two bags in his hands. So he drove to him and asked, “Where are you going,sir?”

“To the Red Hotel,” the young man answered. When the taxi driver heard this, he didn’t feel happy any more. The young man would give him only three dollars because the hotel was near the railway station. But suddenly, he had an idea. He took the young man through many streets of the big city.

After a long time, they arrived at the hotel. “Here we are! You should pay me fifteen dollars, please,” the taxi driver said to the young man. “What? Fifteen dollars! Do you think I’m a fool? Only last week, I took a taxi from the railway station to this hotel and I only gave the driver thirteen dollars. I know how much I have to pay for the trip.” 

21.The driver was not happy before he saw the young man.


正确答案:√
A

第4题:

阅读下列说明、图和C++代码,填补空缺。

[说明]

已知对某载客车辆(Car)进行类建模,如图12-2所示,其中类Engine表示发动机引擎,类Wheel表示车轮,类Body表示车身,类Driver表示司机,类Passenger表示乘客。

const int __________ =7; //定义最多载客数

const int MAX_WHEELS=5; //定义最多轮胎数

class Body{ //此处代码省略 ); //车身类

class Passenger{ //此处代码省略}; //乘客类

Class Wheel{ //此处代码省略}; //车轮类

Class Driver{ //司机类

public:

string name; //表示第几路公交车司机

Driver(string driverName):marne( __________ ){}; //构造函数

};

class Engine{ //引擎类

public:

string engineNo; //引擎编号

Engine(string engineNo){ __________ ->engineNo=engineNo; }

//构造函数

};

Class Car{ //汽车类

protected:

Engine *engine; Driver *driver; Body body;

Wheel *wheels[MAX_WHEELS]; Passenger *passengers[MAX_PASSENGERS];

public:

Car(Driver *driver)( //构造函数

this->driver=driver;

engine=new Engine("TX653 6型号引擎");

for(int index=0; index<MAX_WHEELS; index++){

wheels[index]=new Wheel( );

}

for(int index=0; index passengers[index]=NULL;

}

}

virtual -Car( ){ //析构函数

for (int index=0; index<MAX_WHEELS; index++)

delete wheels[index];

delete __________ ;

}

int getPassengerNumber( ){ //获取车上乘客数量

//此处代码省略

}

void getonpassenger(Passenger *apassenger ){

//乘客上车

//此处代码省略

}

void run( ){ //开车

if(driver==NULL){cout<< "司机尚未上车!"; return; }

//此处代码省略

}

};

void main( ){

Driver driver("第五路公交车司机");

Car car( __________ );

Passenger passengers[MAX_PASSENGERS];

for(int index=0; index<MAX_PASSENGERS; index++)

//乘客上车处理

car. getOnPasSenger(&passengers[index]);

car. run( );

}


正确答案:MAX_PASSENGERS driverName this engine &driver
MAX_PASSENGERS driverName this engine &driver 解析:根据类图描述,分析可得:一辆汽车可以载0~7名乘客,一辆汽车可以被一个或者多个司机驾驶,并且一辆汽车有4~5个轮胎,一个引擎和一个车框架。程序代码中空(1)处表示一辆汽车最多载客数目,从后面的程序代码分析可得,应该填写MAX_PASSENGERS。空(2)处用于构造一个司机对象,需要司机名称driverName作为参数。空(3)处主要设置车的假设司机,由于参数的名称与成员变量的名称相同,因此需要加上this以示区别。空(4)处所对应代码段是汽车car的析构函数,与car的构造函数相对应,需要将构造函数中创建的引擎和车轮删除,所以空(4)处应为删除引擎。空(5)处用于产生一个汽车对象,所以,需要给汽车对象传递合适的参数,构造方法中需要传递一个司机对象,因此应该将driver对象传递到汽车对象中。

第5题:

The lorry driver was badly ______ when his lorry crashed into a wall.

A.pained

B.hurt

C.hit

D.damaged


参考答案:B

第6题:

Why did you stop my car, police officer?

()You just ran a red light.

A. Your driver's license please.

B. I just want to.

C. No why.


答案:A

解析:警官,为什么你拦下我?

拿出你的驾驶证。你刚闯红灯了。





第7题:

The passenger ( ) to the driver to stop the bus and let him get off.

A、moved

B、mentioned

C、motioned

D、motivated


参考答案:C

第8题:

The passenger ____________ a sign with his hand and the taxi began to drive towards him.

A.had

B.gave

C.made

D.did


参考答案:C

第9题:

阅读下列说明、图和Java代码,将应填入(n)处的字句写在对应栏内。

【说明】

已知对某载客车辆(Car)进行类建模,如图7-1所示,其中类Engine表示发动机引擎,类Wheel表示车轮,类Body表示车身,类Driver表示司机,类Passenger表示乘客。

【Java代码】

class Body{ //此处代码省略 ); //车身类

class Passenger{ //此处代码省略 )/ //乘客类

class Wheel{ //此处代码省略 ); //车轮类

class Driver{ //司机类

public String name; //表示第几路公交车司机

public Driver(String driverName){name = driverName/) //构造函数

};

class Engine{//引擎类

public String engineNo;//引擎编号

public Engine(String engineNo){this.engineNo=engineNo;)//构造函数

};

public class Car{//汽车类

static final int(1)=7; //定义最多载客数

static final int MAX WHEELS =5; //定义最多轮胎数

protected Engine engine;

protected Driver driver;

protected Body body=new Body();

protected Wheel[] wheels;

protected Passenger[]passengers;

public Car(Driver driver){ //构造函数

(2).driver=driver;

engine=new Engine("TX6536型号引擎");

wheels=new Wheel[MAX WHEELS];

passengers=new Passenger[MAX_PASSENGERS];

for(int index=0;index<MAX_WHEELS;index++){

wheels[index]=new Wheel();

}

for(int index=0;index<MAX_PASSENGERS;index++){

passengers[index]=null;

}

}

int getPassengerNumber(){//获取车上乘客数量

//此处代码省略

}

void getOnPassenger(Passenger aPassenger){//乘客上车

//此处代码省略

}

void run(){ //开车

if((3)){System.out.println("司机尚未上车!");return;}

//此处代码省略

}

public static void main(String args[]){

Driver driver=new Driver("第五路公交车司机");

Car car=new Car((4));

for (int index = 0 ; index < MAX_PASSENGERS; index ++)

car.getOnPassenger((5) Passenger());

car.run();

}

}


正确答案:(1)MAX_PASSENGERS (2)this (3)driver==null (4)driver (5)new
(1)MAX_PASSENGERS (2)this (3)driver==null (4)driver (5)new 解析:根据类图描述[分析]可得:一辆汽车可以载0~7名乘客,一辆汽车可以被一个或者多个司机驾驶,并且一辆汽车有4~5个轮胎,一个引擎和一个车框架。程序代码中空(1)处表示一辆汽车最多载客数目,从后面的程序代码[分析]可得,应该填写 MAX PASSENGERS。空(2)处主要设置车的假设司机,由于参数的名称与成员变量的名称相同,因此需要加上this以示区别。空(3)处主要用于判断司机是否上车,因此,代码应该对汽车所维持的司机对象的引用是否为空进行判断。空(4)处用于产生一个汽车对象,所以需要给汽车对象传递合适的参数,构造方法中需要传递一个司机对象,因此应该将driver对象传递到汽车对象中。空(5)处表示乘客上车,getOnPassenger要求传递的是乘客对象,因此空缺处应为构造乘客对象的代码。

第10题:

试题五(共 15 分)

阅读下列说明、图和C++代码,将应填入 (n) 处的字句写在答题纸的对应栏内。

[说明]

已知对某载客车辆(Car)进行类建模,如图 5-1所示,其中类 Engine 表示发动机引擎,类 Wheel 表示车轮,类 Body 表示车身,类 Driver 表示司机,类 Passenger 表示乘客。

[C++代码]

const int (1) = 7; //定义最多载客数

const int MAX_WHEELS = 5; //定义最多轮胎数

class Body{ //此处代码省略 }; //车身类

class Passenger{ //此处代码省略 }; //乘客类

class Wheel{ //此处代码省略 }; //车轮类

class Driver{ //司机类

public:

string name; //表示第几路公交车司机

Driver(string driverName):name( (2) ){}; //构造函数

};

class Engine{ //引擎类

public:

string engineNo; //引擎编号

Engine(string engineNo){ (3) ->engineNo = engineNo; } //构造函数

};

class Car{ //汽车类

protected:

Engine * engine; Driver * driver; Body body;

Wheel * wheels[MAX_WHEELS]; Passenger * passengers[MAX_PASSENGERS];

public:

Car(Driver *driver){ //构造函数

this->driver = driver;

engine = new Engine("TX6536 型号引擎");

for (int index = 0; index < MAX_WHEELS; index++){

wheels[index] = new Wheel();

}

for (int index = 0; index < MAX_PASSENGERS; index++){

passengers[index] = NULL;

}

}

virtual ~Car(){ //析构函数

for (int index=0; index < MAX_WHEELS; index++)

delete wheels[index];

delete (4) ;

}

int getPassengerNumber(){ //获取车上乘客数量

//此处代码省略

}

void getOnPassenger(Passenger * aPassenger ){ //乘客上车

//此处代码省略

}

void run(){ //开车

if(driver == NULL){ cout << "司机尚未上车!"; return; }

//此处代码省略

}

};

void main(){

Driver driver("第五路公交车司机");

Car car( (5) );

Passenger passengers[MAX_PASSENGERS];

for (int index = 0 ; index < MAX_PASSENGERS; index ++) //乘客上车处理

car.getOnPassenger(&passengers[index]);

car.run();

}


正确答案:


更多相关问题