首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
下面子过程语句说明合法的是
下面子过程语句说明合法的是
admin
2013-04-11
21
问题
下面子过程语句说明合法的是
选项
A、Sub f1(s1 As String*8)
B、Sub f1(n()As Integer)As Integer
C、Function f1(f1 As Integer)As Integer
D、Function f1(By Val n As Integer)
答案
8
解析
选项A中,在定义Sub过程时,形参不能用定长字符串变量或定长字符串数组作为形式参数:选项B中,过程名不能被指定其数据类型:选项C中,函数名与形参名不能同名。只有选项D是正确的。
转载请注明原文地址:https://kaotiyun.com/show/kKhp777K
本试题收录于:
二级VB题库NCRE全国计算机二级分类
0
二级VB
NCRE全国计算机二级
相关试题推荐
下列事件过程的功能是:建立一个名为Datal的随机文件,存放角度值及这些角度的正弦函数值和余弦函数值,角度为1,2,3,…,90。请在空白处填入适当的内容,将程序补充完整。PrivateTypeAngKAsInteger
在面向对象的程序设计中,类描述的是具有相似性质的一组【】。
VisualBasic程序设计采用的编程机制是
数据的逻辑结构有线性结构和【】两大类。
下面是关于文件关闭的4种叙述,错误的是______。
如果在窗体Form1上添加一个通用对话框控件CommonDalogl,那么语句CommonDialog1.Action=4的作用是______。
以下声明语句中,错误的是______。
用______属性可惟一标志控件数组中的某一个控件。
双击窗体中的对象后,VisualBasic将显示的窗口是
下列叙述中,错误的一条是______。
随机试题
如图所示的带权无向图的最小生成树的权为()
企业持有长期股权投资的目的是_______________。
下列属于急性重型肝炎病理特点的是
货物残损单(broken&damagedcargolist)
商业银行开展个人理财业务应遵守的基本原则是()。
对成人前期个体的事业来说,非智力因素产生哪几个方面的作用?()
下列命题中的假命题是[].
甲、乙、丙三人共同盗窃某文物机构的文物。甲负责放风,乙负责窃取文物,丙负责运输销售赃物。甲、乙、丙三人的共同犯罪属于()。
假设关系R(A1,A2,A3)上的一个分解为ρ={(A1,A2),(A1,A3)},下表是关系R上的一个实例,根据实例推出只的函数依赖集F为(1),分解ρ(2)。(2)
Acarismadeupofmorethan30000parts.Eachpartinanewcarisasweakasababy.Soanewcarrequirespropercareands
最新回复
(
0
)