[单项选择题] 有如下程序段if (x>0) System. out. println ("first") ;else if (x>-4) System. out. printl

23 查阅

[单项选择题] 有如下程序段

if (x>0) System. out. println ("first") ;

else if (x>-4) System. out. println ("second") ;

elseSystem. out. println ("third") ;

x的取值在( )范围内时,将打印出字符串"second"。

A.x>0

B.x>-4

C.x<=-4

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

参考答案:

D

计算机考试