网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
给出下面程序段: 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>0
B.x>-3
C.x≤-3
D.x≤0&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“Hello.“;}elseif(x>-3){System.out.println“Nicetomeetyou“;}else{System.out.println“Howareyou“;}若打印字符串“Howareyou”,则x的取值范围是()。
A.x>0B.x>-3C.xD.x-3
考题
给出下面程序段: if(x>0){System.out.printlh("Hello. ");} else if(x>-3){System.out.println("Nice to meet you!");} else{System.out.println("How are you?");} 若打印字符串"How are you?",则x的取值范围是A.x>0B.x>-3C.x<=-3D.x<=0x>-3
考题
给出下面程序段 if(x0) System.out.println("Hello."); else if(x>-3) System.out.println("Nice to meet you!"); else System.out.println("How are you?"); 若打印字串"How are you?",则x的取值范围是( )。A.x>0B.x>-3C.x<=-3D.x<=0x>-3
考题
2给出下面代码段,x处于( )范围时打印字符串“second”。 pubhc class forLoopStatement{ public static voidmain(String[]args){ int x=______;//给x赋值 if(x>0) {System.out.println("second"); } else if(x>-3) {System.out.println("second"); } else { System.out.printlnCthird"); } } }A.x>0B.x>-3C.x<=-3D.x<=0 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 you?”,则x的取值范围是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.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.printin("Hello.");} else if(x>-3) { System.out.println("Nice to meet you!");} else{System.out.println("How are you?");} 若打印字符串"How are you?",则x的取值范围是( )。A.x>0B.x>-3C.x≤-3D.x≤0x>-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
热门标签
最新试卷