[单选题]

执行以下程序段 Dim i As Integer,X As Integer x=0 For i=20 To 1 Step -2 x=x+i/5 Next Print x 后,x的值为______。

A. 16

B.17

C.18

D.19

参考答案与解析:

相关试题

执行以下程序段后,x的值为()。Dim x As Integer,i As In

[单选题]执行以下程序段后,x的值为( )。 Dim x As Integer,i As Integer x=0 For i=20 To 0 Step -2 x=x+i/5 Next iA.16B.17C.18D.19

  • 查看答案
  • 有如下程序段: Dim I As Integer I=Int(£­3.25)执行

    [单选题]有如下程序段: Dim I As Integer I=Int(-3.25)执行后,I的返回值是A.-3B.-4C.3D.3.25

  • 查看答案
  • 程序段如下:Dim i As Integer,s As IntegerFor i

    [单选题]程序段如下: Dim i As Integer,s As Integer For i=4 To 1 Step-1 s=s+i Next i Print s,i执行的结果是( )。A.10 0B.9 1C.10 1D.9 0

  • 查看答案
  • 以下程序段的执行结果是 ______。Dim a As Integer,b As

    [单选题]以下程序段的执行结果是 ______。 Dim a As Integer,b As Integer For a=4 To 1 Step-1 b=b+a Next a Print b, aA.100B.9 1C.10 1D.90

  • 查看答案
  • 下面程序段运行后,变量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

  • 查看答案
  • 执行语句Dim X,Y As Integer后,______。

    [单选题]执行语句Dim X,Y As Integer后,______。A.X和Y均被定义为整型变量B.X和Y均被定义为变体类型变量C.X被定义为整型变量,Y被定义为变体类型变量D.X被定义为变体类型变量,Y被定义为整型变量

  • 查看答案
  • 执行语句Dim X,Y As Integer后,(  )。

    [单选题]执行语句Dim X,Y As Integer后,(  )。A.X、Y均被定义为整型变量B.X、Y均被定义为变体类型变量C.X被定义为整型变量,Y被定义

  • 查看答案
  • 执行语句 Dim X, Y as Integer 后,()

    [单选题]执行语句 Dim X, Y as Integer 后,()A . X和Y均被定义为整型变量B . X和Y被定义为变体类型变量C . X被定义为整型变量,Y被定义为变体类型变量D . X被定义为变体类型变量,Y被定义为整型变量

  • 查看答案
  • 执行语句Dim X,Y As Integer后( )

    [单选题]执行语句Dim X,Y As Integer后( )

  • 查看答案
  • 编写以下程序段:DIM I, J, K, AA=0FOR I = 1 TO 3

    [单选题]编写以下程序段: DIM I, J, K, A A=0 FOR I = 1 TO 3 FOR J = 1 TO I FOR K=-J TO 3 A=A+1 NEXT K NEXT J NEXT I 执行上面的三重循环后,变量A的值为( )。A.3B.9C.14D.21

  • 查看答案
  • 执行以下程序段Dim i As Integer,X As Integerx=0F