【单选题】【消耗次数: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
随机题目
【单选题】 Buenos Aires is one of the world capitals that[填空] noted for its busy harbor.
①  have
②  is
③  has
④  are
【单选题】 The airplane?[填空] is taking off?is?making a lot of noise.
①  what
②  which
③  who
④  those
【单选题】 She asked me ?[填空]he was coming the next day.
①  who
②  that
③  which
④  whether
【单选题】 The earth on[填空] we live is a planet.
①  which?
②  where
③  when
④  whose
【单选题】 He is [填空] late
①  always
②  come
③  going to
④  near
【单选题】 The new monitor apparatus is[填空] controlled.
①  automatical
②  autom
③  auomatically
④  automatically
【判断题】 It’s a nice living here.
①  正确
②  错误
【单选题】 Next month I’m[填空] discussions with an agent in Brazil
①  have
②  having
③  had
④  do
【单选题】 You are not [填空] to smoke here.
①  allowing
②  permit
③  allowed
④  allowance
【单选题】 Can I have the records [填空] I lent you?
①  that
②  whom
③  those
④  whose