答案查看网,轻松搜题/搜资源
登录
×
登录账号
记住密码
立即注册
忘记密码
×
注册
使用微信扫描二维码,获取账号密码后免费查看答案
前往登录
忘记密码
×
忘记密码
使用微信扫描下方二维码,即可找回您的账号密码
前往登录
立即注册
搜题/搜资源
【单选题】【消耗次数:1】
执行语句for(i=1;i++后变量i的值是( )。
①
3
②
4
③
5
④
不定
参考答案:
复制
纠错
相关题目
【单选题】
若有定义int i=1;则执行完循环while(i++〈5);以后i 的值为()
①
6
②
5
③
4
④
7
查看完整题目与答案
【单选题】
执行语句int i = 1, j = ++i; 后i与j的值分别为( )。
①
1与1
②
2与1
③
1与2
④
2与2
查看完整题目与答案
【单选题】
以下程序段运行后s的值是()。 int a[3][3]={1, 2, 3, 4, 5, 1, 2, 3, 4} ; int i, j, s=1; for(i=0; i for(j=i+1; j s+=a[i][j];
①
6
②
120
③
7
④
240
查看完整题目与答案
【单选题】
下述程序的运行结果( )。 #includevoid main() { int i; for(i=1;i+1;i++) { if(i4){printf(%d\t,i++);break;} printf(%d\t,i++); } }
①
1 3 5
②
1 2 3
③
1 3 4
④
1 4 5
查看完整题目与答案
【单选题】
以下程序段运行后x的值为()。inta[8]={1,2,3,4,5,6,7,8},i,x=0;for(i=0;ii++,i++)x=x+a[i];
①
36
②
16
③
20
④
18
查看完整题目与答案
【单选题】
执行intj,i=1;j=-i;后j的值是()
①
-1
②
-2
③
1
④
2
查看完整题目与答案
【单选题】
循环语句“for(int i=0; i i++) couti*i’ ’;”中循环体执行的次数为()
①
1
②
n-1
③
n
④
n+1
查看完整题目与答案
【单选题】
循环语句“for(int i=0; i i++) couti*i’ ’;”中循环体执行的次数为()。
①
1
②
n-1
③
n
④
n+1
查看完整题目与答案
【单选题】
循环语句“for(int i=0; i<n; i++) cout<<i*i<<’ ’;”中循环体执行的次数为()。
①
1
②
n-1
③
n
④
n+1
查看完整题目与答案
【单选题】
循环语句“for(int i=0; i<n; i++) cout<<i*i<<’ ’;”中循环体执行的次数为(????)
①
1
②
n-1
③
n
④
n+1
查看完整题目与答案
随机题目
【单选题】
Iamso_____thatIcannotrecallmyoldteacher’sname.
①
forgettable
②
forgetful
③
unforgettable
④
forget
查看完整题目与答案
【单选题】
Yourspeechisreallywonderful!__________.
①
Yes.Thanks
②
Thankyou
③
That’sright
④
No.Notatall
查看完整题目与答案
【单选题】
Thenaughtyboytireshisbesttoavoid_____byhisparents.
①
punish
②
punishing
③
beingpunished
④
tobepunished
查看完整题目与答案
【单选题】
Itwasraininghard,butwegotthereintime__________.
①
inthesame
②
atthesame
③
forthesame
④
allthesame
查看完整题目与答案
【单选题】
Hisdriver’slicensewas_________becausehewascaughtdrunk-driving
①
stopped
②
pulled
③
canceled
④
suspended
查看完整题目与答案
【单选题】
Onaverage,asuccessfullawyerhastotalktoseveral________aday.
①
customers
②
supporters
③
guests
④
clients
查看完整题目与答案
【单选题】
Kidsneedto_____empathyontheneedy.
①
develop
②
grow
③
plant
④
own
查看完整题目与答案
【单选题】
MayIseeyourtickets,please?_____________.
①
No,theyaremine
②
No,youcan’t
③
Sure
④
Yes,youcan
查看完整题目与答案
【单选题】
Let’snotwaitanylonger,hemightnot________atall
①
turnup
②
turnover
③
turnon
④
turndown
查看完整题目与答案
【单选题】
Oh,God,itslate.Ivegottogo..Hopetoseethemsoon.
①
Giveyourparentsmygreetings
②
Remembermetoyourparents
③
Showmygreetingstoyourparents
④
Sayhellotoyourparents
查看完整题目与答案