Researchers cannot ( ) the possibility that Earth may one day run out of its orbit.A. hand outB. drop outC. rule outD. keep out

题目

Researchers cannot ( ) the possibility that Earth may one day run out of its orbit.

A. hand out

B. drop out

C. rule out

D. keep out


相似考题
参考答案和解析
正确答案:C      
更多“Researchers cannot ( ) the possibility that Earth may one day run out of its orbit. ”相关问题
  • 第1题:

    classParent{Stringone,two;

    classParent{

    Stringone,two;

    publicParent(Stringa,Stringb){

    one=a;

    two=b;}

    publicvoidprint(){System.out.println(one);}}

    publicclassChildextendsParent{

    publicChild(Stringa,Stringb){

    super(a,b);

    }

    publicvoidprint(){

    System.out.println(one+"to"+two);

    }

    publicstaticvoidmain(Stringarg[]){

    Parentp=newParent("south","north");

    Parentt=newChild("east","west");

    p.print();

    t.print();

    }

    }

    Whichofthefollowingiscorrect?()


    参考答案:E
    这个题目涉及继承时的多态性问题,在前面的问题中已经有讲述,要注意的是语句t.print();在运行时t实际指向的是一个Child对象,即java在运行时决定变量的实际类型,而在编译时t是一个Parent对象,因此,如果子类Child中有父类中没有的方法,例如printAll(),那么不能使用t.printAll()。

  • 第2题:

    编译和执行以下代码,输出结果是( )。 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

  • 第3题:

    The operator needs to execute a long-running shell script. How can the script be executed so the operator does not have to wait until it is complete to access the command prompt?()

    A. ./script.ksh

    B. nohup ./script.ksh

    C. run -b ./script.ksh

    D. ./script.ksh > nohup.out


    参考答案:A

  • 第4题:

    下面程序的输出结果是( )。 public class Sun { public static void main(String args[ ]) { int i = 1; switch (i) { case 0: System.but.println("zero"); break; case 1: System.out.println("one"); case 2: System.out.println("two"); default: System.out.println ("default"); } } }

    A.one

    B.one, default

    C.one, two, default

    D.default


    正确答案:C
    解析:该题考查对switch-case-break的理解。每个分支语句后面必须有break语句,否则程序向下执行,直到遇到break语句或程序结束。所以,该题i=1时执行casel分支语句,而casel分支语句后没有break语句,程序继续向下执行case2分支语句和 default分支语句。A只执行了case 1:B只执行了casel和default;C:只执行了default。故本题的正确答案是C。

  • 第5题:

    下面程序的输出结果是( )。 Public class Sun { public static void main(String args[ ]) { int i = 9; switch (i) { default: System.out.println("default"); case 0: System.out.println("zero"); break; case 1: System.out.println("one"); case 2: System.out.println("two"); } } }

    A.default

    B.defauolt, zero

    C.error default clause not defined

    D.no output displayed


    正确答案:B
    解析:该题考查对switch-case-break的理解。每个分支语句后面必须有break语句,否则程序向下执行,直到遇到break语句或程序结束。所以该题i=9时没有匹配的case语句,执行 default分支语句,而default分支语句后没有 break语句,程序继续向下执行case 0分支语句,Case0分支语句后有break语句程序结束。故本题答案是B。

  • 第6题:

    执行下列Java语句:int x = 1; switch (x+1 ) { case 1: System.out.print("One" ); case 2: System.out.print("Two" ); case 3: System.out.print("Three" ); default: System.out.print("Error" ); } 显示器上将显示()。

    A.One

    B.Two

    C.TwoThree

    D.TwoThreeError


    case 后面的常量可以相同。