单选题:在窗体上画一个名称为Command1的命令按钮,然后编写如下代码:Option Base 1Private Sub Co

  • 题目分类:VB
  • 题目类型:单选题
  • 查看权限:VIP
题目内容:
在窗体上画一个名称为Command1的命令按钮,然后编写如下代码:
Option Base 1
Private Sub Command1_Click()
 d = 0
 c = 10
 x = Array(10, 12, 21, 32, 24)
  For i = 1 To 5
   If x(i) > c Then
  d = d + x(i)
  c = x(i)
 Else
  d = d-c
 End If
Next i
 Print d
End Sub
程序运行后,如果单击命令按钮,则在窗体上输出的内容为(  )。 A.89
B.99
C.23
D.77
参考答案:
答案解析:

The writer decided to quit smoking partly because

The writer decided to quit smoking partly becauseA.she could not afford any more

查看答案

Which country is the largest coffee producer?

Which country is the largest coffee producer?A.Brazil B.Colombia C.Ethiopia D.Eg

查看答案

下列程序的输出结果为 Objectid=0 Objectid=1 请将程序补充完整。 #include usingnam

下列程序的输出结果为 Objectid=0 Objectid=1 请将程序补充完整。 #include usingnamespacestd; classPoin

查看答案

本程序的功能是利用随机数函数模拟投币,方法是:每次随机产生一个0或1的整数,相当于一次投币,1代表正面,0代表反面。在窗

本程序的功能是利用随机数函数模拟投币,方法是:每次随机产生一个0或1的整数,相当于一次投币,1代表正面,0代表反面。在窗体上有三个文本框,名称分别是Text1、

查看答案

以下程序段的输出结果是______。 num =0  While num<=2   num = num + 1  Wen

以下程序段的输出结果是______。 num =0  While num<=2   num = num + 1  Wend Print num

查看答案