当前位置: 高中信息技术 / 单选题
  • 1. (2020·柯桥会考) 有如下VB程序段:

    Dim a(1 To 100) As Integer

    Dim b(1 To 100) As Integer

    Dim c As Integer

    a(1) = 0: a(2) = 2: b(1) = 1: b(2) = 2: c = 0

    For i = 2 To 6

      a(i + 1) = 2 * a(i) - a(i - 1)

      b(i + 1) = b(i) ^ 2 / b(i - 1)

    c = c + a(i + 1) + b(i + 1)

    Next i

    Label1.Caption = Str(c)

    该程序运行后,Label1中显示的内容是(  )

    A . 46 B . 88 C . 164 D . 76

微信扫码预览、分享更方便