当前位置:IT认证>BASIC题库

问题:[选择题]

[单项选择题] 有如下程序段,该程序段执行完后,执行循环的次数是  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

参考答案: A

  参考解析

解析:本题考查Do…LoopWhile语句,共执行了5次,total=1+2+3+4+5>10。

微信端