How can I ________ the information room?A.find out the way toB.be aware of the direction toC.gain access toD.be led to

题目

How can I ________ the information room?

A.find out the way to

B.be aware of the direction to

C.gain access to

D.be led to


相似考题
参考答案和解析
正确答案:C
更多“How can I ________ the information room?A.find out the way toB.be aware of the direction t ”相关问题
  • 第1题:

    The price you quoted is so high that we () help ()this transaction.

    A、can…to cancel

    B、can't...canceling

    C、can…canceling

    D、can't…to cancel


    参考答案:B

  • 第2题:

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

    A.What

    B.Where

    C.How


    参考答案:A

  • 第3题:

    请阅读下面程序 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()方法,才能运行该线程。

  • 第4题:

    请阅读下面程序 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方法,才能运行该线程。

  • 第5题:

    下列程序的执行结果是______。 class T5 implements Runnable { public void run() { int i = 0; While(i<2) { Thread t = Thread.currentThread(); System.out.println(i + t.getName()); i++ } } } public class Testl6 { public static void main(String[] args) { Thread t1 = new Thread(new T5(), "TS"); t1.start (); Thread t = Thread.currentThread(); for(int i = 0; i<3; i++) { System.out.println(I + t.getName()); if(i == 1 && t1.isAlive()) t.yield(); } } }

    A.Omain lmam 0T5 1T5 2main

    B.Omain lmam 2main

    C.Omain lmain 2main 0T5 1T5

    D.Omain lmain 0T5 1T5


    正确答案:A
    解析:currentThread()方法得到main()方法的线程t,在循环中打印出t的名称,再判断如果t1还活着,就执行t.yield(), main()方法让出CPU,t1获得运行的机会,并执行t1的循环,输出2行包含n名字的字符串, t1执行完毕,回到main()方法中,线程main继续执行,输出最后一行字符串。

  • 第6题:

    ---- Look! The man at the gate ________ be our headmaster. He is always standing there every morning.

    --- - No, it ________ be him. He is holding a meeting in the office now.

    A.must, can’t B.must, mustn’t C.can’t, can’t D.can’t, mustn’t


    正确答案:A