10.If we do not want to get ourselves into trouble, while travelling in a foreign land, we'd better ______ with the local laws and regulations.
A. conform
B. compose
C. comply
D. comprehend
查看答案
下列说法中,不正确的一个是()。
A. switch语句的功能可以由 if…else?if语句来实现
B. 若用于比较的数据类型为double型,则不可以用switch语句来实现
C. if…else if语句的执行效率总是比switch语句高
D. case子句中可以有多个语句,并且不需要大括号{}括起来
哪种循环条件在条件表达式被计算之前至少执行循环体语句一次?
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