有如下的程序段,该程序段的执行完后,共执行循环的次数是 Private Sub Command1_Click() total=0 Counter=l Do Print Counter total=total+Counter Print total Counter=Counter+1 If total>=10 Then Exit Do End If Loop While Counter<=10 End SubA.5B.10C.12D.20

有如下的程序段,该程序段的执行完后,共执行循环的次数是 Private Sub Command1_Click() total=0 Counter=l Do Print Counter total=total+Counter Print total Counter=Counter+1 If total>=10 Then Exit Do End If Loop While Counter<=10 End Sub

A.5

B.10

C.12

D.20


相关考题:

有如下程序段,该程序段执行完后,执行循环的次数是total=0Counter=1DoPrint Countertotal=total + CounterPrint totalCounter=Counter + 1If total 10 ThenExit DoEnd IfLoop While Counter =10( )。A.5B.10C.15D.20

有如下的程序段,该程序段执行完后,共执行的循环次数是 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<=10A.4B.10C.15D.20

有如下程序段,该程序段执行完后,执行循环的次数是 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 <=10A.5B.10C.15D.20

有如下程序段,该程序段执行完后,共执行循环的次数是 Private Sub Command1_Click( ) Tota1=0 Counter=1 Do Print Counter Tota1=tota1+Counter Print total Counter=Counter+1 If total=10 Then Exit Do End lf Loop While Counter<=10 End SubA.5B.10C.12D.20

有如下程序段:执行该程序段后,X的值为( )。A.trueB.falseC.0D.1

有如下程序段,问while 循环执行的次数是()。 int k=0; while(k=1) k++;A.无限次B.有语法错,不能执行C.一次也不执行D.执行1次

int x=1; while(x<5); x++;执行上面程序段,下面说法正确的是()。A.程序段执行结束后,x 值为6。B.程序段执行结束后,x 值为5。C.程序执行出现死循环。D.程序段执行结束后,x 值为2。

int x=1; while(x<5); x++; 执行上面程序段,下面说法正确的是()。A.程序执行出现死循环。B.程序段执行结束后,x 值为6。C.程序段执行结束后,x 值为5。D.程序段执行结束后,x 值为2。

有如下程序段: int total = 0; for (int i = 0; i < 4; i++ ){ if (i == 1) continue; if (i == 2) break; total += i; } 则执行完该程序段后total的值为:()A.0B.1C.3D.6