单选题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 ______.A5 out of 30B7 out of 30C18 out of 30D23 out of 30
单选题
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
参考解析
解析:
两圆重叠部分中的符号代表的是即可用于平装书也可用于精装书的书名,这样的符号共有5个,也就是说3000个书名中共有500个可同时用于平装书和精装书,因此概率为5\30。
两圆重叠部分中的符号代表的是即可用于平装书也可用于精装书的书名,这样的符号共有5个,也就是说3000个书名中共有500个可同时用于平装书和精装书,因此概率为5\30。
相关考题:
They waved to one another till the train was __________. A.out of stockB.out of orderC.out of sightD.out of action
classBeta{publicstaticvoidmain(String[]args){Integerx=newInteger(6)*7;if(x!=42){System.out.print(42);}elseif(x.equals(42)){System.out.print(dot=);}else{System.out.print(done);}}}结果为:()A.42B.doneC.dot=D.编译失败
classOutput{publicstaticvoidmain(String[]args){inti=4;System.out.print(3+i+);System.out.print(i+4+6);System.out.println(i+7);}}结果为() A.78611B.744647C.348611D.348647
publicclassPet{privateStringname;publicPet(){System.out.print(1);}publicPet(Stringname){System.out.print(2);}}publicclassDogextendsPet{publicDog(){System.out.print(4);}publicDog(Stringname){super(name);System.out.print(3);}}执行newDog(棕熊”);后程序输出是哪项?()A.33B.13C.23D.123
现有:classOutput{publicstaticvoidmain(String[]args){inti=5:System.out.print(4+i+);System.out.print(i+5+7);System.out.println(i+8);}}结果为:() A.99722B.955758C.4510758D.459722
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.foofoofoofoofooB.foobarfoobarbarC.foobarfoofoofooD.foobarfoobarfooE.barbarbarbarbarF.foofoofoobarbarG.foofoofoobarfoo
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.testendB.Compilationfails.C.testruntimeendD.testexceptionendE.AThrowableisthrownbymainatruntime.
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.BDB.BCDC.BDED.BCDEE.ABCDEF.Compilationfails.
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.ABB.BCC.ABCD.BCDE.Compilationfails.
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.ACB.BDC.ACDD.ABCDE.Compilationfails.
编译和执行以下代码,输出结果是( )。 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,defaultD.default
下面程序段的输出结果是:int a = 2;System.out.print( a++);System.out.print( a);System.out.print(++a); A.333B.334C.234D.233
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、 1B、 3C、 123D、 321E、 The code rims with no output.
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、 33B、 13C、 23D、 123
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、 ACB、 BDC、 ACDD、 ABCDE、 Compilation fails.
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、 BDB、 BCDC、 BDED、 BCDEE、 ABCDEF、 Compilation fails.
现有: 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、 99722B、 955758C、 4510758D、 459722
单选题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 33B 13C 23D 123
单选题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 BDB BCDC BDED BCDEE ABCDEF Compilation fails.
单选题What is the best title for this passage?AComputer Newspapers Are Well LikedBNewspapers of the Future Will Likely Be on ComputerCNewspapers Are out of FashionDNew Communication Technology
单选题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 1B 3C 123D 321E The code rims with no output.
单选题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 ABB BCC ABCD BCDE Compilation fails.
单选题下列语句中正确的是()。AIfA≠BThenSystem.out.print(A不等于B);BIf(A≠B)System.out.print(A不等于B);CIf(A!=B)ThenSystem.out.print(A不等于B);DIfA!=BThenSystem.out.printf(A不等于B);
单选题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 ACB BDC ACDD ABCDE Compilation fails.
单选题Which of the following is an appropriate title for this passage?AResearchers Have Pointed Out the Disadvantages of Breast-feedingBResearchers Have Found Out the Shortcomings of FormulaCBreast-feeding Improves Chances of SuccessDBreast-feeding Benefits Both Mother and Baby
单选题现有: 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 99722B 955758C 4510758D 459722
单选题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 ______.A5 out of 30B7 out of 30C18 out of 30D23 out of 30
单选题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 ______.A5 out of 30B7 out of 30C18 out of 30D23 out of 30