[单选题]

下列程序执行后,变量S的值为______ 。 Dim s As Long,X As Integer s=0 X=1 Do While x<10 s= s+ x x=x+2 Loop Print s

A. 10

B.25

C.50

D.100

参考答案与解析:

相关试题

下列程序执行后,变量S的值为Dim s As Long,x As Integer

[单选题]下列程序执行后,变量S的值为 Dim s As Long,x As Integer s=0 For x=1 To 10 Step 2 s=s+x Next x Text1.Text=sA.10B.25C.50D.100

  • 查看答案
  • 下列程序执行后,变量x的值为______。Dim a, b, c, d As S

    [单选题]下列程序执行后,变量x的值为______。 Dim a, b, c, d As Single Dim x As Single a=100 b=20 c=1000 If b>a Then d=a: a=b: b=d End If If b>c Then x=b Elseif a>c then x=c Else x=a End IfA.100B.20C.1000D.0

  • 查看答案
  • 下列程序执行后,变量x的值为()。Dim a,b,c,d As SingleDi

    [单选题]下列程序执行后,变量x的值为( )。D.im a,b,c,d As SingleD.im x As Singlea=10b=30c=400If b>a Thend=a:a=b:b=dE.nd IfIf b>c Thenx=bE.lse If a>c Thenx=cE.lsex=aE.nd IfA.10B.30C.400D.430

  • 查看答案
  • 下列程序执行后,变量x的值为()。Dim a,b,c,d As SingleDi

    [单选题]下列程序执行后,变量x的值为( )。 Dim a,b,c,d As Single Dim x As Single a=10 b=30 c=400 If b>a Then d=a:a=b:b=d End If If b>c Then x=b Else If a>c Then x=c Else x=a End IfA.10B.30C.400D.430

  • 查看答案
  • 下列程序执行后,变量x的值为()。 Dim a, b, c, d As Sing

    [单选题]下列程序执行后,变量x的值为( )。 Dim a, b, c, d As Single Dim x As Single a=10 b=30 c=400 If b>a Then d=a:a=b:b=d End If If b>c Then x=b Else If a>c Then x=c Else x=a End IfA.10B.30C.400D.430

  • 查看答案
  • (23)下列程序执行后,变量x的值为 。 Dim a,b,c,d As Sing

    [单选题](23)下列程序执行后,变量x的值为 。 Dim a,b,c,d As Single Dim x As Single a=10 b=30 c=400 If b>a Then d=a:a=b:b=d End If If b>c Then x=b Elself a>c Then x=c Else x=c End IfA.10 B.30 C.400 D.430

  • 查看答案
  • 执行下列程序后,变量a的值为()Dim i As IntegerDim a As

    [单选题]执行下列程序后,变量a的值为 ( ) Dim i As Integer Dim a As Integer a=0 For i=l To 100 Step 2 a=a+l Next iA.1B.10C.50D.100

  • 查看答案
  • 下面程序段运行后,变量x的值为上()。 Dim x As Integer Dim

    [试题]下面程序段运行后,变量x的值为上 [ ] 。D.im x As IntegerD.im i As Integerx=Ofor i=0 to 50 step 10X=X+inext i

  • 查看答案
  • 下列程序执行后,变量a的值为()。Dim a,b,c,d as singlea=

    [单选题]下列程序执行后,变量a的值为( )。 Dim a,b,c,d as single a=100 b=20 c=1000 if b>a Then d=a:a=b:b=d End if if c>a Then d=a:a=c:c=d End if if c>b Then d=b:b=c:c=d End ifA.0B.1000C.20D.100

  • 查看答案
  • 执行以下程序段后,变量c$的值为()。S$="VisualBasicProgra

    [单选题]执行以下程序段后,变量c$的值为( )。 S$="VisualBasicProgramming" b$="Quick" c$=b$&UCase(Mid$(a$,7,6))&Right$(a$,12)A.VisualBASICProgrammingB.QuickBasicProgrammingC.QUICKBasicProgrammingD.QuickBASICProgramming

  • 查看答案
  • 下列程序执行后,变量S的值为______ 。 Dim s As Long,X