【单选题】【消耗次数: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
随机题目
【判断题】 Lucy will call you this evening.
①  正确
②  错误
【判断题】 Her home is far from her company.
①  正确
②  错误
【判断题】 This farm have many oranges.
①  正确
②  错误
【判断题】 Our city becomes more and more beautiful.
①  正确
②  错误
【判断题】 I doesnt understand the doctor.
①  正确
②  错误
【单选题】 This photo reminds me ___ the days when I worked ___ the farm with my classmates.
①  ?about; in
②  ?of; on
③  ?of; in
④  ?about; on
【单选题】 [填空] you said is wrong.
①  What
②  Which
③  How
④  Who
【单选题】 Shall I buy a cup of coffee for you? -[填空].
①  No, you won't.
②  No, you aren't.
③  No, please don't.
④  No, please.
【单选题】 The guest [填空] .
①  comes
②  come
③  is coming
④  came
【判断题】 Don’t put your dirty clothes here. Put them away.
①  正确
②  错误