答案查看网,轻松搜题/搜资源
登录
×
登录账号
记住密码
立即注册
忘记密码
×
注册
使用微信扫描二维码,获取账号密码后免费查看答案
前往登录
忘记密码
×
忘记密码
使用微信扫描下方二维码,即可找回您的账号密码
前往登录
立即注册
搜题/搜资源
【单选题】【消耗次数: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
查看完整题目与答案