更多“The light is on. He ___________________ at home. ”相关问题
  • 第1题:

    一个函数的参数不能是对变量的引用,除非在 php.ini 中把()设为on.


    正确答案:
     

  • 第2题:

    An overtaking situation at night would be one in which one vessel sees which light(s) of a vessel ahead ?______.

    A.Masthead lights and sidelights

    B.One sidelight, the masthead lights and stern-light

    C.Both sidelights

    D.Stern-light


    正确答案:D
    在夜间处于追越中,一船将看到其前方船的哪个号灯?尾灯

  • 第3题:

    People are moving from major cities to smaller ones.

    A:big
    B:important
    C:heavy
    D:light

    答案:A
    解析:
    本题考查的是对形容词的认知。这句话的意思是:人们正从大城市移向较小的城市。major的意思是“大的、主要的”,例如:The safe disposal of nuclear waste is a major problem.安全处置核废料是个大问题。选项A big大的。选项B important重要的。选项C heavy沉重的。选项D light轻的。major和big意思最接近,所以选A。

  • 第4题:

    Monsoons are characterized by ______.

    A.light,variable winds with little or no humidity

    B.strong,gusty winds that blow from the same general direction all year

    C.steady winds that reverse direction semiannually

    D.strong,cyclonic winds that change direction to conform to the passage of an extreme low pressure system


    正确答案:C

  • 第5题:

    阅读下列说明和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()

  • 第6题:

    Some Southern learners of English in China tend to say“night”as“light”.This shows:().

    AThey cannot pronounce/n/

    BInterlangue interference because there is notthe sound /n/in their mother tongue

    CThe teachers do not have a good teaching method

    DThey do not like to pronounce nasal sounds


    B