给出下列代码片断: if(x>0) {System.out.println("first");} else if(x>-3){System.out.println("second");} else{System.out.println("third");} 请问x处于什么范围时将打印字符串“second”?( )A.x>0B.x>-3C.x<=3D.x<=0x>-3

给出下列代码片断: if(x>0) {System.out.println("first");} else if(x>-3){System.out.println("second");} else{System.out.println("third");} 请问x处于什么范围时将打印字符串“second”?( )

A.x>0

B.x>-3

C.x<=3

D.x<=0&x>-3


相关考题:

下列代码中if(x>0){System.out.println("first");} else if(x>-3)(System.out.println("second");} else{ System.out.println("third");}要求打印字符串为"second"时,x的取值范围是A.x<=0 并且 x>-3B.x>0C.x>-3D.x<=-3

下列代码中 if(x>0){System.out.println("first");} else if(x>-3){System.out.println("second");} else{System.out.println("third");} 要求打印字符串为"second"时,x的取值范围是( )。A.x≤0并且x>-3B.x>0C.x>-3D.x≤-3

下列代码中 if(x>0){System.out.println("first");} else if(x>-3){System.out.println("second");} else{System.out.println("third");} 要求打印字符串为“second”时,x的取值范围是A.x<=0并且x>-3B.x>0C.x>-3D.x<=-3

下列代码中 if(x>0) {System.out.println("first");} else if (x>-3){System.out.println("second");} else { System.out.println("third");} 要求打印字符串为"second"时,x的取值范围是( )。A.x≤0 并且 x>-3B.x>0C.x>-3D.x≤-3

下列代码中 if(x>0){System.out.println("first");} elseif(x>-3){System.out.println("second");} else{System.out.println("third");} 要求打印字符串为"second"时,x的取值范围是( )。A.x<=0并且x>-3B.x>0C.x>-3D.x<=-3

给出下列代码片断: if(x>0) { System.out.println("first");} else if(x>-3){System.out.println("second");} else{ System.out.println("third");} 请问x处于什么范围时将打印字符串“second”?( )A.x>0B.x>-3C.x<=-3D.x<=0x>-3

给出下列代码片段: if(x>0){System.out.println("first");} else if(x>-3){System.out.println("second");} else{System.out.println("third");} 当x处于( )范围时打印字符串"second"。A.x>0B.x>-3C.-3<x<=0D.x<=-3

给出下列代码片段: if(x>0){System.out.println("first");} else if(x>-3){System.out.println("second"):} else{System.out.println("third");}请问x处于什么范围时将打印字符串"second"? ( )A.x<3B.x>0C.x<=0且x>-3D.x<=-3

给出下面代码段:x处于什么范围时打印字符串“second”。 ( ) public class forLoopStatement { public static void main(String[]args) { int x=______;//给x赋值 if(x>0){System.out.println("first");} else if(x>-3){System.out.println("second");} else{System.out.println("third");} } }A.x>0B.x>-3C.x<=-3D.x<=0x>-3