【单选题】【消耗次数:1】
以下描述中正确的是( )。
由于do_while循环中循环体语句中能是一条可执行语句,使用循环体内不能使用复合语句。
do_while循环由do开始,用while结束,在while(表达式)后面体题中,一定要有能使while后表达式值变为零(假)的操作。
.do_while循环中,根据情况可以省略while
参考答案:
复制
纠错
相关题目
【单选题】 do-while循环语句:int do i++; while(i*i其循环体语句被执行的次数为?
①  2
②  3
③  4
④  5
【单选题】 do-while循环语句: int i=0; do i++; while(i其循环体语句被执行的次数为?
①  4
②  3
③  5
④  10
【判断题】 do while循环体内一定要有改变循环条件的语句,否则会造成死循环。
①  正确
②  错误
【判断题】 do while循环的循环体至少执行一次。
①  正确
②  错误
【单选题】 在下面循环语句中循环体执行的次数为() int i=0; do i++; while(i*i
①  4
②  3
③  5
④  2
【单选题】 在下面循环语句中循环体执行的次数为()。 int i=0; do i++; while(i*i
①  4
②  3
③  5
④  2
【单选题】 在下面的do循环语句中,其循环体被执行的次数为( )。 int i=0;do i++;while(i*i
①  4
②  3
③  5
④  2
【单选题】 在下面循环语句中循环体执行的次数为()。 int i=0; do i++; while(i*i<10);
①  4
②  3
③  5
④  2
【单选题】 在下面循环语句中循环体执行的次数为(????) ?int i=0; do i++; while(i*i<10);
①  4
②  3
③  5
④  2
【单选题】 在下面的do循环语句中,其循环体被执行的次数为( )。 int i=0;do i++;while(i*i<10);
①  4
②  3
③  5
④  2
【单选题】 C语言中while 和do-while 循环的主要区别是(  )。
①  do-while 的循环体不能是复合语句
②  while 的循环控制条件比do-while 的循环控制条件严格
③  do-while 允许从外部转到循环体内
④  do-while的循环体至少无条件执行一次
随机题目
【单选题】 He was a good swimmer so he________swim to the river bank when the boat sank.
①  could
②  might
③  should
④  was able to
【单选题】 Few of them hurt themselves in the accident last night,_________?
①  dont they
②  didnt they
③  did they
④  do they
【单选题】 The joke told by Tom made us________,so the teacher couldnt make himself_______.
①  to laugh;hearing
②  laughing;heard
③  laughing;hear
④  laughed;heard
【单选题】 If it is fine tomorrow,we________a football match.
①  have
②  will have
③  has
④  shall has
【单选题】 To answer correctly is more important than________.
①  that you finish quickly
②  finishing quickly
③  to finish quickly
④  finish quickly
【单选题】 I haven’t finished my composition . I________ for two hours and a half.
①  have written it
②  have been writing it
③  wrote it
④  am writing it
【单选题】 The program was so exciting that the children kept their eyes________on the screen.
①  to fix
②  to be fixed
③  fixed
④  fixing
【单选题】 ________the diamond,he had to look for a place to hide it.
①  Having stolen
②  Having been stolen
③  Stolen
④  Stealing
【单选题】 _________hand in his exercise-book before Monday?
①  Need he to
②  Does he need
③  Needs he to
④  Need he
【单选题】 -Ann, congratulations! Your cuisine was ?very successful and everyone ______. -Thank you, I just tried my ?best. I am happy to know you enjoyed it.
①  had impressed
②  impressed
③  has impressed
④  was impressed