下列程序段的执行结果为 a=3 b=1 For I=1 To 3 f=a + b a=b b=f Print f Next IA.4 3 6B.4 5 9C.6 3 4D.7 2 8

下列程序段的执行结果为 a=3 b=1 For I=1 To 3 f=a + b a=b b=f Print f Next I

A.4 3 6

B.4 5 9

C.6 3 4

D.7 2 8


相关考题:

下列程序段的执行结果为a=1b=1For I=1 To 3f=a + ba=bb=fPrint f;Next I ( )。A.2 3 6B.2 3 5C.2 3 4D.2 2 8

下列程序段的执行结果为 ______。 K=0 For I=1 To 3 A=I^I^K Print A; Next IA.1 1 1B.1 4 9C.0 0 0D.1 2 3

下列程序段的执行结果为 ______。 A="abcd" B="bcde" E=Right(A,3)" F=Mid(B,2,3) If E<F Then Print E+F Else Print F+EA.cdebcdB.cddC.cdcdD.bcdcde

下列程序段的执行结果为 ______。 I=0 For G=10 To 19 Step 3 I=I+1 Next G Print IA.4B.5C.3D.6

下列程序段的执行结果为 ______。 Dim m(3,3)As Integer Dim i As Integer Dim j As Integer Dim x As Integer For i=1 To 3 m(i,i)=i Next For i=0 To 3 For j=0 To 3 x=x+m(i,j) Next Next Print xA.3B.4C.5D.6

(10)假设有下列程序段: For i=1 To 3 For j=5 To 1 Step -1 Print i*j Next j Next i则语句Print i*j的执行次数是,i的值为______,j的值为______。

有F面的程序段.其功能是按图1所示的规律输出数据Dim a(3,5)As IntegerFor i=1 To 3For i=1 To 5a(i,j)=i+jPrint a(i,j);NextPrintNext若要按图2所示的规律继续输出数据,则接在上述程序段后面的程序段应该是A.For i=i To 5 For j=1 To 3 Print a(j,i); Next Print NextB.For i=1 To 3 For i=1 To 5 Print a(j,i); Next Print NextC.For j=1 To 5 FOr i=1 TO 3 Print a(j,1); Next Print NextD.For i=1 To 5 For j=1 To 3 Print a(i,j); Next Print Print Next Next

下列程序段的执行结果为()。 K=0 For J=1 to 2 For I = 1 to 3 K =I+1 Next I For I = 1 to 7 K = K+1 Next I Next J Print K A. 6B. 10C. 11D. 16

设有如下程序: Private Sub Form. Click( ) Dim s As Long,f As Long Dim n As Integer,i As Integer f=1 n=4 For i=1 To n f=f*i s=s+f Next i Print s End Sub 程序运行后,单击窗体,输出结果是( )。A.32B.33C.34D.35

下列程序段的执行结果为______。 K=0 For J = 1 To 2 For I = 1 To 3 K=I+1 Next I For I = 1 To 7 K=K+1 Next I Next J Print KA. 10B.6C.11D.16

下列程序段的执行结果为 a=1 b=2 For I=1 To 3 f=a * b a=b b=f Print f Next IA.2 3 6B.2 4 8C.2 3 4D.2 2 8

下列程序段的执行结果为_______。 A=0:B=0 For I=-1 To -2 Step -1 For J=1 To 2 B=B+1 Next J A=A+1 Next I Print A;BA.2 4B.-2 2C.4 2D.2 3

下列程序段的执行结果为( )。 a=1 b=1 For I=1 To 3 f=a+b a=b b=f Print f: Next IA.2 3 6B.2 3 5C.2 3 4D.2 2 8

下列程序段的执行结果为 a=3:b=1 For i=1 To 3 f=a+b:a=b:b=f Print f Next IA.4 3 6B.4 5 9C.6 3 4D.7 2 8

有下面的程序段,其功能是按图1所示的规律输出数据: Dim a(3,5)As Integer For i=1 To 3 For j=1 To 5 a(i,j)=i+j Print a(i,j); Next Print Next若要按图2所示的规律继续输出数据,则接在上述程序段后面的程序段应该是( )。A.For i=1 To 5 For j=1 To 3 Print a(j,i); Next Print NextB.For i=1 T0 3 For j=1 To 5 Print a(j,i); Next Print NextC.For j=l To 5 For i=1 To 3 Print a(j,i); Next Print NextD.For i=1 To 5 For=1 To 3 Print a(i,j): Next Print Next

下列程序的执行结果是( )。 a=75 If a>90 Then i=4 If a>80 Then i=3 If a>70 Then i=2 1f a>60 Then i=1 Print "i=";iA.i=1B.i=2C.i=3D.i=4

下列程序段的执行结果是______。 i=0 For j = 10 To 19 Step 3 i=i+1 Next j Print IA.4B.5C.3D.6

有如下程序: Private Sub Form_Click() E=1:F=1 For i=1 To 3 E=E+F:F=F+E Next Print E;F End Sub 该程序的输出结果是A.6 6B.5 8C.13 21D.34 55

下列程序运行后的输出结果是______。Private Sub f(k,s) s = 1 for j = 1 To k s=s*j Next jEnd SubPrivate Sub Command1_ Click () Sum = 0 for i = 1 To 3 Call f(i, s) Sum = Sum + s Next i Print Sum End SubA.0B.3C.6D.9

下列程序段的执行结果是______ 。 k=0 For j=1 To 2 For i=1 To 3 k = i+ 1 Next i For i=1 To 7 k= k + 1 Next i Next j Print kA. 11B.10C.9D.8

下列程序的执行结果是(, )。 a=75 1f a>90 Then i=4 1f a>80 Then i=3 1f a>70 Then i=2 1f a>60 Then i=1 Print”i=”;iA.i=1B.i=2C.i=3D.i=4

下列程序段的执行结果为a=3:b=1For i=1 To 3f=a+b:a=b:b=fPrint fNext IA.4 3 6B.4 5 9C.6 3 4D.7 2 8

下列程序段的执行结果为a=1b=1For I=1 To 3 f=a+b a=b b=f Print f;Next IA.236B.235C.234D.228

下列程序段的执行结果为_______。 N=0 For I=1 To 3 For J=5 To 1 Step -1 N=N+1 Next J Next I Print N;J;IA.12 0 4B.15 0 4C.12 3 1D.15 3 1

下列程序段的执行结果为_________。 A = "abcd" B = "bcde" E = Right(A, 3) F = Mid(B, 2, 3) If E<F Then Print E+F Else Print F+EA.cdebcdB.cddC.cdcdD.bcdcde

下列程序段的执行结果为______。 Dim m(3,3)As Integer Dim i As Integer Dim j As Integer Dim x As Integer For i=1 To 3 m(i,i)=i Next For i=0 T0 3 For j=0 To 3 x=x+m(i, j) Next Next Print xA.3B.4C.5D.6

下列程序的执行结果是______。 k =0 For i=1 To 3 a = i ^ i ^ k Print a; Next IA. 1 1 1B.1 2 3C.0 0 0D.1 4 9