On a ship,a door that is required to be marked KEEP CLOSED is designed to ______.
A.prevent the passage of flammable gases
B.prevent the passage of poisonous vapors
C.delay the spread of heat and flames
D.maintain watertight integrity
第1题:
We returned school late from a party and found the door of the students' apartment ______.
A. had closed
B. close
C. to close
D. closed
第2题:
Hardly ______ when the door suddenly closed.
A. they had arrived
B. they arrived
C. did they arrive
D. had they arrived
9.答案为D。他们刚到门突然就关上了。副词hardly置于句首时主谓倒装,助动词提前。根据题意,主句动作发生在从句之前,从句中动词是过去式,因此主句中的动词应该用过去完成式。
第3题:
The international shore connection required on a ship is designed to ______.
A.Permit discharge of waste oil
B.Allow hook up of fire fighting water from a dock or another vessel
C.Satisfy pollution prevention requirements
D.Allow emergency use of the fire main for deballasting
第4题:
By plotting the analysis messages on weather charts, we are able to ______.
A.prevent any possible accident at sea
B.prepare a reasonable forecast of the wind and weather
C.help the mariner to fix a accurate ship’s position
D.aid the salvage of a ship in peril
第5题:
S
T
W
F
第6题:
DANGER - KEEP AWAY
DANGER - EXPLOSIVE VAPORS
DANGER - NO SMOKING
DANGER - FLAMMABLE LIQUID
第7题:
meet the applicable standards
be marked as additional equipment
be stowed in a separate area
All of the above
第8题:
When a vessel is alongside the wharf, it’s necessary for the ship to keep a 24-hour deck watch to guarantee the safety of the ship and the cargo.
When a vessel is alongside the wharf, t’s necessary for the ship to keep a 24-hour gangway watch to guarantee the safety of the ship and the cargo.
When a vessel is alongside the port, it’s necessary for the ship to keep a 24-hour deck watch to guarantee the safety of the ship and the cargo.
When a vessel is alongside the port, it’s necessary for the ship to keep a 24-hour gangway watch to guarantee the safety of the ship and the cargo.
第9题:
deck
head of the boom
heel of the boom
mast or king post
第10题:
the name of each person designated as a person in charge
the date and results of the most recent equipment inspection
cargoes carried and dates delivered,including destinations
hose information not marked on the hose
第11题:
keep silence
interfere with such communication
establish communication as directed and render such assistance as is required and appropriate
refuse communication as directed and render such assistance as it required and appropriate
第12题:
REEFER
RO/RO SHIP
CONTAINER
TANKER
第13题:
阅读以下说明和C++代码。
【说明】
传输门是传输系统中的重要装置。传输门具有Open(打开)、Closed(关闭)、Opening (正在打开)、StayOpen(保持打开)和Closing(正在关闭)五种状态。触发传输门状态转换的事件有click、complete和timeout三种。事件与其相应的状态转换如下图所示。
下面的C++代码1与C++代码2分别用两种不同的设计思路对传输门进行状态模拟,请填补代码中的空缺。
【C++代码1】
const int CLOSED=1; const int PENING=2;
const int PEN=3; const int CLOSING=4;
const int STAYOPEN=5; //定义状态变量,用不同整数表示不同状态
class Door {
Private:
int state; //传输门当前状态
void setState(int state){ this->state=state;} //设置当前状态
public:
Door():state(CLOSED){};
void getState(){ //根据当前状态输出相应的字符串
switch(state){
case OPENING: cout<<"OPENING"<<endl; break;
case CLOSED: cout<<"CLOSED"<<endl; break;
case OPEN: cout<<"OPEN"<<endl; break;
case CLOSING: cout<<"CLOSING"<<endl; break;
case STAYOPEN:cout<<"STAYOPEN"<<endl; break;
}
};
void click() { //发生click事件时进行状态转换
if ((1)) setState(OPENING);
else if ((2)) setState(CLOSING);
else if ((3)) setState(STAYOPEN);
}
void timeout(){ //发生timeout事件时进行状态转换
if (state == OPEN) setState(CLOSING);
}
void complete(){ //发生complete事件时进行状态转换
if (state == OPENING) setState(OPEN);
else if (state == CLOSING) setState(CLOSED);
}
};
int main(){
Door aDoor;
aDoor.getState();aDoor.click(); aDoor.getState();
aDoor.complete();aDoor.getState(); aDoor.click();
aDoor.getState();aDoor.click(); aDoor.getState(); return 0;
}
【C++代码2】
class Door {
public:
DoorState *CLOSED,*OPENING,*OPEN,*CLOSING,*STAYOPEN,*state;
Door();
virtual~Door(){……//释放申请的内存,此处代码省略);
void setState(DoorState *state) { this->state = state;}
void getState(){
//此处代码省略,本方法输出状态字符串,
//例如,当前状态为CLOSED时,输出字符串为“CLOSED”
};
void click();
void timeout();
void complete();
};
Door::Door(){
CLOSED = new DoorClosed(this); OPENING = new DoorOpening(this);
PEN = new DoorOpen(this); CLOSING = new DoorClosing(this);
STAYOPEN = new DoorStayOpen(this);state = CLOSED;
}
void Door :: click() {(4);)
void Door :: timeout() {(5);)
void Door :: complete() {(6);}
class DoorState//定义一个抽象的状态,它是所有状态类的基类
{
protected:Door *door;
public:
DoorState(Door *door) {this->door = door;}
virtual~DoorState(void);
virtual void click() {}
virtual void complete(
第14题:
The operator of each vessel subject to the pollution regulations is NOT required to keep written records of ______.
A.the name of each person designated as a person in charge
B.the date and results of the most recent equipment inspection
C.cargoes carried and dates delivered,including destinations
D.hose information not marked on the hose
第15题:
______water is the water to keep the ship’s stability.
A.Bilge
B.Ballast
C.Slop
D.Sanitary
第16题:
not required to be marked anywhere on the vessel
required to be marked on both bows and on the keel
required to be marked on the stern with the name of the vessel marked on both bows
required to be marked on the keel,stern,and both bows
第17题:
Bilge
Ballast
Slop
Sanitary
第18题:
A
B
C
D
第19题:
instructed in the use of portable fire extinguishers
shown a video demonstrating lifeboat launching
instructed in the use of life jackets
not required to attend the boat drill
第20题:
not required to be marked anywhere on the vessel
required to be marked on both bows and on the keel
required to be marked on the stern with the name of the vessel marked on both bows
required to be marked on the keel, stern, and both bows
第21题:
第22题:
on the station bill
on a sign next to the liferaft
on the Certificate of Inspection
in the Operations Manual
第23题:
prevent the passage of flammable gases
prevent the passage of poisonous vapors
delay the spread of heat and flames
maintain watertight integrity