第2题
A.do-while循环由do开始,用while结束,在while(表达式)后面不能写分号
B.do-while循环中,根据情况可以省略while
C.在do-while循环体中,是先执行一次循环,再进行判断
D.由于do-while循环中循环体语句只能是一条可执行语句,所以循环体内不能使用复合语句
第3题
A.do-while先执行循环中的语句,然后再判断表达式是否为真
B.循环体如包括有一个以上的语句,则必须用{}括起来,组成复合语句.
C.do-while循环至少要执行一次循环语句.
D.while先执行循环中的语句,然后再判断表达式是否为真
第5题
A.先执行循环体,再测试是否成立
B.先测试是否成立,若条件成立,才能执行循环体
C.当为假时,执行循环体
D.当为真时,执行循环体
第9题
A.没有区别,这两个结构任何情况下效果一样There is no difference,they are the same
B.while循环比do…while循环执行效率高While is more efficient than do-while
C.while循环是先循环后判断,所以循环体至少被执行一次The While loop does the loop first then check the condition, so the loop body can be executed at least for 1 time
D.do…while循环是先循环后判断,所以循环体至少被执行一次The Do-While loop does the loop first then check the condition, so the loop body can be executed at least for 1 tim
E.
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!