A.2 5 3 6
B.5 8 6 9
C.4 7 5 8
D.5 9 6 8
[单选题]下面程序运行后,输出的结果是D.im arr(3,3)F.or j=1 To 3F.or k=1 To 3A.rr(j,k)=(j-1)*3+kNext kNext jF.or j=2 To 3F.or j=2 To 3Print arr(k,j);Next kPrintNext jA.2 5 3 6B.5 8 6 9C.4 7 5 8D.5 9 6 8
[单选题]下面程序运行后,输出的结果是D.im arr(3,3)F.or j=1 To 3F.or k=1 To 3A.rt(j,k)=(j-1)*3+kNext kNext jF.or j=2 To 3F.or k=2 To 3Print arr(k,j);Next kPrintNext jA.25 36B.58 69C.47 58D.59 68
[单选题]下列程序段的执行结果是( )。D.im A(3,3)F.or M=1 To 3F.or N=1 To 3If N=M Or N=3-M+1 ThenA.(M,N)=1E.lseA.(N,N)=0E.nd IfNext NNext MF.or M=1 To 3F.or N=1 To 3Print A(M,N)Next NPrintNext MA.1 0 0 0 1 0 0 0 1B.1 1 1 1 1 1 1 1 1C.0 0 0 0 0 0 0 0 0D.1 0 1 0 1 0 1 0 1
[单选题]下列程序段的执行结果是Dim A(3,3)For M = 1 To 3For N = 1 To 3If N = M Or N = 3 - M + 1 ThenA(M,N) = 1Else A(M,N) = 0 End IfNext NNext MFor M = 1 To 3For N = 1 To 3Print A(M,N)Next NPrint Next MA. 1 0 0 0 1 0 0 0 1 B. 1 1 1 1 1 1 1 1 1C. 0 0 0 0 0 0 0 0 0 D. 1 0
[单选题]以下程序运行后,输出结果是( )。F.orj=1 T0 3PrintTab(3*j);2*(j-1)*2*(j-1)NextjPrintA.B.C.D.
[单选题]下面程序运行后,输出结果为( )。 Dim a() a=Array(1,3,5,7,9) s=0 For i=1 To 4 s=s*10+a(i) Next i Print sA.1357B.3579C.7531D.9753
[单选题]下面程序运行后,输出结果为( )。 Dim a() a=Array(1,3,5,7,9) s=0 For i=1 To 4 s=s*10+a(i) Next i Print sA.1357B.3579C.7531D.9753
[单选题]下列程序段的执行结果为D.im A(3,3)F.or M=1 To 3F.or N =1 To 3If N=M Or N=3-M+1 ThenA.(M,N)=1E.lseA.(M,N)=0E.nd IfNext NNext MF.or M=1 To 3F.or N=1 To 3Print A(M,N)Next NPrintNext MA.1 0 0 0 1 0 0 0 0B.1 1 1 1 1 1 1 1 1C.0 0 0 0 0 0 0 0 0D.1 0 1 0 1 0 1 0 1
[单选题]下列程序段的执行结果为______。 Dim A(3,3) For M=1 To 3 For N=1 To 3 If N=M 0r N=3-M+1 Then A(M,N)=1 Else A(M,N)=0 End If Next N Next M For M=1 To 3 For N=1 To 3 Print A(M, N); Next N Print Next MA.1 0 0 0 1 a 0 0 1B.1 1 1 1 1 1 1 1 1C.0 0 0 0 0 0 0 0 0D.1 0 1 0
[单选题]下列程序段的执行结果为( )。 Dim A(3,3) For M=1 To 3 For N=1 To 3 If N=M Or N=3-M+1 Then A(M,N)=1 Else A(M,N)=0 End If Next N Next M For M=1 To 3 For N=1 To 3 Print A(M,N) Next N Print Next MA.1 0 0 0 1 0 0 0 1B.1 1 1 1 1 1 1 1 1C.0 0 0 0 0 0 0 0 0D.1 0 1 0 1 0 1