【单选题】【消耗次数:1】
以下程序段的运行结果是()。inta[]={1,2,3,4},i,j;j=1;for(i=3;ii--){a[i]=a[i]*j;j=j*3;}for(i=0;ii++)printf("%d",a[i]);
36912
181294
271894
541894
参考答案:
复制
纠错
相关题目
【单选题】 以下程序的运行结果是()。voidmain(){inti,j,k=0;for(i=3;ii--){for(j=i;jj++)k+=i*j;}printf("%d\n",k);}
①  19
②  29
③  6
④  25
【单选题】 以下程序段运行后s的值是()。inta[3][3]={1,2,3,4,5,1,2,3,4};inti,j,s=1;for(i=0;ii++)for(j=i+1;jj++)s+=a[i][j];
①  6
②  120
③  7
④  240
【单选题】 以下程序的输出结果是()。 main( ) { int b[3][3]={0,1,2,0,1,2,0,1,2},i,j,t=0; for(i=0;i for(j=i;j t=t+b[i][b[j][j]]; printf(%d\n,t); }
①  3
②  4
③  1
④  9
【单选题】 以下程序段运行后s的值是()。 int a[3][3]={1, 2, 3, 4, 5, 1, 2, 3, 4} ; int i, j, s=1; for(i=0; i for(j=i+1; j s+=a[i][j];
①  6
②  120
③  7
④  240
【单选题】 若定义数组并初始化,运行的结果是() void main( ) { int i,j,a[2][3]={{1,2,3},{4,5,6}}; for(i=0;i for(j=0;j printf(%d,a[i][j]); }
①  1,2,3,4,5,6
②  12345
③  123456
④  无法运行
【简答题】 以下程序的运行结果是[填空1]。#include stdio.hvoid main(){int i,j;for (i=4;ii--){printf(*for (j=1;jj++)printf(*printf(\n}}
【简答题】 以下程序的运行结果是[填空1]。#include stdio.hvoid main(){int i,j;for (i=4;ii--){printf(*for (j=1;jj++)printf(*} printf(\n}
【简答题】 以下程序的运行结果是[填空1]。#include stdio.hvoid main(){int i,j;for (i=4;ii--){printf(*for (j=1;jj++)printf(*printf(\n}}
【简答题】 下列程序段的运行结果是[填空] 。 Private Sub Form_Click() Dim a(3) As Long a(0) = 1: a(1) = 2: a(2) = 3: a(3) = 4 j = 1 For i = 3 To 0 Step -1 s = s + a(i) * j j = j * 10 Next i Print s End Sub
【单选题】 #include stdio.hvoid main(){ int i,j,k; for(i=1;ii++) for(j=0;jj++) for(k=0;kk++) if( (i*100+j*10+k)==((i*i*i)+(j*j*j)+(k*k*k))) printf(%d%d%d ,i,j,k);}该程序可以输出所有的(  )。
①  素数
②  奇数
③  偶数
④  水仙花数
随机题目
【单选题】 A lot of students ____ the campus since July 1.
①  have left
②  leave
③  left
④  is leaving
【单选题】 —I’m taking my driving test tomorrow. —____.
①  Cheers!
②  Congratulations!
③  Come on!
④  Good luck!
【单选题】 He regretted ____ the decision so hastily.?
①  make ?
②  making ?
③  to make ?
④  have made?
【单选题】 My problems are very ____ to yours.
①  alike
②  like
③  same
④  similar
【单选题】 ____ such circumstances, one can only fight back.
①  Below
②  Within
③  Over
④  Under
【单选题】 Some famous singers live on the ____ from their record sales.
①  salary
②  price
③  bill
④  income
【单选题】 Lucy was ____ and quiet while her brother was sure and noisy.
①  angry
②  hungry
③  painful
④  shy
【单选题】 -Which job do you think I should take the counter’s job or the waiter’s job?-____.
①  That’s all right
②  It’s your own matter
③  It’s up to you
④  It’s none of your business
【单选题】 30. -Would you like to have tea or coffee? - ____.
①  Either will do
②  Neither do I
③  It doesn’t matter
④  Yes, please
【单选题】 While reading the newspaper, ____.
①  a colorful advertisement caught my eyes
②  my attention was attracted by an advertisement
③  I was attracted by a colorful advertisement
④  What attracted my eyes was a colorful advertisement