A.1 3 5 7 9 10
B.-1-3-5-7-9
C.-1 2-3 4-5 6-7 8-9 10
D.1-2 3-4 5-6 7-8 9-10
[单选题]下列程序运行时输出的结果是( )。 Option Base 1 Const a=10 Private Sub Form. Click() Dim x(a)As Integer k=-1 For i=1 To a x(i)=i*k k=(-1)*k Next i For i=1 To 10 Print x(i) Next i End SubA.1 3 5 7 9 10B.-1-3-5-7-9C.-1 2-3 4-5 6-7 8-9 10D.1-2 3-4 5-6 7-8 9-10
[单选题](23)下列程序运行时输出的结果是 Option Base 1 Const a=10 Priate Sub Form_Click() Dim x(a) As Integer k=-1 For i=1 To a x(i)=i*k k=(-1)*k Next i For i=1 To 10 Print x(i) Next i End Sub A.1 3 5 7 9 10 B.-1 -3 -5 -7 -9 C.-1 2-3 4-5 6-7 8-9 10 D.1-2 3-4 5-6 7-8 9-10
[单选题]下列程序运行时输出的结果是Option Base 1Private Sub Form_Click()D.im x(10) As Integer,y(5) As IntegerF.or i=1 to 10x(i)=10-i+1NextF.or i= 1 to 5y(i)=x(2*i-1)+x(2*i)NextF.or i= 1 to 5Print y(i)NextE.nd SubA.3 7 11 45 19B.19 15 11 7 3C.1 3 5 7 9D.不确定的值
[单选题]下列程序运行时输出的结果是( )。 Option Base 1 Private Sub Form_Click() Dimx(10) ForI=1 to 10 x(i)=10-I+1 Next I ForI=10 to 1 step-2 Printx(i); NextI End SubA.1 3579B.975 3 1C.1234567 89 10D.1098765432 1
[单选题]下列程序运行时输出的结果是( )。 Option Base 1 Private Sub Form_Click() Const a=6 Dim x (a) As Integer For I=1 to a x(i)=1^2 Next I Print x(i) End SubA.36B.25C.1D.出错信息
[单选题]下列程序运行时输出的结果是( )。 Option Base 1 Private Sub Form_Click() Dimx(10)As Integer,y(5) As Integer ForI=1 to 10 x(i)=10-I+1 NextI ForI=1 to 5 y(i)cx(2*-1)+x(2*I) NextI ForI=1 to 5 Printy(i); NextIA.3 7 11 45 19B.17 13 9 5 1C.1 3 5 7 9D.不确定的值
[单选题]下列程序运行时输出的结果是 Option Base 1Private Sub Form_Click()D.im x(10) As Integer,y(5) As IntegerF.or i=1 to 10x(i) =10-i+1NextF.or i=1 to 5y(i)=x(2*i-1)+x(2*i)NextF.or i=1 to 5Print y(i)NextE.nd SubA.3 7 11 45 19B.19 15 11 7 3C.1 3 5 7 9D.不确定的值
[单选题]下列程序运行时输出的结果是 Option Base 1 Private Sub Form_Click() Dim x(10) As Integer,y(5) As Integer For i=1 to 10 x(i)=10-i+1 Next For i=1 to 5 y(i)=x(2*i-1)+x(2*i) Next For i=1 to 5 Print y(i) Next End SubA.3 7 11 45 19B.19 15 11 7 3C.1 3 5 7 9D.不确定的值
[单选题]下列程序运行时输出的结果是 Option Base 1 Private Sub Form_Click() Dim x (10)As Integer,y(5)As Integer For i=1 to 10 x(i)=10-i+1 Next For i=1 to 5 y(i)=x(2*i-1)+x(2*i) Next For i=1 to 5 Print y(i) Next End SubA.3 7 11 45 19B.19 15 11 7 3C.1 3 5 7 9D.不确定的值
[单选题]有如下程序,运行时输出的结果是 ______。 Option Base 1 Private Sub Command1_Click() Dim a(3,3) As Integer For m=1 To 3 For n=1 To 3 a(m-1,n-1)=m+n+1 Next n Next m For m=0 To 2 For n=0 To 2 Print a(n,m); Next n Print Next m End SubA.0 1 2 1 2 3 2 3 4B.3 4 5 4 5 6 5 6