【单选题】【消耗次数:1】
在下面循环语句中循环体执行的次数为( ) int i=0,s=0; while(s<20) {i++; s+=i;}
4
5
6
7
参考答案:
复制
纠错
相关题目
【单选题】 在下面循环语句中循环体执行的次数为()。 int i=0,s=0; while(s<20) {i++; s+=i;}
①  4
②  5
③  6
④  7
【单选题】 在下面循环语句中循环体执行的次数为( ) int i=0,s=0; while(s20) {i++; s+=i;}
①  4
②  5
③  6
④  7
【单选题】 在下面循环语句中循环体执行的次数为()。 int i=0,s=0; while(s20) {i++; s+=i;}
①  4
②  5
③  6
④  7
【单选题】 在下面循环语句中内层循环体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
【单选题】 在下面循环语句中内层循环体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
【单选题】 在下面循环语句中循环体执行的次数为() int i=0; do i++; while(i*i
①  4
②  3
③  5
④  2
【单选题】 在下面循环语句中循环体执行的次数为()。 int i=0; do i++; while(i*i
①  4
②  3
③  5
④  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
随机题目
【单选题】 Theactualcostofthebuildingwasmuchhigherthanouroriginal_____
①  consideration
②  judgment
③  estimate
④  plan
【单选题】 ____girldressed_____blackishersisterRose.
①  A;In
②  A;On
③  The;on
④  The;in
【单选题】 Thistypeofuniversitycourseisnolonger___________todaysproblems.
①  relevant
②  relevantto
③  relevantwith
④  relevanton
【单选题】 —CanIborrowyourcameraforaweek?—.
①  Sure,hereyouare
②  Yes,youcanborrow
③  Yes,bringitwithyou
④  Itdoesn’tmatter
【单选题】 Idontknowhowtodeal_______suchmatter.
①  with
②  to
③  in
④  out
【单选题】 ---DidyouhaveagoodtimeinThailandlastweek?---______,itwastoohot.
①  Notreally
②  Yeah,whynot
③  Oh,great
④  You’reright
【单选题】 Asyou_________thetownthefirstbuildingyouseeisthechurch.
①  approach
②  approaching
③  approached
④  approaches
【单选题】 Thefruit__________fromthetreewhenthewindblewhard.
①  felldown
②  drooped
③  droppedoff
④  droppeddown
【单选题】 Thenewordermeans_______overtime.
①  works
②  worked
③  towork
④  working
【单选题】 Forasuccessfulbusiness,friendlyand______staffareessential.
①  lovely
②  hard
③  efficient
④  respective