下列程序段的运行结果为( )。Dim m(10)For i = 0 To 9 m(i) = 2 * iNext iPrint m(m(3))
A: 12
B: 6
C: 0
D: 4
A: 12
B: 6
C: 0
D: 4
举一反三
- 下列程序段的运行结果为( )。 Dim m(10) For i = 0 To 9 m(i) = 2 * i Next i Print m(m(3)) A: 12 B: 6 C: 0 D: 4
- 下列程序段的执行结果为________。 Dim M(10), N(10) i= 4 For j = 1 To 7 M(j) = j N(i) = 2 * i + j Next j Print N(i); M(i)
- 下列程序段的执行结果为_____。 Dim M(10),N(10) I=3 for T=1 To 5 M(T)=T N(I)=2*I+T Next T print N(I);M(I)
- 执行下列程序段后,i和m的值为( )。m = 0For i = 1 To 3 For j = 1 To i m = m + jNext j, i A: 3 6 B: 3 10 C: 4 6 D: 4 10
- 执行下列程序后,输出的结果是 Option Base 0 Dim a a = Array(13,8,4,15) m = a(0) : n = a(0) For i=1 to 3 If a(i) > m Then m = a(i) ElseIf a(i) < n Then n = a(i) End If Next i Print m; n A: 2 4 B: 4 10 C: 4 15 D: 10 15 E: 其它选项都不对