I was out of town at the time, so I don’t know exactly how it _______.A. was happening B. happened C. happens D. has happened

题目

I was out of town at the time, so I don’t know exactly how it _______.

A. was happening B. happened C. happens D. has happened


相似考题
更多“I was out of town at the time, so I don’t know exactly how it _______.A. was happening ”相关问题
  • 第1题:

    请阅读下面程序 public class ThreadTest{ public static void main(String args[])throws Ex- ception{ int i=0; Hello t=new Hello; ; while(true){ System.Out.println("Good Morning"+i++): if(i= =2t.isAlive){ System.out.println("Main waiting for Hel- lo!"); join;//等待t运行结束 } if(i= =5)break;} } } class Hello extends Thread{ int l; public void run{ while(true)( System.Out.println("Hell0"+i++); if(i= =5)break;)))

    A.t.sleep

    B.t.yield

    C.t.interrupt

    D.t.start


    正确答案:D
    D。【解析】程序中通过继承Thread类来创建线程,而Java中新创建的线程不会自动运行,必须调用线程的start方法,才能运行该线程。

  • 第2题:

    I’d been expecting ________ letters the whole day, but there aren’t ________ for me.

    A.What

    B.Where

    C.How


    参考答案:A

  • 第3题:

    请在下面程序中的每条横线处填写一个语句,使程序的功能完整。程序的输出结果为:

    TIME=1867

    b=9

    i=123

    注意:请勿改动main()主方法和其他已有的语句内容,仅在横线处填入适当的语句。

    源程序文件代码清单如下:

    import java.io.*;

    public class DataType

    {

    public ______ void main(String args[])

    {

    byte b;

    int i;//定义变量i为int类型

    ______//定义常量TIME为整型,且值为1867

    i=123;//给变量i赋值,该值为十进制的123

    ______//给变量赋值,改值为八进制的11,十进制的9

    System.out.println("TIME"+TIME);

    System.out.println("b="+b);

    System.out.println("i="+i);

    }

    }


    正确答案:static final int TIME=1867 b=011
    static final int TIME=1867 b=011 解析:本题主要考查main()主方法的使用以及如何定义常量。static修饰符是说明main()方法是静态方法,final int TIME=1867语句的功能是定义一个整型的常量TIME,并且其值为1867,b=011语句是给变量b赋值为八进制的11,十进制的9。

  • 第4题:

    ____ I?know,?there?isn’t?such?a?word?in?English.

    A、As much as

    B、So far as

    C、As long as

    D、As soon as


    参考答案:B

  • 第5题:

    请阅读下面程序 publicclassThreadTest{ publicstaticvoidmain(Stringargs[])throwsException{ inti=0; Hellot=newHello(); ______, while(true){ System.out.println("GoodMoming"+i++); if(i==2&&t.isAlive()){ System.out.println("MainwaitingforHello!"); t.join();//等待t运行结束 } if(i==5)break;} } } classHelloextendsThread{ inti; publicvoidrun(){ while(true){ System.out.println("Hello"+i++); if(i==5)break;}}} 为使该程序正确执行, 下划线处的语句应是( )。

    A.t.sleep()

    B.t.yield()

    C.t.interrupt()

    D.t.start()


    正确答案:D
    解析: 程序中通过继承Thread类来创建线程,而Java中新创建的线程不会自动运行,必须调用线程的start()方法,才能运行该线程。

  • 第6题:

    -- Ann is in hospital.

    -- Oh, really? I __ know. I __ go and visit her.

    A. didn’t; am going to B. don’t; would

    C. don’t; will D. didn't; will


    正确答案:D