下列循环能正常结束循环的是( )。
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 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
- 下述程序段中,与其他3个程序段作用不同的是_______。 A: s=0 i=0 While i>100 s=s+1 Wend B: s=0 i=0 While i<100 i=i+1 Wend C: s=0 i=1 Do While i<100 s=s+1 i=i+1 Loop D: s=0 i=0 Do Until i>=100 s=s+1 i=i+1 Loop
- 下面程序段的执行结果为。 i=4 a=5 Do i=i+1 a=a+3 Loop Until i>=9 Print"i=";i ;"a=";a
- 有如下程序段: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
- 下列循环体能正常结束的是( )。 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