itgle.com
更多“单选题If one title is selected at random out of the total inventory, the chance that the title is available in print as either a paperback or hardcover or both is ______.A 5 out of 30B 7 out of 30C 18 out of 30D 23 out of 30”相关问题
  • 第1题:

    现有:classOutput{publicstaticvoidmain(String[]args){inti=5:System.out.print("4"+i+"");System.out.print(i+5+"7");System.out.println(i+"8");}}结果为:()

    A.99722

    B.955758

    C.4510758

    D.459722


    参考答案:C

  • 第2题:

    staticvoidtest()throwsRuntimeException{try{System.out.print(”test);thrownewRuntimeException();}catch(Exceptionex){System.out.print(”exception);}}publicstaticvoidmain(String[]args){try{test();}catch(RuntimeExceptionex){System.out.print(”runtime);}System.out.print(”end);}Whatistheresult?()

    A.testend

    B.Compilationfails.

    C.testruntimeend

    D.testexceptionend

    E.AThrowableisthrownbymainatruntime.


    参考答案:D

  • 第3题:

    publicclassX{publicstaticvoidmain(String[]args){try{badMethod();System.out.print(A”);}catch(Exceptionex){System.out.print(B”);}finally{System.out.print(C”);}System.out.print(D”);}publicstaticvoidbadMethod(){thrownewRuntimeException();}}Whatistheresult?()

    A.AB

    B.BC

    C.ABC

    D.BCD

    E.Compilationfails.


    参考答案:D

  • 第4题:

    编译和执行以下代码,输出结果是( )。 int i=1; switch (i) { case 0: System.out.print("zero,"); break; case 1: System.out.print("one,"); case 2: System.out.print("two,"); default: System.out.println("default"); }

    A.one,

    B.one,two,

    C.one,two,default

    D.default


    正确答案:C

  • 第5题:

    class One {  public One() { System.out.print(1); }  }  class Two extends One {  public Two() { System.out.print(2); }  }  class Three extends Two {  public Three() { System.out.print(3); }  }  public class Numbers{  public static void main( String[] argv) { new Three(); }  }  What is the result when this code is executed?() 

    • A、 1
    • B、 3
    • C、 123
    • D、 321
    • E、 The code rims with no output.

    正确答案:C

  • 第6题:

    public class X {  public static void main(String [] args) {  try {  badMethod();  System.out.print(“A”); }  catch (Exception ex) {  System.out.print(“B”);  }  finally {  System.out.print(“C”);  }  System.out.print(“D”);  }   public static void badMethod() {} }  What is the result?()  

    • A、 AC
    • B、 BD
    • C、 ACD
    • D、 ABCD
    • E、 Compilation fails.

    正确答案:C

  • 第7题:

    现有:  class Output  {  public static void main (String[]  args)    {      int i=5:  System.out.print( "4"+i+"");      System.out.print (i+5+"7");     System.out.println  (i+"8");      }      }      结果为:()     

    • A、  99722
    • B、  955758
    • C、  4510758
    • D、  459722

    正确答案:C

  • 第8题:

    单选题
    public class X {  public static void main(String [] args) {  try {  badMethod();  System.out.print(“A”);  }  catch (RuntimeException ex) {  System.out.print(“B”);  }  catch (Exception ex1) {  System.out.print(“C”);  }   finally {  System.out.print(“D”);  }  System.out.print(“E”);  }  public static void badMethod() {  throw new RuntimeException();  }  }  What is the result?()
    A

     BD

    B

     BCD

    C

     BDE

    D

     BCDE

    E

     ABCDE

    F

     Compilation fails.


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

  • 第9题:

    单选题
    class One {  public One() { System.out.print(1); }  }  class Two extends One {  public Two() { System.out.print(2); }  }  class Three extends Two {  public Three() { System.out.print(3); }  }  public class Numbers{  public static void main( String[] argv) { new Three(); }  }  What is the result when this code is executed?()
    A

     1

    B

     3

    C

     123

    D

     321

    E

     The code rims with no output.


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

  • 第10题:

    单选题
    下列语句中正确的是()。
    A

    IfA≠BThenSystem.out.print(A不等于B);

    B

    If(A≠B)System.out.print(A不等于B);

    C

    If(A!=B)ThenSystem.out.print(A不等于B);

    D

    IfA!=BThenSystem.out.printf(A不等于B);


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

  • 第11题:

    单选题
    Which of the following is an appropriate title for this passage?
    A

    Researchers Have Pointed Out the Disadvantages of Breast-feeding

    B

    Researchers Have Found Out the Shortcomings of Formula

    C

    Breast-feeding Improves Chances of Success

    D

    Breast-feeding Benefits Both Mother and Baby


    正确答案: C
    解析:
    文章首段首句交代了文章主旨大意“Babies who are breast-fed may be more likely to be successful in life...”(与配方奶粉喂养的孩子相比,母乳喂养的孩子在将来更可能取得成功)。后文就是对母乳喂养的好处通过跟踪调查进行具体说明。A、B两项说的是缺点,不符合文章主题,D项说的是母乳喂养对妈妈和孩子的好处,但本文主要讲的是对孩子的好处,并没有提到对妈妈有好处。选项C正确。

  • 第12题:

    单选题
    If one title is selected at random out of the total inventory, the chance that the title is available in print in both paperback and hardcover is ______.
    A

    5 out of 30

    B

    7 out of 30

    C

    18 out of 30

    D

    23 out of 30


    正确答案: D
    解析:
    两圆重叠部分中的符号代表的是即可用于平装书也可用于精装书的书名,这样的符号共有5个,也就是说3000个书名中共有500个可同时用于平装书和精装书,因此概率为5\30。

  • 第13题:

    publicclassBase{publicstaticfinalStringFOO=foo”;publicstaticvoidmain(String[]args){Baseb=newBase();Subs=newSub();System.out.print(Base.FOO);System.out.print(Sub.FOO);System.out.print(b.FOO);System.out.print(s.FOO);System.out.print(((Base)s).FOO);}}classSubextendsBase{publicstaticfinalStringFOO=bar;}Whatistheresult?()

    A.foofoofoofoofoo

    B.foobarfoobarbar

    C.foobarfoofoofoo

    D.foobarfoobarfoo

    E.barbarbarbarbar

    F.foofoofoobarbar

    G.foofoofoobarfoo


    参考答案:D

  • 第14题:

    publicclassX{publicstaticvoidmain(String[]args){try{badMethod();System.out.print(A”);}catch(RuntimeExceptionex){System.out.print(B”);}catch(Exceptionex1){System.out.print(C”);}finally{System.out.print(D”);}System.out.print(E”);}publicstaticvoidbadMethod(){thrownewRuntimeException();}}Whatistheresult?()

    A.BD

    B.BCD

    C.BDE

    D.BCDE

    E.ABCDE

    F.Compilationfails.


    参考答案:C

  • 第15题:

    publicclassX{publicstaticvoidmain(String[]args){try{badMethod();System.out.print(A”);}catch(Exceptionex){System.out.print(B”);}finally{System.out.print(C”);}System.out.print(D”);}publicstaticvoidbadMethod(){}}Whatistheresult?()

    A.AC

    B.BD

    C.ACD

    D.ABCD

    E.Compilationfails.


    参考答案:C

  • 第16题:

    下面程序段的输出结果是:int a = 2;System.out.print( a++);System.out.print( a);System.out.print(++a);

    A.333

    B.334

    C.234

    D.233


    正确答案:C

  • 第17题:

    public class Pet{     private String name;     public Pet(){  System.out.print(1);    }  public Pet(String name){        System.out.print(2);    } }  public class Dog extends Pet{     public Dog(){  System.out.print(4);    }  public Dog(String name){        super(name);  System.out.print(3);    } }  执行new Dog(“棕熊”);后程序输出是哪项?()  

    • A、 33
    • B、 13
    • C、 23
    • D、 123

    正确答案:C

  • 第18题:

    public class X {  public static void main(String [] args) {  try {  badMethod();  System.out.print(“A”);  }  catch (RuntimeException ex) {  System.out.print(“B”);  }  catch (Exception ex1) {  System.out.print(“C”);  }   finally {  System.out.print(“D”);  }  System.out.print(“E”);  }  public static void badMethod() {  throw new RuntimeException();  }  }  What is the result?()  

    • A、 BD
    • B、 BCD
    • C、 BDE
    • D、 BCDE
    • E、 ABCDE
    • F、 Compilation fails.

    正确答案:C

  • 第19题:

    单选题
    public class Pet{   private String name;   public Pet(){   System.out.print(1);  }   public Pet(String name){   System.out.print(2);  }  }   public class Dog extends Pet{  public Dog(){   System.out.print(4);  }   public Dog(String name){   super(name);   System.out.print(3);  }   }   执行new Dog(“棕熊”);后程序输出是哪项?()
    A

     33

    B

     13

    C

     23

    D

     123


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

  • 第20题:

    单选题
    What is the best title for this passage?
    A

    Computer Newspapers Are Well Liked

    B

    Newspapers of the Future Will Likely Be on Computer

    C

    Newspapers Are out of Fashion

    D

    New Communication Technology


    正确答案: B
    解析:
    作者在本文中介绍了一种新型报纸。就是说在未来,人们可能不再从传统意义上的报纸上,而是从电脑屏幕上获得新闻。而且随着科技的发展,新的技术不断出现,这种技术会逐渐代替报纸。本文主要介绍报纸的转变,故选B。

  • 第21题:

    单选题
    public class X {  public static void main(String [] args) {  try {  badMethod();  System.out.print(“A”);  }  catch (Exception ex) {  System.out.print(“B”);  }  finally {  System.out.print(“C”);  }  System.out.print(“D”);  }  public static void badMethod() {  throw new RuntimeException();  }  }  What is the result? ()
    A

     AB

    B

     BC

    C

     ABC

    D

     BCD

    E

     Compilation fails.


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

  • 第22题:

    单选题
    public class X {  public static void main(String [] args) {  try {  badMethod();  System.out.print(“A”); }  catch (Exception ex) {  System.out.print(“B”);  }  finally {  System.out.print(“C”);  }  System.out.print(“D”);  }   public static void badMethod() {} }  What is the result?()
    A

     AC

    B

     BD

    C

     ACD

    D

     ABCD

    E

     Compilation fails.


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

  • 第23题:

    单选题
    现有:  class Output  {  public static void main (String[]  args)    {      int i=5:  System.out.print( "4"+i+"");      System.out.print (i+5+"7");     System.out.println  (i+"8");      }      }      结果为:()
    A

      99722

    B

      955758

    C

      4510758

    D

      459722


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