网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)
单选题
有如下程序: b=1 a=2 DO WHILE b<10 b=2*a+b LOOP PRINT b 运行后输出的结果是()
A

13

B

14

C

15

D

16


参考答案

参考解析
解析: 暂无解析
更多 “单选题有如下程序: b=1 a=2 DO WHILE b<10 b=2*a+b LOOP PRINT b 运行后输出的结果是()A 13B 14C 15D 16” 相关考题
考题 如下程序的输出结果是( ).i=1DO WHILE i10i=i+2ENDDOi

考题 有如下程序; Private SubForm_Click() Dim check As Boolean,n As Integer check=False n=0 Do Do While n<10 n=n+1 If n=5 Then check=True Exit Do End if Print n; Loop Loop Until check = True End Sub 程序运行后,输出的结果是 ______ 。A.1 2 3B.1 2 3 4C.1 2 3 4 5D.1 2 3 4 5 6

考题 有如下程序,运行输出的结果是 ______ 。 s=0 Do s=(s+1)*(s+2) n=n+1 Loop Until s>=30 Print n; sA.0 1B.30 30C.4 30D.3 182

考题 ( 8 )有如下程序:Private Sub Form_Click ()n=10i=0Doi=i+nn=n-2Loop While n2Print iEnd Sub程序运行后,单击窗体,输出结果为 【 10 】 。

考题 (25)下列程序的运行结果是 。 Private Function myfun(m,n) Do While mn Do While mn:m=m-n:Loop Do While nm:n=n-m:Loop Loop myfun=m End Function Private Sub Command1_Click() Print myfun(9,8) End SubA.2 B.1 C.4 D.3

考题 假定有以下程序: Private Sub Form. Click( ) a=1:b=a Do Until a=5 x=a*b Print b;X a=a+b b=b+a Loop End Sub 程序运行后,单击窗体,输出结果是( )。A.1 1 2 3B.1 1 2 4C.1 1 3 8D.1 1 3 6

考题 有如下程序: Private Sub Form Click() Dim Check,Counter Check=True Counter=0 Do Do While Counter<20 Counter=Counter+1 If Counter=10 Then Check=False Exit Do End If Loop Loop Until Check=False Print Counter,Check End Sub 程序运行后,单击窗体,输出结果为A.15 0B.20 -1C.10 TreeD.10 False

考题 以下程序运行后的输出结果是( )。 include main(){ int a=1, b=7; do { b=b/2; a+=b 以下程序运行后的输出结果是( )。include<stdio.h>main(){ int a=1, b=7;do {b=b/2; a+=b;} while(b>1);printf("%d\n",A);}

考题 下列程序的运行结果是( )。 Private Function myfun(m,n) Do while mn Do While mn:m=m-n:Loop Do Wllile nm:n=n-m:Loop Loop myfun=m End Function Private Sub Command1_Click( ) print myfun(9,8) End SubA.2B.1C.4D.3

考题 下列程序段的执行结果为 A=0: B=1 Do A=A+B B=B+1 Loop While A<10 Print A;BA.105B.A BC.01D.10 30

考题 当Form_Click事件发生时,程序输出的结果是 ______。 Private Sub Form. Click() Dim a As Integer,b As Integer,c As Integer a=1: b=1 Print a; b Do c=a+b Print c a=b:b=c Loop Until c>=5 End SubA.1 1 1B.2 3 5C.2 5 7D.2 3 4

考题 有如下程序 a=100 Do s=s +a a=a+1 Loop While a>120 Print a 运行时输出的结果是( )。A.100B.120C.201D.101

考题 阅读下面的程序: Private Sub Form_Click() Dim Check, Counter Check=True Counter=0 Do Do While Counter < 20 Counter=Counter + 1 If Counter=10 Then Check = False Exit Do End If Loop Loop Until Check = False Print Counter, Check End Sub 程序运行后,单击窗体,输出的结果为A.15 0B.20 -1C.10 TrueD.10 False

考题 有如下的程序段,该程序段执行完后,共执行的循环次数是 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

考题 有如下程序 a=100 D。 s=s+a a=a+1 Loop While a>120、 Print a 运行时输出的结果是( )。A.100B.t20C.201D.101

考题 有如下程序段,该程序段执行完后,执行循环的次数是 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

考题 有如下程序: a = 100 Do s=s+a a=a+1 Loop While a > 120 Print a 运行时输出的结果是( )。A.100B.120C.201D.101

考题 有如下程序: Private Sub Command1_Click() s = 0 Do s=(s+1) ( (s+2) N=N+1 Loop Until s>=10 Print N;s End Sub 运行后的输出结果是A.0 1B.30 30C.4 30D.2 12

考题 有如下程序 a=100 Do s=s +a a=a +l Loop While a>120 Print a 运行时输出的结果是( )。A.100B.120C.201D.101

考题 如下程序段的输出结果是。i=1DO WHILE i10i=i+2END DO? i

考题 在窗体上画一个命令按钮,然后写出如下事件过程: Private Sub Command1 _ Click( ) S=1 Do S=(S + 1) ^(S + 2) Number=Number+1 Loop Until S>=6 Print Number,S End Sub 程序运行后,输出的结果是A.2 3B.3 18C.1 8D.10 20

考题 下列程序段的执行结果为 A=0:B=1 Do A=A+B B=B+1 Loop While A<10 Print A;BA.105B.ABC.01D.10 30

考题 下列程序的运行结果是( )。 Private Function myfun(m, n) Do While m > n Do While m>n:m=m-n:Loop Do while n>m:n=n-m:Loop Loop myfun=m End Function Private Sub Command1_Click() Print myfun(9, 8) End SubA.2B.1C.4D.3

考题 下列程序段的执行结果为 a=1 b=5 Do a=a+b b=b+l Loop While a10 Print a;bA.1 5B.12 7C.a bD.10 25

考题 若有如下程序: main() { int n=2; do {printf("%d",n--);} while(!--n)); } 则程序运行后的输出结果是( )。A.2B.11C.1D.20

考题 在窗体上画一个命令按钮,然后编写如下事件过程: Private Sub Command_Click( ) S=0 Do s=(s + 1) * (s +2) Number=Number+1 Loop Until S>=30 Print Number,S End Sub 程序运行后,输出的结果是A.2 3B.3 182C.5 12D.10 20

考题 有如下程序: b=1 a=2 DO WHILE b<10 b=2*a+b LOOP PRINT b 运行后输出的结果是()A、13B、14C、15D、16