更多“If you _______ out to play, I would go along with you. ”相关问题
  • 第1题:

    "You _________ finish your homework before the dinner." said mother.

    A.should

    B.have to

    C.must

    D.would


    参考答案:C

  • 第2题:

    Quite often after dinner, they ( ) music in a pub and ( ) home about midnight.

    A. are playing…are going

    B. will play… are going

    C. play…go


    正确答案:C

  • 第3题:

    “You ____ have a wrong number,” she said. “There’s no one of that name here.”

    A. need

    B. can

    C. must

    D. would


    正确答案:C
    解析:must have意思是肯定有什么,依题意可得,答案是C。

  • 第4题:

    “Must I return the book to the library in a week?”“No, you.”()

    A. couldn’t

    B. mustn’t

    C. needn’t

    D. won’t


    参考答案:C

  • 第5题:

    阅读以下说明和Java程序,填补代码中的空缺(1)~(5),将解答填入答题纸的对应栏内。 【说明】 对部分乐器进行建模,其类图如图6-1所示,包括:乐器(Instrument)、管乐器(Wind)、打击乐器( Percussion)、弦乐器(Stringed)、木管乐器(Woodwind)、铜管乐器(Brass)。图6-1 类图 下面是实现上述设计的Java代码,其中音乐类(Music)使用各类乐器(Instrument)进行演奏和调音等操作。

    【Java代码】 enum Note{ /* 枚举各种音调 */ MIDD[LE_C, C_SHARP, B_FLAT; //其他略 } interface Instrument { /* 接口,乐器 */ (1) ; //play方法接口 void adjust() ; //adjust方法接口 } class Wind (2) { public void play(Note n) { System.out.println("Wind.play()"+n); } public void adjust() { System.out.println("Wind.adjust()"); } } /* 类Percussion和Stringet实现代码略 */ class Brass (3) { public void play(Note n) { System.out.println("Brass.play()"+n); } public void adjust () { System.out.println("Brass.adjust()"); } } class Woodwind extends Wind { public void play (Note n) { System.out.println("Woodwind.play()"+n); } } public void tune(Instrument i) { i.play(Note.MIDDLE_C); } void adjust(Instrument i) { i.adjust(); } void tuneAll (4) e ) { class Music { for(lnstrument i : e) { adjust(i); tune(i); } } public static void main(String[] args) { Music music= (5) Music(); Instrument[] orchestra={ new Wind(), new Woodwind() }; music.tuneAll(orchestra); } 奉程序运行后的输出结果为: Wind.adjust() Wind.play() MIDDLE_C Wind.adjust() Woodwind.play() MIDDLE_C


    正确答案:
    (1)void play(Note n)
    (2)implements Instrument
    (3)extends Wind
    (4)Instrument[]
    (5)new

  • 第6题:

    阅读以下说明和Java程序,填补代码中的空缺,将解答填入答题纸的对应栏内。
    [说明]
    对部分乐器进行建模,其类图如下图所示,包括:乐器(Instrument)、管乐器(Wind)、打击乐器(Percussion)、弦乐器(Stringed)、木管乐器(Woodwind)、铜管乐器(Brass)。

    类图
    下面是实现上述设计的Java代码,其中音乐类(Music)使用各类乐器(Instrument)进行演奏和调音等操作。

    [Java代码] enum Note{/*枚举各种音调*/ MIDDLE_C,C_SHARP,B_FLAT; //其他略 } interfaceInstrument {/*接口,乐器*/ ______; //play方法接口 void adjust(); //adjust方法接口 } class Wind ______{ public voidplay(Note n) { System.out.println("Wind.play()"+n); } public void adjust(){System.out.println("Wind.adjust()");} } /*类Percussion和Stringed实现代码略*/ class Brass ______{ public voidplay(Note n) {System.out.println("Brass.play()"+n); } public voidadjust(){System.out.println("BrasS.adjust()");) } Class Woodwindextends Wind{ publicvoidplay(Note n){System.out.println("Woodwind.play()"+n); } } public classMusic{ voidtune(Instrument_i){i.play(Note.MIDDLE_C.; } voidadjust(Instrument i){i.adjust(); } voidtuneAll(______ e){ for(Instrumenti:e){ adjust(i); tune(i); } } public Static voidmain(String[] args){ Music music=______ Music(); Instrument[]orchestra={new Wind(), new Woodwind() }; music.tuneAll(orchestra); } }

    本程序运行后的输出结果为:

    Wind.adjust() Wind.play()MIDDLE_C Wind.adjust() Woodwind.play()MIDDLE_C


    答案:
    解析:
    voidplay (Note n)
    implements Instrument
    extends Wind
    Instrument[]
    new