下列循环体能正常结束的是( )。
A: i = 5Do i = i + 1Loop Until i < 0
B: i = 1Do i = i + 2Loop Until i = 10
C: i = 10Do i = i + 1Loop Until i > 0
D: i = 6Do i = i - 2Loop Until i = 1
A: i = 5Do i = i + 1Loop Until i < 0
B: i = 1Do i = i + 2Loop Until i = 10
C: i = 10Do i = i + 1Loop Until i > 0
D: i = 6Do i = i - 2Loop Until i = 1
举一反三
- 下列循环能正常结束循环的是( )。 A: i=5 Do i=i+1 Loop Until i<0 B: i=1 Do i=i+2 Loop Until i=10 C: i=10 Do i=i+1 Loop Until I>0 D: i=6 Do i=i-2 Loop Until I=1
- 下列循环能正常结束循环的是(). A: i=5<br>Do<br>i=i+1<br>Loop Until i<0 B: i=1<br>Do<br>i=i+2<br>Loop Until i=10 C: i=10<br>Do<br>i=i+1<br>Loop Until I>0 D: i=6<br>Do<br>i=i-2<br>Loop Until I=1
- 下列循环语句能正常结束的是_______。 A: i = 5Do While i > 0 i = i + 1Loop B: i = 1Do i = i + 2Loop Until i = 10 C: i = 10Do i = i + 1Loop Until i > 0 D: i = 6Do i = i + 2Loop While i > 2
- 有如下程序段:s = 0For i = 1 To 10 s = s + iNext iPrint s与上述程序段输出结果相同的程序段为( )。 A: s = 0: i = 0 While i <= 10 i = i + 1 s = s + i Wend Print s B: s = 0: i = 1 While i < 10 i = i + 1 s = s + i Wend Print s C: s = 0: i = 1 Do s = s + i i = i + 1 Loop While i < 10 Print s D: s = 0: i = 1 Do s = s + i i = i + 1 Loop Until i > 10 Print s
- 中国大学MOOC: 下面代码执行后,变量s的值为______。 Dim i, n As Integer, s As String i = 2 : n = 12 : s = n & = Do Until n = 1 Do While n Mod i = 0 s &= i & * n = n i Loop i += 1 Loop s = Strings.Left(s, Len(s) - 1)