哪种循环条件在条件表达式被计算之前至少执行循环体语句一次?
A. do-while循环
B. for 循环
C. while循环
D. 以上都不对
在JAVA中,()关键字用来终止循环语句。
A. return
B. continue
C. break
D. exit
给出下列代码片段: If ( x > 0 ) { System.out.println(“Hello.”); } else if ( x >-3 ) { System.out.pirntln ( “ I am Tom. ”); } else { System.out.println (“How are you?”); } 请问将打印字符串 “How are you ?”的x的范围是()
A. x >0
B. x > -3
C. x <= -3
D. x <=0 & x >-3
已知如下代码: switch(m){?case0:System.out.println("Condition?0");? case1:System.out.println("Condition?1");? case2:System.out.println("Condition?2");?case3:System.out.println("Condition3");break;? default:System.out.println("OtherCondition");? }? 当m的值为(?)时,输出“Condition?3”。
A. 2
B. 0、1
C. 0、1、2
D. 0、1、2、3