【单选题】【消耗次数:1】
while循环语句中,while后一对圆括号中表达式的值决定了循环体是否进行,因此,进入while循环后,一定有能使此表达式的值变为( )的操作,否则,循环将会无限制地进行下去。
0
1
成立
2
参考答案:
复制
纠错
相关题目
【单选题】 循环语句中的for语句,其一般形式如下: for(表达式1;表达式2;表达式3) 语句 其中表示循环条件的是( )
①  表达式1
②  表达式2
③  表达式3
④  语句
【单选题】 for语句中的表达式可以部分或全部省略,但两个( )不可省略。但当三个表达式均省略后,因缺少条件判断,循环会无限制地执行下去,形成死循环。
①  0
②  1
③ 
④ 
【单选题】 在do-while循环中,循环由do开始,用while结束;必须注意的是:在while表达式后面的( )不能丢,它表示do-while语句的结束。
①  0
②  1
③ 
④ 
【判断题】 do while循环体内一定要有改变循环条件的语句,否则会造成死循环。
①  正确
②  错误
【单选题】 在for语句中,假定循环体共被执行n次,则表达式2共被计算( )次。
①  1
②  n-1
③  n
④  n+1
【单选题】 若要求在if后一对圆括号中的表达式,表示a等于0时的值为真,则能正确表示这一关系的表达式是()。
①  a!=0
②  !a
③  a
④  a=0
【单选题】 下面的循环语句执行完毕后,循环变量k的值是()。int k=1;while (k++< 10);
①  10
②  11
③  9
④  无限循环,值不确定
【单选题】 do-while循环语句: int i=0; do i++; while(i其循环体语句被执行的次数为?
①  4
②  3
③  5
④  10
【单选题】 在for语句中,假定循环体共被执行n次,则表达式3共被计算( )次。
①  1
②  n-1
③  n
④  n+1
【单选题】 在下面循环语句中循环体执行的次数为() int i=0; do i++; while(i*i
①  4
②  3
③  5
④  2
随机题目
【单选题】 The question came up at the meeting ___ we had enough money for our research.
①  that
②  which
③  whether
④  if
【判断题】 I have waited for two weeks impatiently and finally the order was cancelled.
①  正确
②  错误
【单选题】 ___ is no possibility ___ Bob can win the first prize in the match.
①  There; that
②  It; that
③  There; whether
④  It; whether
【单选题】 Even if they are on sale, these refrigerators are equal in price to, if not more expensive than, ___ at the other store.
①  anyone
②  the others
③  that
④  the ones
【单选题】 Energy is ___ makes thing work.
①  what
②  something
③  anything
④  that
【单选题】 The doctor did a lot to reduce the patient’s fear ___ he would die of the disease.
①  that
②  which
③  of which
④  of that
【单选题】 These plastic flowers look so ___ that many people think they are real.
①  beautiful
②  natural
③  artificial
④  similar
【单选题】 It is clear that the whole world is passing through a social revolution in which a central_____ must be taken by scientists and technologists.
①  process
②  attention
③  measure
④  part
【单选题】 When I took his temperature, it was two degrees above ___.
①  average
②  ordinary
③  regular
④  normal
【单选题】 ___ he does has nothing to do with me.
①  Whatever
②  No matter what
③  That
④  If