网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)
单选题
Mr. Jackson closed the fridge door so that _____.
A

he could take a photo

B

the snake couldn’t go back to the zoo

C

the snake became cool

D

he was safe from the snake


参考答案

参考解析
解析:
从文中的“I threw it away, but it landed in the fridge. So I closed the door.”可知,关上门是为了安全,因此选D项。
更多 “单选题Mr. Jackson closed the fridge door so that _____.A he could take a photoB the snake couldn’t go back to the zooC the snake became coolD he was safe from the snake” 相关考题
考题 Arbitration is a _____ approach to conflict management in resolving conflict disputes.A lose-loseB win-winC win-loseD lose-winE closed door

考题 120 Arbitration is a _____ approach to conflict management in resolving conflict disputes.A. lose-loseB. win-winC. win-loseD. lose-winE. closed door

考题 Would you mind () the door for me? A、closeB、to closeC、closingD、closed

考题 Someone is at the door. _____must be Mr. Black. A、He.B、It.C、This.D、That. A

考题 At the award ceremony, Mr. Jackson said, “For me, there has been______(没有更大的回报)than your support.”(great)

考题 We returned school late from a party and found the door of the students' apartment ______.A. had closedB. closeC. to closeD. closed

考题 You can get the goods()to your door so quickly nowadays.A、 deliverB、 deliveringC、 delivered

考题 —Has Mr. Smith had an accident? —() A、I don’t hope so.B、I hope not so.C、I hope not.D、I hope to be not.

考题 ______ the window, please.It is so cold. A.To closeB.ClosingC.CloseD.Closed

考题 阅读以下说明和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(

考题 阅读以下说明以及Java程序。【说明】传输门是传输系统中的重要装置。传输门具有Open(打开)、Closed(关闭)、Opening (正在打开)、StayOpen(保持打开)和Closing(正在关闭)五种状态。触发状态的转换事件有click、complete和timeout三种。事件与其相应的状态转换如下图所示。下面的Java代码1与Java代码2分别用两种不同的设计思路对传输门进行状态模拟,请填补代码中的空缺。【Java代码1】public class Door {public static final int CLOSED = 1; public static final int PENING = 2;public static final int PEN = 3; public static final int CLOSING = 4;public static final int STAYOPEN = 5; private int state = CLOSED;//定义状态变量,用不同的整数表示不同状态private void setState(int state){ this.state = state;}//设置传输门当前状态public void getState() {//此处代码省略,本方法输出状态字符串,//例如,当前状态为CLOSED时,输出字符串为"CLOSED"}public void click() { //发生click事件时进行状态转换if ((1);) setState(OPENING);else if ((2);) setState{CLOSING);else if ((3);) setState(STAYOPEN);}//发生timeout事件时进行状态转换public void timeout() { if (state == OPEN) setState(CLOSING);}public void complete() {//发生complete事件时进行状态转换if (state == OPENING) setState(OPEN);else if (state == CLOSING) setState(CLOSED);}public static void main(String [] args){Door aDoor = new Door();aDoor.getState();aDoor.click();aDoor.getState();aDoor.complete();aDoor.getState();aDoor.click();aDoor.getState();aDoor.click();aDoor.getState();return;}}【Java代码2】public class Door {public final DoorState CLOSED = new DoorClosed(this);public final DoorState PENING = new DoorOpening(this);public final DoorState PEN = new DoorOpen(this);public final DoorState CLOSING = new DoorClosing(this);public final DoorState STAYOPEN = new DoorStayOpen(this);private DoorState state = CLOSED;//设置传输门当前状态public void setState(DoorState state) { this.state=state;}public void getState(){ //根据当前状态输出对应的状态字符串System.out.println(state.getClass().getName());}public void click(){(4);}//发生click事件时进行状态转换public void timeout(){(5);}//发生timeout事件时进行状态转换public void complete(){(6);)//发生complete事件时进行状态转换public static void main(String[]args){Door aDoor = new Door();aDoor.getState();aDoor.click();aDoor.getState();aDoor.complete();aDoor.getState();aDoor.timeout();aDoor.getState();return;}}public abstract class DoorState { //定义所有状态类的基类protected Door door ;public DoorState(Door doer) { this.door = door;}public void click() {}public void complete() {}

考题 6. She was so angry at ________ he was doing ________she walked out.and closed the door heavily behind her.A. what ; thatB. that ; whatC. that ; thatD. what ; what

考题 Hardly ______ when the door suddenly closed.A. they had arrivedB. they arrivedC. did they arriveD. had they arrived

考题 On a ship,a door that is required to be marked KEEP CLOSED is designed to ______.A.prevent the passage of flammable gasesB.prevent the passage of poisonous vaporsC.delay the spread of heat and flamesD.maintain watertight integrity

考题 Mr. Smith advised us to withdraw___________A.so that to get not involved B.so as to get not involved C.so as not to get involved D.so that not to get involved

考题 Federal Reserve policymakers clashed over the benefits and risks of launching a $600 billion program to rejuvenate the economy, hut voted for it anyway, according to minutes of their closed-door deliberations released Tuesday.Despite a near unanimous 10-1

考题 — Has Mr. Smith had an accident? —()AI don’t hope so.BI hope not so.CI hope not.DI hope to be not

考题 A321飞机舱门全部关闭,FAP面板上的DOOR CLOSED()A、红灯亮B、绿灯灭C、绿灯稳定亮D、红灯灭

考题 单选题Mr. Jackson threw the snake away probably because _____.A he was surprisedB he wanted to get a better photoC his chest began to hurtD the fridge door was open

考题 单选题Mr. Smith, there’s a man at _____ front door who says he has _____ news of great importance for you.A the; /B the; theC /; /D /; the

考题 单选题Mr. Edward was not in, so his brother acted as ()at the party.A actorB guestC hostD dancer

考题 多选题Identify the two tablespaces whose data files are so critical that only a closed recovery is possible.()ASYSAUXBTOOLSCUNDODINDEXESYSTEMFUSERSGTEMP

考题 单选题You can get the goods ()to your door so quickly nowadays.A deliverB deliveringC delivered

考题 单选题When the snake bit Mr. Jackson, it was _____.A hiding in a box of bananasB climbing out of a box of bananasC lying under a dishD climbing into the fridge

考题 单选题She was so ______ in her job that she didn’t hear anybody knocking at the door.A attractedB absorbedC drawnD concentrated

考题 单选题— Has Mr. Smith had an accident? —()A I don’t hope so.B I hope not so.C I hope not.D I hope to be not

考题 单选题The doctors gave Mr. Jackson the right medicine when _____.A London Zoo told them what kind of snake it wasB Mr. Jackson sent the photo to the hospitalC he left hospital the next dayD the snake bit him