【简答题】【消耗次数:1】
有如下程序段: For i=1 To 3 For j=5 To 1 Step -1 Print i*j Next j Next i 程序运行后,语句print i*j的执行次数为[填空]。
参考答案:
复制
纠错
相关题目
【简答题】 下列程序段的运行结果是[填空] 。 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
【单选题】 以下程序段运行后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
【单选题】 以下程序段的运行结果是()。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
【单选题】 执行语句int i = 1, j = ++i; 后i与j的值分别为( )。
①  1与1
②  2与1
③  1与2
④  2与2
【单选题】 以下程序段运行后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
【单选题】 执行intj,i=1;j=-i;后j的值是()
①  -1
②  -2
③  1
④  2
【单选题】 下面程序的运行结果是() #include stdio.h main( ) { char a[]=morning,t; int i,j=0; for(i=1;i if(a[j]j=i; t=a[j]; a[j]=a[7]; a[7]=a[j]; puts(a); }
①  mogninr
②  mo
③  morning
④  mornin
【简答题】 若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++)
【单选题】 以下程序的输出结果是()。 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
随机题目
【单选题】 Jim asked where_______from.
①  did he came
②  he came
③  he come
【单选题】 I prefer reading books_______watching TV.
①  than
②  on
③  to
【单选题】 That’s all prepared. It _______done more.
①  shouldn’t
②  mustn’t be
③  dont need to be
【单选题】 When was the project _______?
①  complete
②  completing
③  completed
【单选题】 She is the woman_______dog bit me.
①  that
②  which
③  whose
【单选题】 The student followed the teacher’s_______and finally passed the test.
①  advices
②  advice
③  advise
【单选题】 Next month, I_______ plan to have a holiday.
①  am
②  /
③  have
【单选题】 You must explain_______how they won_______the match.
①  of us, for
②  at us, at
③  to us, in
【单选题】 He is very good_______designing and drawing.
①  at
②  in
③  on
【单选题】 When I was a child, I_______go back home on time.
①  have to
②  must
③  had to