itgle.com

The light of his room is still on, so he ( ) out.A、mustn't have goneB、mustn't goC、can't have goneD、can't go

题目
The light of his room is still on, so he ( ) out.

A、mustn't have gone

B、mustn't go

C、can't have gone

D、can't go


相似考题
更多“The light of his room is still on, so he ( ) out. ”相关问题
  • 第1题:

    You are signing on a deck officer,who will be designated as one of the GMDSS operators,before sailing foreign.Which statement is TRUE ________.

    A.He/she must have an STCW certificate endorsed as“Valid for Service on Vessels Operating in the GMDSS System”

    B.He/she must present either an FCC-issued license or a Coast Guard-issued license

    C.You must consult the“List of Qualifications”on the reverse of his/her FCC-issued license

    D.His/her Merchant Mariners Document must have an added endorsement as “Radio Electronics Officer”


    正确答案:A

  • 第2题:

    The working parent is not willing to listen to her (his) four-year-old child talking about hissandbox games because she (he) is___________.

    A.boring
    B.very tired
    C.busy
    D.angry

    答案:B
    解析:
    通读第四段,注意短语“fartoo beaten down”,可知父母每天工作非常辛苦和疲惫。所以和孩子的交流沟通少了。正确答案为B。A、C、D都不符合题意。

  • 第3题:

    循环移位指令的特点是将输入IN中的各位向右或向左循环移动后,送给输出OUT.()


    正确

  • 第4题:

    阅读下列说明和C++代码,回答问题,将解答填入答题纸的对应栏内。
    【说明】
    某灯具厂商欲生产一个灯具遥控器,该遥控器具有7个可编程的插槽,每个插槽都有开关按钮,对应着一个不同的灯。利用该遥控器能够统一控制房间中该厂商所有品牌灯具的开关,现采用Command(命令)模式实现该遥控器的软件部分。Command模式的类图如下图所示。

    【C++代码】

    class Light {public: Light(stringname) { /* 代码省略 */ } void on() {/* 代码省略 */ } // 开灯 void off() {/* 代码省略 */ } // 关灯};class Command {public: (1) ;};class LightOnCommand:public Command { // 开灯命令private: Light* light;public: LightOnCommand(Light* light) { this->light=light; } voidexecute() { (2) ; }};class LightOffCommand:public Command { // 关灯命令private: Light *light;public: LightOffCommand(Light* light) { this->light=light; } voidexecute() { (3) ; }};class RemoteControl{ // 遥控器private: Command*onCommands[7]; Command*offCommands[7];public: RemoteControl() { /* 代码省略*/ } voidsetCommand(int slot, Command* onCommand, Command* offCommand) { (4) =onCommand; (5) =offCommand; } voidonButtonWasPushed(int slot) { (6) ; } voidoffButtonWasPushed(int slot) { (7) ; }};int main() { RemoteControl* remoteControl=new RemoteControl(); Light*livingRoomLight=new Light("Living Room"); Light*kitchenLight=new Light("kitchen"); LightOnCommand*livingRoomLightOn=newLightOnCommand(livingRoomLight); LightOffCommand* livingRoomLightOff=newLightOffCommand(livingRoomLight); LightOnCommand*kitchenLightOn=new LightOnCommand(kitchenLight); LightOffCommand* kitchenLightOff=new LightOffCommand(kitchenLight); remoteControl->setCommand(0, livingRoomLightOn, livingRoomLightOff); remoteControl->setCommand(1,kitchenLightOn, kitchenLightOff); remoteControl->onButtonWasPushed(0); remoteControl->offButtonWasPushed(0); remoteControl->onButtonWasPushed(1); remoteControl->offButtonWasPushed(1); /* 其余代码省略 */ return 0;}


    答案:
    解析:
    (1)virtual void execute()=0
    (2)light->on()
    (3)light->off()
    (4)onCommands[slot]
    (5)offCommands[slot]
    (6)onCommands[slot]->execute()
    (7)offCommands[slot]->execute()

  • 第5题:

    在PCB设计时,可以将元件、元件类或封装分配在一个Room空间,当移动Room时,Room内的元件封装等“不”随着移动。对不对?


    B

  • 第6题:

    75、循环移位指令的特点是将输入IN中的各位向右或向左循环移动后,送给输出OUT.()


    正确