网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
Giventhefollowingcode:if(x>0){System.out.println("first");}elseif(x>-3){System.out.println("second");}else{System.out.println("third");}Whichrangeofxvaluewouldprintthestring"second"?()
A.x>0
B.x>-3
C.x<=-3
D.x<=0&x>-3
参考答案
更多 “ 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("Hello.");} else if(x>-3){ System.out.println("Nice to meet you!");} else{System.out.println("How are you?");} 若打印字符串"How are yoh?",则x的取值范围是( )。A.x>0B.x>-3C.x≤-3D.x≤0x>-3
考题
阅读下面代码 if(x==0){System.out.println("冠军"); else if(x>-3){System.out.println(“亚军”);} else {System.out.println(“季军”);} 若要求打印字符串“季军”,则变量x的取值范围是A.x=0 x<=-3B.x>0C.x>-3D.x<=-3
考题
阅读下面代码 if(x==0){System.out.println("冠军");} else if(x>-3){System.out.println("亚军");} else{System.out.println("季军");} 若要求打印字符串“季军”,则变量X的取值范围是A.x=0x<=-3B. x>0C.x>-3D.x<=-3
考题
阅读下面代码 fi(x==0) { System.out.println("冠军");} else if (x>-3) { System.out.println("亚军"); } else { System.out.println("季军");} 若要求打印字符串“季军”,则变量x的取值范围是( )。A.x=0 x<=-3B.x>0C.x>-3D.x<=-3
考题
阅读下面代码 if(x==0){System.out.println("冠军");} elseif(x>-3){System.out.println("亚军");} else{System.out.println("季军");} 若要求打印字符串“季军”,则变量x的取值范围是( )。A.x=0x<=-3B.x>0C.x>-3D.x<=-3
考题
为表示关系:x≥Y≥z,应使用的C语言表达式是( )。A.(x=y)(y=z)B.(x=y)A
为表示关系:x≥Y≥z,应使用的C语言表达式是( )。A.(x>;=y)&&;(y>;=z)B.(x>;=y)AND(y>;-x)C.(x>;=y>;=z)D.(x>;=y)&(y>;=z)
考题
下列代码中 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
热门标签
最新试卷