【单选题】【消耗次数: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