首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
已知数组Dim a(1To10)As Integer,则下面正确调用GetValue函数的是( )。 Private Function GetValue(a()As Integer) As Integer For i=1To10 GetValue=G
已知数组Dim a(1To10)As Integer,则下面正确调用GetValue函数的是( )。 Private Function GetValue(a()As Integer) As Integer For i=1To10 GetValue=G
admin
2020-06-30
30
问题
已知数组Dim a(1To10)As Integer,则下面正确调用GetValue函数的是( )。
Private Function GetValue(a()As Integer)
As Integer
For i=1To10
GetValue=GetValue+a(i)
Next i
End End Function
选项
A、S=GetValue(a(1To10))
B、S=GetValue(a)
C、S=GetValue(a(10))
D、S=GetValue a
答案
B
解析
本题考查数组作为函数参数的调用。数组作为函数参数只能进行地址传递。需要注意的是在形参数组中可以忽略维数的定义,但是不能省略圆括号,实参数组名后面可以不跟圆括号。
转载请注明原文地址:https://kaotiyun.com/show/jmHp777K
本试题收录于:
二级VB题库NCRE全国计算机二级分类
0
二级VB
NCRE全国计算机二级
相关试题推荐
编写如下程序:PrivateSubCommand1_Click() DimmAsInteger,nAsInteger n=2 Form=1To3 Printproc(n); NextmEndSubF
在数据库管理技术的发展中,数据独立性最高的是()。
若已把一个命令按钮的Default属性设置为True,则下面可导致按钮的Click事件过程被调用的操作是( )。
下面不能在信息框中输出“VisualBasic”的是()。
下列合法的变量名是( )。
以下不可以作为"容器"的控件是
请根据以下各小题的要求设计VisualBasic应用程序(包括界面和代码)。(1)在名称为Form1、标题为“窗体”的窗体上画一个标签,其名称为Label1,标题为“等级考试”,字体为“黑体”,BorderStyle属性为1,且可以自动调整大小
在考生目录下有一个工程文件sjt5.vbp,其功能是:单击“读数据”按钮,则把考生目录下的文件in5.dat中的100个整数读到数组a中;单击“计算”按钮,则找出其中与所有数的平均值(平均值截尾取整)最接近的整数,放到文本框中;单击“存盘”按钮则把计算结
以下关于框架的叙述中,错误的是
对下列二叉树进行前序遍历的结果为
随机试题
患者,女,68岁。因乳腺癌住院化疗。为其输液过程中,患者出现呼吸困难,听诊心前区有响亮的水泡音,患者可能发生空气栓塞。空气栓塞的部位是在
胃十二指肠溃疡急性大出血,失血量在______以上时,病人出现循环系统代偿表现,失血达到______以上时,病人有明显的休克表现。
There_______noonetohelpmeatthismoment,Ineedtohandletheworkallbymyself.
与传统CT比较,滑环技术改进的核心是
下列关于证券承销的说法中,错误的是哪项?
()对基金实施行业自律管理。
在特殊的普通合伙企业中,一个合伙人或数个合伙人在执业活动中,非因故意或重大过失造成合伙企业债务的,应当承担无限责任或无限连带责任,其他合伙人以其在合伙企业中的财产份额为限承担责任。()
某企业集团的下列业务单位中,适合选择成本领先战略的有()。
民族区域自治制度是我国解决民族问题的基本政策,是我国基本政治制度之一,民族区域自治制度的核心是
Inthissection,youwillhearashortpassage.Forquestions21-30,completethenotesusingnomorethanthreewordsforeach
最新回复
(
0
)