首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
单击命令按钮执行以下程序,输出结果为( )。 Private Sub Commandl—Click() Dim x As Integer,Y As Integer x=12:y=32 Call Proc(x,y)
单击命令按钮执行以下程序,输出结果为( )。 Private Sub Commandl—Click() Dim x As Integer,Y As Integer x=12:y=32 Call Proc(x,y)
admin
2019-03-14
16
问题
单击命令按钮执行以下程序,输出结果为( )。
Private Sub Commandl—Click()
Dim x As Integer,Y As Integer
x=12:y=32
Call Proc(x,y)
Print x;y
End Sub
Public Sub Proc(n As Integer,ByVal m As Integer)
n=n Mod 10:m=m Mod 10
End Sub
选项
A、12 32
B、2 32
C、2 3
D、12 3
答案
B
解析
本题考查过程调用中的参数传递。参数传递时默认为地址传递,如果实参为常量或者形参加上ByVal关键字说明,则为传值传递。本题中第一个参数为地址传值传递,第二个参数为传递,因此调用以后x值为2,而y不变。
转载请注明原文地址:https://kaotiyun.com/show/n7Fp777K
本试题收录于:
二级VB题库NCRE全国计算机二级分类
0
二级VB
NCRE全国计算机二级
相关试题推荐
有如下数据定义语句:Dima,bAsIntegerDimx%,yasInteger执行上述语句后,不是整型变量的是
(1)在名称为Form1的窗体上添加一个名称为C1、标题为“改变颜色”的命令按钮,窗体标题为“改变窗体背景色”。编写程序,使得单击命令按钮时,将窗体的背景颜色改为红色(&HFF&)。运行程序后的窗体如图所示。要求:程序中不得使用变量,每个事件过程
在窗体上画一个文本框,其名称为Text1,然后编写如下程序:OptionBase1PrivateSubForm_Click()DimArr(10)AsIntegerFori=6To10Arr
为了把命令按钮设置为图形格式,其Style属性值应为
如果把文本框的Enabled属性设置为False并运行程序,则以下叙述中正确的是
(1)在名称为Form1、标题为“欢迎”的窗体上画1个名称为Label1的标签,其标题内容为“欢迎使用本系统”,标题文字字体和字号分别为“宋体”、“三号”,标签大小能根据标题内容自动调整,效果如图所示。程序执行时,窗体的最大化按钮不可用(如图所示),请设置
窗体上有1个名称为Command1的命令按钮,事件过程及函数过程如下:PrivateSubCommand1_Click() DimmAsString m=InputBox("请输入字符串") Printpick_str(m)En
随机试题
男性,24岁,因四肢麻木、瘫痪半年入院。诊断为慢性格林一巴利综合征或慢性炎症性脱髓鞘性多神经病(CIDP)下列哪种治疗对CIDP较为适宜
下列不属于浓缩的方法是
A.对流免疫电泳B.火箭免疫电泳C.免疫电泳D.免疫固定电泳E.交叉免疫电泳区带电泳和火箭免疫电泳相结合的免疫分析技术是
对准备从事接尘作业职工进行就业前体检时,拍摄胸大片的目的是为了解以下情况,除了
开放式基金的注册登记业务包括( )。
张某在甲公司的月工资为2000元,当地最低月工资标准为700元,张某因患病在家中病休。根据劳动合同法律制度的规定,在医疗期内,张某的病假工资小得低于()元。
税收的作用包括国家组织财政收入、()、实施经济监督、扩大对外贸易。
【英国东印度公司】(EastIndiaCompany)东北师范大学2002年世界史真题;厦门大学2002年世界近代史真题;北京大学2003年世界近现代史真题
患者,男性,37岁,1日来左侧后牙持续跳痛来急诊。检查见龋深,冷测时疼痛缓解。请问热测时患牙的反应是()。
Inthefollowingtext,somesentenceshavebeenremoved.ForQuestions41-45,choosethemostsuitableonefromthelist(A、B、C、
最新回复
(
0
)