参考答案和解析
正确答案: A
解析:
句意:在本学期剩下的时间里,尽量不要再迟到了。be absent from为固定搭配,意为“缺席……”。
更多“Try not to be absent _____ class again for the rest of the t”相关问题
  • 第1题:

    We will try again ____________ the failure.

    A、in spite

    B、in spite of

    C、despite of

    D、spite


    参考答案:B

  • 第2题:

    向Applet传递参数的正确描述是( )。

    A.<param name=age,value=20>

    B.<applet code=Try.class width=100,height=100, age=33>

    C.<name=age,value=20>

    D.<applet code=Try.class name=age,value=20>


    正确答案:A
    A。【解析】<Applet>标记的参数部分一般格式是[<PARAMNAME=appletParameterVALUE-value>]。

  • 第3题:

    Mia is absent() today’s writing class

    A、of

    B、to

    C、from

    D、with


    参考答案:C

  • 第4题:

    有如下模板声明:

    template<typename T1,typename 12>class A;

    下列声明中,与上述声明不等价的是

    A.template<class T1,class T2>class A;

    B.template<class T1,typename T2>class A;

    C.template<typename TI,class T2>class A;

    D.template<typename T1,T2>class A;


    正确答案:D
    解析:定义函数模板时可以使用多个类型参数,这时每个类型参数前面都要加上关键字class或typename,其间用逗号分隔。

  • 第5题:

    有如下模板声明:templateclass A;下列声明中,与上述声明不等价的是A.t

    有如下模板声明: template<typename T1,typename T2>class A; 下列声明中,与上述声明不等价的是

    A.template<class T1,class T2>class A;

    B.template<class T1,typename T2>class A;

    C.template<typename T1,class T2>class A;

    D.template<typename T1,T2>class A;


    正确答案:D
    解析:在模板定义中,一般情况下,class和typename可以互换。在选项D中,T2没有类型参数限制定义,所以和题干给出的定义不同。

  • 第6题:

    下列程序创建了一个线程并运行,请在下划线处填入正确代码。

    public class Try extends Thread{

    public static void main(String args[]){

    Threadt=new Try();

    【 】;

    }

    public void run(){

    System.out.println(“Try!”);

    }

    }


    正确答案:i
    i

  • 第7题:

    David has tried 3 times to repair the clock. He will try __________ time after having a rest.

    A.four
    B.fourth
    C.the fourth
    D.a fourth

    答案:D
    解析:
    A、B项语法错误;a fourth time意为“又一次,再一次”;the fourth time意为“第四次”,强调顺序:句意为“大卫已经尝试了三次去修理那个表,他休息后会再试一次”,虽然数量上是第四次了,但此处并不强调先后顺序,故选D。

  • 第8题:

    单选题
    David has tried 3 times to repair the clock. He will try _______time after having a rest.
    A

    four

    B

    fourth

    C

    the fourth

    D

    a fourth


    正确答案: D
    解析:

  • 第9题:

    多选题
    class Order implements Runnable {    public void run ()  {  try { Thread.sleep (2000) ;  } catch (Exception e)    System.out.print("in") ;  public static void main (String [] args)  {    Thread t = new Thread (new Order ()) ;    t.start () ;  System.out.print ("pre ") ;  try { t.join () ;  } catch (Exception e)  { }    System.out.print ("post") ;   可产生哪两项结果?()
    A

    pre in post

    B

    pre in

    C

    in post pre

    D

    in pre post

    E

    pre post in


    正确答案: C,A
    解析: 暂无解析

  • 第10题:

    单选题
    Why has Anne been absent from class?    
    A

    She has been ill.

    B

    She has been in Mexico.

    C

    Some relatives have been visiting her.


    正确答案: C
    解析: 关于Anne缺席的原因,男士的回答是她的家人来看望她了。因此C项是正确的解释。
    【录音原文】
    W: Anne missed class again, didn’t she? I wonder why.
    M: Well. I called her this morning. Her brother and his family have been visiting her. That’s all. They live in Mexico.

  • 第11题:

    单选题
    Try not to be absent ______ class again for the rest of the term.
    A

    from

    B

    on

    C

    in

    D

    of


    正确答案: C
    解析:
    固定搭配。be absent from为固定搭配,意为“缺席…”句意:在本学期剩下的时间里,尽量不要再迟到了。

  • 第12题:

    单选题
    有如下模板声明:template class A;下列声明中,与上述声明不等价的是(  )。
    A

    template<class T1,class T2> class A;

    B

    template<class T1,typename T2> class A;

    C

    template<typename T1,class T2> class A;

    D

    template<typename T1,T2> class A;


    正确答案: B
    解析:
    在类模板中,数据类型本身是它的参数,因而是一种参数化类型的类,是类的生成器。对于本题来说,模板形参表中包括类型Tl和T2两个类型参数,D项,T1说明其类型,而T2没有说明其类型,与题干中的模板说明不一致。

  • 第13题:

    —How could you be so rude walking in here in the middle of my class? —( ).

    A、Nothing much

    B、Never mind

    C、Nothing serious

    D、Never again


    参考答案:D

  • 第14题:

    Click the Exhibit button. Given:Which statement is true if a TestException is thrown on line 3 of class B? ()

    A.Line 33 must be called within a try block.

    B.The exception thrown by method1 in class A is not required to be caught.

    C.The method declared on line 31 must be declared to throw a RuntimeException.

    D.On line 5 of class A, the call to method2 of class B does not need to be placed in a try/catch block.


    参考答案:B

  • 第15题:

    Have failed three times, he didn’t want to try again.()

    此题为判断题(对,错)。


    参考答案:错误

  • 第16题:

    下列程序创建了一个线程并运行,横线处应填入的正确代码是( )。 public class Try extends Thread{ public static void main(String args[]){ Thread t=new Try; ; } public void runf System.out.println(”Try!"); } }

    A.t.start

    B.t.class

    C.t.thread

    D.t.static


    正确答案:A
    A。【解析】start是类Thread的方法,其中start方法用于启动线程,使之从新建状态转入就绪状态并进入就绪队列排队,一旦轮到它来享用CPU资源时,就可以脱离创建它的主线程独立地开始自己的生命周期了。

  • 第17题:

    向Applet传递参数的正确描述是()。A.B.

    向Applet传递参数的正确描述是( )。

    A.<paramname=age,value=20>

    B.<appletcode=Try.class width=100,height=100,age=33>

    C.<name=age,value=20>

    D.<appletcode=Try.class name=age,value=20>


    正确答案:A
    解析:Applet>标记的参数部分一般格式是:[PARAMNAME=appletParameterVALUE=value>]。

  • 第18题:

    Christine was just a girl in one of my class. I never knew much about

    Her except for that she was strang . she didn’t talk many .her hair was black

    and purple, and she worn black sports shoes and a black sweater ,although in the

    summer .she was ,infact, rather attractively, and she never seemed ^care what

    the rest if us thought about her .like the rest of my classmate ,I didn’t really

    want to get closest to her . it was only when we did their chemistry projiect

    together that I begin to uanderstand why christine dressed the way she did .

    __________


    正确答案:

  • 第19题:

    考虑下列Java代码:  class A {  public static void main(String[] args) {    try {  System.out.println("Hello, World!");  }  } }  其中的错误是()。 

    • A、没有catch或finally块
    • B、没有抛出异常的代码不能出现在try代码块内
    • C、如果没有catch块而使用try,main()会总是抛出异常.
    • D、class A 没有throws IOException

    正确答案:A

  • 第20题:

    单选题
    No one was absent from the meeting, was there?
    A

    was she

    B

    weren’t she

    C

    were they

    D

    weren’t they


    正确答案: C
    解析:
    当陈述部分是no one / nobody,everyone / everybody,someone / somebody,none等表示人的不定代词时,反意疑问句部分的主语多用they,也可用he,不用she。

  • 第21题:

    单选题
    下列对模板的声明中,正确的是(  )。
    A

    template<T>

    B

    template<class T1,T2>

    C

    template<class T1,class T2>

    D

    template<class T1;class T2>


    正确答案: A
    解析:
    模板定义的<类型参数表>中包含一个或多个由逗号分隔的类型参数项,每一项由关键词class后跟一个用户命名的标识符,此标识符为类型参数,它不是一种数据类型,但可以同一般数据类型一样使用。在使用类模板时,必须将其实例化,即用实际的数据类型代替它。

  • 第22题:

    多选题
    class Order implements Runnable {  public void run() {  try { Thread.sleep(2000); } catch (Exception e) { }  System.out.print("in ");  }  public static void main(String [] args) {  Thread t = new Thread(new Order());  t.start();  System.out.print("pre ");  try { t.join(); } catch (Exception e) { }  System.out.print("post ");  } }  可产生哪两项结果?()
    A

    in pre

    B

    pre in

    C

    in pre post

    D

    pre in post


    正确答案: D,C
    解析: 暂无解析

  • 第23题:

    单选题
    1. class A implements Runnable (  2. int i;  3. public void run ( ) (  4. try (  5. thread.sleep(5000);  6. i= 10;  7. ) catch(InterruptedException e) {}  8. )  9. )  10.    11. public class Test {  12. public static void  main (string args[]) ( 13. try (  14. A a = new A ( );  15. Thread t = new Thread (a);  16. t.start( );  17.    18. int j= a.i;  19.    20. ) catch (Exception e) {}  21. )  22. }   Which statement al line 17 will ensure that j=10 at line 19?()
    A

     a.wait();

    B

     t.wait();

    C

     t.join();

    D

     t.yield();

    E

     t.notify();

    F

     a.notify();

    G

     t.interrupt();


    正确答案: D
    解析: 暂无解析

  • 第24题:

    单选题
    A: Tom, why didn’t you come to the class yesterday?  B: ______
    A

    I had come, but there was a visitor at home.

    B

    I was going to, but I had an unexpected visitor.

    C

    No way, as a visitor was coming to visit me.

    D

    I’m sorry. I won’t miss the class again.


    正确答案: B
    解析:
    该题测试的是对询问的回答。从双方的对话语气看可能是老师与学生之间的对话。A问B为什么昨天没来上课,B应正面回答原因。A项是在说谎或狡辩,因为该项前后内容自相矛盾。C项和D项没有正面回答问题,而且语言也不得体。只有B项是正确回答。