下面程序段执行结束后变量i的值为() For I=2 To13 Step3 Print i Next i Print"i=";iA、11B、13C、14D、17
下面程序段执行结束后变量i的值为() For I=2 To13 Step3 Print i Next i Print"i=";i
- A、11
- B、13
- C、14
- D、17
相关考题:
假设有下列程序段:For i=1 To 3For j=5 To 1 Step-1Print i*iNext jNext i则语句Print i*j的执行次数是______,i的值为______,j的值为______。
执行以下程序段 Dim i As Integer,X As Integer x=0 For i=20 To 1 Step -2 x=x+i\5 Next Print x 后,x的值为______。A. 16B.17C.18D.19
(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
假定有下列程序段 For i=1 TO 3 For j=5 TO 1 Step-1 Print i*j Next j Next i 则语句Print i*j的执行次数是( )。A.15B.16C.17D.18
下列程序段的执行结果为______。 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$="abbacddcba" For i=6 To 2 Step-2 X=Mid(a,i,i) Y=Left(a,i) Z=Right(a,i) z=UCase(XYz) Next i Print z 输出结果为( )A.ABCB.BBABBAC.ABBABAD.AABAAB
下列程序段的执行结果为 I=1 x=5 Do I= I + 1 x= x + 2 Loop Until I>=7 Print " I= ";I Print "x=";xA.I=4 x=5B.I=7 x=15C.I=6 x=8D.I=7 x=17
下列程序段的执行结果为 a="ABBACDDCBA" For I=6 To 2 Step-2 x=Mid(a,I,I) y=Leh(a,I) z=Right(a,I) z=x y z Next I Print zA.ABAB.AABAABC.BBABBAD.ABBABA
假定有以下程序段For i=1 To 3 For j=5 To 1 Srep-1 Print i*j Next jNext i则语句Print i*j 的执行次数是______。A.15B.16C.17D.18
有下面的程序段,其功能是按图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>60 Then i=1 If a>70 Then i=2 If a>80 Then i=3 If a<90 Then i=4 Print "i=";iA.i=1B.i=2C.i=3D.i=4
执行以下程序段 a$ ="abbacddcba" For i = 6 To 2 Step - 2 X = Mid(a, i,i) Y=Left(a, i) z=Right(a,i) z=UCase(X Y Z) Next i Print z 输出结果为A.ABCB.BBABBAC.ABBABAD.AABAAB
下列程序执行后,执行的结果是______ 。 Dim M(2) For i = 1 To 2 M(i) = 0 Next i k=2 For i = 1 To k For j = 1 To k M(j) = M(i) + 1 Print M(k): Next j Next IA.1234B.0123C.223D.2345
阅读下面程序段: For a=1 To2 For b =1 To a For c = b To 2 i=i+1 Next Next Next Print i 执行上面的3重循环后,i的值为A.4B.5C.6D.9
下列程序段的执行结果是( )。 a=75 Ifa>60 Then i=1 Ifa>70 Then i=2 Ifa>80 Then i=3 Ifa<90 Then i=4 Print"i=";iA.i=1B.i=2C.i=3D.i=4
下列程序段的执行结果为 a=75 If a60 Then I=1 If a70 Then I=2 If a80 Then I=3 If a90 Then I=4 Print "I=";IA.I=1B.I=2C.I=3D.I=4
下面程序段的运行结果是( )。 Private Sub Form_Click() For I=3 to 1 step-1 Print Spc(10-I); For j=1 to 2*I-1 print"*"; Next j Print Next I End SubA.***** *** *B.* *** *****C. * *** *****D. * *** *****
下面的程序段执行后,X的结果为______。 X=0 For I=1 to 5 For j=I to 5 X=X+1 Next j Next I Print xA. 5B.10C.15D.20
单选题下面程序段执行结束后变量i的值为() For I=2 To13 Step3 Print i Next i Print"i=";iA11B13C14D17