首页试题详情
难度: 使用次数:138更新时间:2026/03/16
1.
以下哪个函数可以被调用,并且每次调用都会修改其内部变量?
A.Public Function Add(a As Integer, b As Integer) As Integer
B.Public Sub Increase(ByRef x As Integer)
C.Public Function Multiply(a As Integer, b As Integer) As Integer
D.Public Function Initialize(a As Integer) As Integer
题型:选择题 知识点:第九章 面向对象程序设计
【答案】
B
【解析】
Sub函数可以使用ByRef参数来修改外部变量的值,而Function函数返回值不会修改外部变量。

查看答案和解析

支付 ¥0.1 即可查看此题答案和详细解析

低至 ¥0.1 起

类题推荐:

未分类