logo - 刷刷题
下载APP
【单选题】

P36.有Click事件对应的程序如下: Private Sub Command1_Click() Dim sum As Double,x As Double sum=0 n=0 For i=1 To 5 x=n/i n=n+1 sum=sum+x Next i End Sub 该程序通过For循环计算一个表达式的值,该表达式是()。

A.
1+1/2+2/3+3/4+4/5
B.
1/2+2/3+3/4+4/5
C.
1+1/2+1/3+1/4+1/5
D.
1/2+1/3+1/4+1/5
题目标签:事件对应计算
举报
参考答案:
参考解析:
.
刷刷题刷刷变学霸
举一反三

【多选题】下列各项中,关于产品成本计算品种法的特点表述正确的有()。

A.
不定期计算产品成本
B.
适用于单步骤,大量生产的企业
C.
期末在产品数量较少时,完工产品与在产品之间分配生产费用
D.
以产品品种作为成本核算的对象

【单选题】有如下事件过程:Private Sub Form_Load() Show Dim Arr() As Variant Arr = Array(1, 3, 5, 7, 9, 11, 13, 15) Call converse(Arr) For i = 0 To 7 Print arr(i); Next iEnd Sub 以上程序的功能是,通过调用Converse过程,将数组Arr中的元素逆序存放并输出...

A.
Private Sub converse(dim a() as Variant ) Dim T For i = LBound(A) To UBound(A) T = a(i) a(i) = a(UBound(A) - i) a(UBound(A) - i) = T Next i End Sub
B.
Private Sub converse(dim a() as Variant) Dim T Dim J As Integer J = (LBound(A) + UBound(A)) / 2 For i = LBound(A) To J T = a(i) a(i) = a(UBound(A) - i) a(UBound(A) - i) = T Next i End Sub
C.
Private Sub converse(a() As Variant) Dim T For i = LBound(A) To UBound(A) T = a(i) a(i) = a(UBound(A) - i) a(UBound(A) - i) = T Next i End Sub
D.
Private Sub converse(a() As Variant) Dim T Dim J As Integer J = Int((LBound(A) + UBound(A)) / 2) For i = LBound(A) To J T = a(i) a(i) = a(UBound(A) - i) a(UBound(A) - i) = T Next i End Sub