【单选题】【消耗次数:1】
在下面循环语句中循环体执行的次数为()。 for(int i=0; in/2) break;
n/2
n/2+1
n/2-1
n-1
参考答案:
复制
纠错
相关题目
【单选题】 在下面循环语句中循环体执行的次数为() for(int i=0; in/2) break;
①  n/2
②  n/2+1
③  n/2-1
④  n-1
【单选题】 在下面循环语句中循环体执行的次数为(????) for(int i=0; in/2) break;
①  n/2
②  n/2+1
③  n/2-1
④  n-1
【单选题】 在下面循环语句中循环体执行的次数为()。 for(int i=0; in/2) break;
①  n/2
②  n/2+1
③  n/2-1
④  n-1
【单选题】 在下面循环语句中内层循环体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
【单选题】 循环语句“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
【单选题】 设有定义:intn1=0,n2,*p=&n2,*q=&n1;,以下赋值语句中与n2=n1;语句等价的是()
①  *p=*q;
②  p=q;
③  *p=n1
④  p=*q;
【单选题】 在下面循环语句中内层循环体S语句的执行次数为( )。 for(int i=0;ii++) for(int j=i;jj++)S;
①  n2
②  (n+1)/2
③  n(n-1)/2
④  n(n+1)/2
随机题目
【单选题】 The game was fixed for today but it has been____ for a week.
①  transfered
②  delayed
③  translated
④  postponed
【单选题】 Dr. Park was accused ____ the patient with overdose of sleeping pills so that the patient’s life was terminated before the expected time.
①  of providing
②  with providing
③  to have provided
④  to provide
【单选题】 I’ m going to do all I can to____ the unpleasant impression you have of me.
①  move
②  remove
③  shift
④  transform
【单选题】 Ill go out for a walk after supper if it____ rain.
①  didnt
②  wont
③  isnt
④  doesnt
【单选题】 Jean Wagner’s most enduring contribution to the study of Afro-American poetry is his insistence that it ____ in a religious, as well as worldly, frame of reference.
①  is to be analysed
②  has been analysed
③  be analysed
④  should have been analysed
【单选题】 We feel it is high time that the Government ____ something to check the inflation.
①  did
②  do
③  should do
④  would do
【单选题】 She was teaching me ____ you would teach a younger child to speak the language.
①  the way
②  in the way
③  a way
④  to the way
【单选题】 You should have put the milk into the icebox, I expect it ____ undrinkable.
①  became
②  had become
③  has become
④  becomes
【单选题】 The students expected there ____ more reviewing classes before the final exams.
①  is
②  being
③  have been
④  to be
【单选题】 You should have your eyes tested every year in case the ____of your spectacles need changing.
①  lenses
②  glasses
③  sights
④  crystals