A.20 23 24 35 40
B.20 25 30 35 40
C.20 23 25 35 40
D.20 25 35 40 45
[单选题]下列程序段的输出结果为( )。 Dim M(5,5), S(5) For i = 1 To 5 S(i) = 0 For j = 1 To 5 M(i, j) = i + j S(i) = S(i) + M(i, j) Next j Next i For Each x In S Print x; Next xA.2023 24 3540B.2025 30 3540C.2023 25 35 40D.2025 354045
[单选题]下列程序段的输出结果为( )。 Dim M(5,5),S(5) For i=1 To 5 S(i)=0 For j=1 To 5 M(i,j)=i+j S(i)=S(i)+M(i,j) Next j Next i For Each x In s Print x; Next xA.2023 24 3540B.2025 30 3540C.2023 25 3540D.2025 354045
[单选题]下列程序段的输出结果是( )。D.im M(5,5),S(5)F.or i=1 To 5S(i)=0F.or j=1 To 5M(i,j)=i+jS(i)=S(i)+M(i,j)Next jNext iF.or Each x In SPrint x;Next xA.20 23 24 35 40B.20 25 30 35 40C.20 23 25 35 40D.20 25 35 40 45
[单选题](25)下列程序段的输出结果是 Dim M(5,5),S(5) For i=1 To 5 S(i)=0 For j=1 To 5 M(i,j)=i+j S(i)=S(i)+M(i,j) Next j Next i For Each x In S Print x; Next xA.20 23 24 35 40 B.20 25 30 35 40 C.20 23 25 35 40 D.20 25 35 40 45
[单选题](27)下列程序段的输出结果是 。 Dim M(5,5),S(5) For i=1 To 5 S(i)=0 For j=1 To 5 M(i,j)=i+j S(i)=S(i)+M(i,j) Next j Next i For Each x In S Print x; Next xA.20 23 24 35 40 B.20 25 30 35 40 C.20 23 25 35 40 D.20 25 35 40 45
[单选题]下列程序段的输出结果为( )。 Dim M(5, 5), S(5) For i=1 To 5 S(i)=0 For j=1 To 5 M(i, j)=i+j S(i)=S(i)+M(i, j) Next j Next i For Each x In S Print x; Next xA.20 23 24 35 40B.20 25 30 35 40C.20 23 25 35 40D.20 25 35 40 45
[主观题]下列程序段的输出结果为______。D.im S1(5)As Integer,S2(5)As Integer,S3(5)As IntegerN=4F.orI=1 To NS1(I)=IL=N+i-IS2(I)=LNextIS3(5)=0F.orK=1 To NS3(K)=S1(K)*S2(K)S3(5)=S3(5)+S3(K)NextKPrintS1(3)=S1(5);S1(2)PrintS2(4)=S3(
[单选题]下列程序段的执行结果为______。 Dim A(10),B(5) For i=1 To 10 A(i)=i Next i For j=1 To 5 B(j)=j*20 Next j A(5)=B(2) Print"A(5)="; A(5)A.A(5)=5B.A(5)=10C.A(5)=20D.A(5)=40
[单选题]下列程序段的执行结果为 ______。 Dim A(10),B(5) For i=1 To 10 A(i)=i Next i For j=1 To 5 B(j)=j*20 Next j A(5)=B(2) Pring"A(5)=";A(5)A.A(5)=5B.A(5)=10C.A(5)=20D.A(5)=40
[单选题]下列程序段的执行结果为 ______。 Dim A(10),B(5) For i=1 To 10 A(i)=i Next i For j=1 To 5 B(j)=j*20 Next j A(5)=B(2) Print"A(5)=";A(5)A.A(5)=5B.A(5)=10C.A(5)=20D.A(5)=40