有如下程序段 if(x<0){System.out.println("first");} else if(x<-4){System.out.println("second");} else{System.out.println("third");} x的取值在( )范围内时,将打印出字符串"second"。A.x>0B.x>-4C.x<=-4D.x<=0 &&x>-4

有如下程序段 if(x<0){System.out.println("first");} else if(x<-4){System.out.println("second");} else{System.out.println("third");} x的取值在( )范围内时,将打印出字符串"second"。

A.x>0

B.x>-4

C.x<=-4

D.x<=0 &&x>-4


相关考题:

Giventhefollowingcode:if(x0){System.out.println(first);}elseif(x-3){System.out.println(second);}else{System.out.println(third);}Whichrangeofxvaluewouldprintthestringsecond?()A.x0B.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");} 要求打印字符串为"second"时,x的取值范围是( )。A.x≤0 并且 x>-3B.x>0C.x>-3D.x≤-3

有如下程序段: if(x>0){ System.out. println("first");} else if(x>-4){ System.out.println("second");} else { System.out.println("third");}x的取值在什么范围内时,将打印出字符串 "second" ?A.x>0B.x>-4C.x<= -4D.x<= 0x> -4

有如下程序段 if(x0) { System.out.println("first");} else if (x -4) { System.out.println("second");} else { System.out.println("third");} x的取值在什么范围内时,将打印出字符串“second"?A.x 0B.x -4C.x = -4D.x = 0 x -4

有如下程序段if (x>0) {System.out.println ("first") ;}else if (x>-4) { System.out.println ("second") ; }else{System.out.println ("third") ;}x的取值在( )范围内时,将打印出字符串"second"。A.x>0B.x>-4C.x<=-4D.x<=0&&x>-4

下列代码中 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.-3<x<=0D.x<=-3

有如下程序段 if(x>0){System.out.println("first");} else if(x>-4){System.out.println("second");{ else{System.out.println("third");}x的取值在什么范围内时,将打印出字符串“second”? ( )A.x>0B.x>-4C.x<-4D.x<0x>-4

给出下面代码段: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