首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
已知数组Dim a(1 To 10)As Integer,则下面正确调用GetValue函数的是( )。 Private Function GetValue(a() As Integer) As Integer For i=1
已知数组Dim a(1 To 10)As Integer,则下面正确调用GetValue函数的是( )。 Private Function GetValue(a() As Integer) As Integer For i=1
admin
2017-11-27
25
问题
已知数组Dim a(1 To 10)As Integer,则下面正确调用GetValue函数的是( )。
Private Function GetValue(a() As Integer)
As Integer
For i=1 T0 10
GetValue=GetValue+a(i)
Nexti
End Function
选项
A、S=GetValue(a(1 T0 10))
B、S=GetValue(a)
C、S=GetValue(a(10))
D、S=GetValue a
答案
B
解析
本题考查数组作为函数参数的调用。数组作为函数参数只能进行地址传递。需要注意的是在形参数组中可以忽略维数的定义,但是不能省略圆括号,实参数组名后面可以不跟圆括号。
转载请注明原文地址:https://jikaoti.com/ti/Ccy0FFFM
本试题收录于:
二级VB题库NCRE全国计算机二级分类
0
二级VB
NCRE全国计算机二级
相关试题推荐
设窗体上有一个列表框控件List1,且其中含有若干列表项,则以下能表示当前被选中的列表项内容的是______。
在窗体上画一个命令按钮,然后编写如下事件过程:OptionBase1PrivateSubCommand1_Click()DimaAsVarianta=Array(1,2,3,4)j=1fori=aTo
数据库系统的核心是______。
当文本框的Text属性发生变化时,将发生______事件。
数据库的物理设计是为一个给定的逻辑结构选取一个适合应用环境的______的过程,包括确定数据库在物理设备上的存储结构和存取方法。
下列表达式有错误,正确的写法应该是【】。[(a+B+e]/80-5÷(d+e)
某二叉树的先根遍历序列为CEDBA,中根遍历序列为DEBAC,则其后根遍历序列为【】。
数学式子5+(a+b)×2对应的VisualBasic表达式是_____________。
在考生文件夹下有一个工程文件sjt5.vbp,在窗体上给出了所有控件和不完整的程序,请去掉程序中的注释符,把程序中的?改为正确的内容。本程序的功能是:如果单击“取数”按钮,则把考生文件夹下的in5.txt文件中的15个姓名读到数组a中,并在窗体上
下面的数写成普通十进制数是()。2.65358979335278D-6
随机试题
口气臭秽属于
血虚风燥的皮肤病可见
A、面部,额部B、面颊,头顶,头后部C、头侧部D、肩胛部E、腋下手三阴经出于()
证券市场对促进经济发展具有十分重要的积极作用,主要表现在()。
A公司拟添置一套市场价格为6000万元的设备,需筹集一笔资金。现有三个筹资方案可供选择(假定各方案均不考虑筹资费用):(1)发行普通股。该公司普通股的β系数为2,一年期国债利率为4%,市场平均报酬率为10%。(2)发行债券。该债券期限10年,票
()领导全国公安机关的督察工作。
现代企业制度的典型形式是()。
作用力度最强的货币政策工具是()。
设有关系模块R(B,C,M,T,A,G),根据语义有如下函数依赖集:F=(B→C,(M,T)→B,(M,C)→T,(M,A)→T,(A,B)→G}。则关系模式R的候选码是______。
ForgetexpensiveeducationalDVDsandprivatetutors,thesecrettosmartchildrencouldbesosimpleasgivingbirth【M1】______
最新回复
(
0
)