【单选题】【消耗次数:1】
若i,j已定义为int类型,则以下程序段中内循环体的总的执行次数是(  )。for (i=5;i;i--)for (j=0;jj++){...}
25
20
24
30
参考答案:
复制
纠错
相关题目
【单选题】 若i,j已定义为int类型,则以下程序段中内循环体的总的执行次数是(  )。for (i=5;i;i--)for (j=0;jj++){...}
①  30
②  25
③  24
④  20
【单选题】 若i,j已定义为int类型,则以下程序段中内循环体的总的执行次数是(  )。for (i=5;i;i--)for (j=0;jj++){...}
①  20
②  24
③  25
④  30
【简答题】 若i,j已定义为int类型,则以下程序段中内循环体的总的执行次数是[填空1]。for (j=0;jj++)for (i=5;i;i--){...}
【简答题】 若i,j已定义为int类型,则以下程序段中内循环体的总的执行次数是[填空1]。for (i=3;i;i--)for (j=0;jj++)
【单选题】 若i,j已定义为int类型,则以下程序段中内循环体的总的执行次数是(  )。for (i=4;i;i--)for (j=0;j5;j++){...}
①  20
②  24
③  25
④  30
【单选题】 在下面循环语句中内层循环体S语句的执行次数为( )。 for(int i=0;ii++) for(int j=i;jj++)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 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
【单选题】 在下面循环语句中内层循环体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
随机题目
【单选题】 The apple_____ very sweet.
①  is tasted
②  taste
③  tastes
④  are tasting
【单选题】 The poet has____ fame all his life, but has never experienced it.
①  pursued
②  followed
③  chased
④  traced
【单选题】 Although ____ Spanish, he attended the course.
①  he was knowing
②  he is knowing
③  having a knowledge of
④  knows
【单选题】 The board deemed it’s urgent that these files ____ right away.
①  had to be printed
②  should have been printed
③  must be printed
④  should be printed
【单选题】 Our civilization cannot be thought of as ____ in a short period of time.
①  to have been created
②  to be created
③  having been created
④  being created
【单选题】 Here is some ____ advice to any young businessman.
①  variable
②  worthwhile
③  worthy
④  value
【单选题】 You must have stayed up late last night, _____?
①  mustn’ t you
②  don’ t you
③  didn’ t you
④  needn’ t you
【单选题】 Mr. Milton prefers to resign ____ part in such dishonest business deals.
①  than take
②  than to take
③  rather than take
④  rather than to take
【单选题】 We went on a(n) ____ to the mountain yesterday.
①  excursion
②  trip
③  tour
④  travel
【单选题】 If your new coat is too large, a tailor can____ it to fit you.
①  alter
②  transform
③  vary
④  change