答案查看网,轻松搜题/搜资源
登录
×
登录账号
记住密码
立即注册
忘记密码
×
注册
使用微信扫描二维码,获取账号密码后免费查看答案
前往登录
忘记密码
×
忘记密码
使用微信扫描下方二维码,即可找回您的账号密码
前往登录
立即注册
搜题/搜资源
【单选题】【消耗次数:1】
设j和k都是int类型,则for循环语句 for(j=0,k=-1;k=1;j++,k++)printf(****\n);().
①
循环结束的条件不合法
②
是无限循环
③
循环体一次也不执行
④
循环体只执行一次
参考答案:
复制
纠错
相关题目
【单选题】
设j和k都是int类型,则for循环语句(). for(j=0,k=0; j scanf(%d,&k);
①
最多执行10次
②
最多执行9次
③
是无限循环
④
循环体一次也不执行
查看完整题目与答案
【单选题】
在下面循环语句中内层循环体S语句的执行次数为( )。 for(int i=0;i<n;i++) for(int j=i;j<n;j++)S;
①
n2
②
(n+1)/2
③
n(n-1)/2
④
n(n+1)/2
查看完整题目与答案
【单选题】
在下面循环语句中内层循环体S语句的执行总次数为()。 for(int i=0; i<n; i++) for(int j=i; j<n; j++) S;
①
n2
②
(n+1)/2
③
n(n-1)/2
④
n(n+1)/2
查看完整题目与答案
【单选题】
在下面循环语句中内层循环体S语句的执行总次数为( ) for(int i=0; i<n; i++) for(int j=i; j<n; j++) S;
①
n2
②
(n+1)/2
③
n(n-1)/2
④
n(n+1)/2
查看完整题目与答案
【单选题】
下面的循环语句执行完毕后,循环变量k的值是()。int k=1;while (k++< 10);
①
10
②
11
③
9
④
无限循环,值不确定
查看完整题目与答案
【单选题】
在下面循环语句中内层循环体S语句的执行总次数为( ) for(int i=0; i i++) for(int j=i; j j++) S;
①
n2
②
(n+1)/2
③
n(n-1)/2
④
n(n+1)/2
查看完整题目与答案
【单选题】
在下面循环语句中内层循环体S语句的执行总次数为()。 for(int i=0; i i++) for(int j=i; j j++) S;
①
n2
②
(n+1)/2
③
n(n-1)/2
④
n(n+1)/2
查看完整题目与答案
【判断题】
do while循环的循环体至少执行一次。
①
正确
②
错误
查看完整题目与答案
【单选题】
循环体至少被执行一次的语句为()
①
for循环
②
while循环
③
do循环
④
任一种循环
查看完整题目与答案
【单选题】
循环体至少被执行一次的语句为()。
①
for循环
②
while循环
③
do循环
④
任一种循环
查看完整题目与答案
随机题目
【单选题】
Tom, what did you do with my documents? I have never seen such a____ and disorder!
①
mass
②
mess
③
guess
④
bus
查看完整题目与答案
【单选题】
—Could I borrow your dictionary? —I’d get it for you ____I could remember who last borrowed it.
①
except that
②
unless
③
only if
④
if only
查看完整题目与答案
【单选题】
No one thought that John’s suggestion was worth ____.?
①
?to consider ?
②
considering ?
③
to be considered ?
④
of consideration?
查看完整题目与答案
【单选题】
We must ____ that our customs and habits are different from theirs.
①
keep up with
②
bring forward
③
keep in mind
④
come true
查看完整题目与答案
【单选题】
20. Only when he had handed in his exam paper ____ he had made several mistakes.
①
he has realized
②
does he realize
③
has he realized
④
did he realize
查看完整题目与答案
【单选题】
People’s hearts ____ the children whose parents died in the accident.
①
went out for
②
went out with
③
went out to
④
went out of
查看完整题目与答案
【单选题】
A sudden idea ____ to him that he might try the new method.
①
occurred
②
happened
③
took place
④
took part
查看完整题目与答案
【单选题】
We often get ____ when people cut in line.
①
annoying
②
annoyed
③
to annoy
④
annoy
查看完整题目与答案
【单选题】
“Can I help you?” “Well, I’m afraid the box is too heavy for you, ____ thank you all the same.”
①
and
②
so
③
but
④
or
查看完整题目与答案
【单选题】
A guest arrived ____ I was doing my housework.
①
during
②
although
③
as though
④
while
查看完整题目与答案