假设有以下程序段:For i=1 to 3For j=5 to 1 Step -1Next jNext iPrint i,j则i、j的值分别是( )。 A: 4 0 B: 3 1 C: 4 1 D: 3 0
假设有以下程序段:For i=1 to 3For j=5 to 1 Step -1Next jNext iPrint i,j则i、j的值分别是( )。 A: 4 0 B: 3 1 C: 4 1 D: 3 0
下列程序段的执行结果为 。n = 0For i = 1 To 3 For j = 5 To 1 Step -1 n = n + 1Next j, iPrint n; j; i A: 12 0 4 B: 15 0 4 C: 12 3 1 D: 15 3 1
下列程序段的执行结果为 。n = 0For i = 1 To 3 For j = 5 To 1 Step -1 n = n + 1Next j, iPrint n; j; i A: 12 0 4 B: 15 0 4 C: 12 3 1 D: 15 3 1
如下程序段: int c[]={1, 7, 12}; int *k; k=c; printf('next k is %d',*++k); 其输出应为: A: next k is 2 B: next k is 12 C: next k is 7 D: next k is 1
如下程序段: int c[]={1, 7, 12}; int *k; k=c; printf('next k is %d',*++k); 其输出应为: A: next k is 2 B: next k is 12 C: next k is 7 D: next k is 1
有如下程序: Dim a(3,3)As Integer For m = 1 To 3 For n = 1 To 3 a(m,n)=(m-1)*3+n Next n Next m For m = 2 To 3 For n = 1 To 2 Print a(n,m); Next n Next m 运行后,输出结果是( )。
有如下程序: Dim a(3,3)As Integer For m = 1 To 3 For n = 1 To 3 a(m,n)=(m-1)*3+n Next n Next m For m = 2 To 3 For n = 1 To 2 Print a(n,m); Next n Next m 运行后,输出结果是( )。
下列程序段的执行结果为【 】。 K=0 For J=1 To2 For I = 1 To 3 K=I+1 Next I For I=1 To7 K=K+I Next I Next J Print K
下列程序段的执行结果为【 】。 K=0 For J=1 To2 For I = 1 To 3 K=I+1 Next I For I=1 To7 K=K+I Next I Next J Print K
以下程序,执行循环体的次数是。 For i=1 To 3 For j=5 To 1 step -1 print i+j Next j Next i
以下程序,执行循环体的次数是。 For i=1 To 3 For j=5 To 1 step -1 print i+j Next j Next i
下面____程序段不能正确显示1!、2!、3!、4!的值。 A: For I=1 To 4 n=1 For j=1 to I n=n*j Next j Print n Next I B: For I=1 To 4 For j=1 to I n=1 n=n*j Next j Print n Next I C: n=1 For j=1 to 4 n=n*j Print n Next j D: n=1:j=1 Do While j<=4 n=n*j Print n j=j+1Loop
下面____程序段不能正确显示1!、2!、3!、4!的值。 A: For I=1 To 4 n=1 For j=1 to I n=n*j Next j Print n Next I B: For I=1 To 4 For j=1 to I n=1 n=n*j Next j Print n Next I C: n=1 For j=1 to 4 n=n*j Print n Next j D: n=1:j=1 Do While j<=4 n=n*j Print n j=j+1Loop
运行下列程序段,其中语句“n = n + 1”被执行的次数是()。 Dim m%... 1 Print n Next Next
运行下列程序段,其中语句“n = n + 1”被执行的次数是()。 Dim m%... 1 Print n Next Next
下列程序: Option Base 1 Private Sub Form_Click() Dim a(5,5) For i = 1 To 5 For j = 1 To 5 k = k + 1 a (i,j)= k Next j Next i For i = 1 To 5 s = s + a (i,i) Next i Print s End Sub 运行时的输出结果是( )。
下列程序: Option Base 1 Private Sub Form_Click() Dim a(5,5) For i = 1 To 5 For j = 1 To 5 k = k + 1 a (i,j)= k Next j Next i For i = 1 To 5 s = s + a (i,i) Next i Print s End Sub 运行时的输出结果是( )。
下面的程序段执行后共循环了 次 For i = 1 To 2 For j = 5 To 1 Step -1 Print i*j Next j Next i
下面的程序段执行后共循环了 次 For i = 1 To 2 For j = 5 To 1 Step -1 Print i*j Next j Next i