当前位置: 答题翼 > 问答 > 计算机类考试 > 正文
目录: 标题| 题干| 答案| 搜索| 相关
问题

(23)设有以下函数过程Private Function Fun(a() As Integer, b As String) As Integer...End Fun


(23)设有以下函数过程

Private Function Fun(a() As Integer, b As String) As Integer

...

End Function

若已有变量声明:

Dim x(5)As Integer, n As Integer, ch As String

则下面正确的过程调用语句是

A)x(o)=Fun(x, "ch")

B)n=Fun(n, ch

C)Call Fun x, "ch"

D)n=Fun(x(5), ch)

请帮忙给出正确答案和分析,谢谢!

参考答案
您可能感兴趣的试题
  • 函数过程与Sub过程必须用关键字Private或Public声明。()

  • (6)在窗体上有1个名称为Command 1的命令按钮,并有如下事件过程和函数过程:Private Sub Command 1

  • 设有Function过程:Private Function f(a As Integer, b As Integer) As Integera = a * a:b

  • 设有一个命令按钮Command1的事件过程以及一个函数过程,程序如下:Private Sub Command1_Click() S

  • 设有如下窗体单击事件过程: Private Sub Fom_Click. a =1 For i –To3 Select Case i Case 1

  • (26)编写下列事件过程和函数过程Private Sub Command1_Click() Dim num(1 TO 6)As Single Num(1)