更多"下列程序段的执行结果为( )。
I=4
x=5
"的相关试题:
[单项选择]有如下程序段,该程序段执行完后,执行循环的次数是 total=0 Counter=1 Do Print Counter total=total + Counter Print total Counter=Counter+1 If total>10 Then Exit Do End If Loop While Counter <=10
A. 5
B. 10
C. 15
D. 20
[单项选择]下列程序段的执行结果为( )。
I=1
x=5
Do
I= I + 1
x= x + 2
Loop Until I>=7
Print " I= ";I
Print "x=";x
[单项选择]下面程序段执行结果为 x=Int(Rnd( )+4) Select Case x Case 5 Print"excellent" Case4 Print"good" Case 3 Print"pass" Case Else Print"fail" End Select
A. excellent
B. good
C. pass
D. fall
[单项选择]下面程序段执行结果为
x=Int(Rnd( ) +4)
Select Case x
Case 5
Print "excellent"
Case 4
Print "good"
Case 3
Print "pass"
Case Else
Print "fail"
End Select
A. excellent
B. good
C. pass
D. fall
[单项选择]有如下的程序段,该程序段执行完后,共执行的循环次数是 total=0 Counter=1 Do Print Counter total=total * Counter + 1 Print total Counter=Counter +1 If total > 10 Then Exit Do End If Loop While Counter<=10
A. 4
B. 10
C. 15
D. 20
[单项选择]下列程序段的执行结果为( )。
I=4
x=5
Do
I=I + 1
X=K^2
Loop Until I>=7
Print"I=";I
Print"x=";x