black

Java程序设计

登录

单项选择题

程序:
class TestApp{
public static void main (String[] args){
int x=6;
if (x>l)
System. out. println("x>l");
else if (x>5)
System. out .println("x>5");
else if (x<10)
System. out. println("xelse if (x<29)
System. out .println( "x<29");
else
System. out.println(“以上都不是”);
}
}
上述程序运行后的结果是哪项?()

A.x>5
B.x>l
C.x<10
D.x<29

相关考题

单项选择题 现有: class TestApp{ public static void main (String[] args){ for (int i=0; iif(i==3) break; System. out .print (i); } } } 程序运行后的输出是哪项?()

单项选择题 基本数据类型float的包裹类是哪项?()

单项选择题 现有代码片段:String s="123";String sl=S+456;请问sl的结果是哪项?()

All Rights Reserved 版权所有©财会考试题库(ckkao.com)

备案号:湘ICP备2022003000号-2