在if---else语句格式中,else后面也可以有表达式,代表else下的条件。
在if---else语句格式中,else后面也可以有表达式,代表else下的条件。
下面对switch语句和if---else if---else语句的描述正确的有哪些? A: 一般情况下,在实现选择结构时两个语句可以相互替换。 B: switch语句通常处理 case为比较确定值的情况, 而 if…else if…else语句更加灵活,常用于范围判断(大于、等于某个范围)。 C: switch 语句进行条件判断后直接执行到程序的条件语句,效率更高,而if…else if…else语句有几种条件,就得判断多少次。 D: 当分支比较少时,if…else if…else语句的执行效率比 switch语句高。 E: 当分支比较多时,switch语句的执行效率比较高,而且结构更清晰。
下面对switch语句和if---else if---else语句的描述正确的有哪些? A: 一般情况下,在实现选择结构时两个语句可以相互替换。 B: switch语句通常处理 case为比较确定值的情况, 而 if…else if…else语句更加灵活,常用于范围判断(大于、等于某个范围)。 C: switch 语句进行条件判断后直接执行到程序的条件语句,效率更高,而if…else if…else语句有几种条件,就得判断多少次。 D: 当分支比较少时,if…else if…else语句的执行效率比 switch语句高。 E: 当分支比较多时,switch语句的执行效率比较高,而且结构更清晰。
__would like to go to the park with me? A: Whom else B: What else C: Who else D: Else who
__would like to go to the park with me? A: Whom else B: What else C: Who else D: Else who
This pen is not mine, it must be ____. A: somebody else's B: somebody else' C: somebody's else D: somebody' else
This pen is not mine, it must be ____. A: somebody else's B: somebody else' C: somebody's else D: somebody' else
If that pen is not hers, ____________ can it be? A: who else B: whose else's C: who else's D: who's else
If that pen is not hers, ____________ can it be? A: who else B: whose else's C: who else's D: who's else
6. Do you have _________ to tell me? A. something else B. else something C. else anything D. anything else
6. Do you have _________ to tell me? A. something else B. else something C. else anything D. anything else
-Whose umbrella is it?-It's ________. A: somebody else's B: Somebody else C: Somebody's else's D: Somebody's else
-Whose umbrella is it?-It's ________. A: somebody else's B: Somebody else C: Somebody's else's D: Somebody's else
I want to know ____ I can do for you. A: how else B: what else C: when else D: where else
I want to know ____ I can do for you. A: how else B: what else C: when else D: where else
下面哪种结构不是分支结构( ) A: if B: if……else C: for D: if……else if……else
下面哪种结构不是分支结构( ) A: if B: if……else C: for D: if……else if……else
________, we left. ( ) A: There has nothing else to do B: There being nothing else to do C: There was nothing else to do D: There were nothing else to do
________, we left. ( ) A: There has nothing else to do B: There being nothing else to do C: There was nothing else to do D: There were nothing else to do