首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
窗体中有命令按钮Commandl,事件过程如下: Public Function f(x As Integer)As Integer Dim yAs Integer x=20:y=2 f=x*y End Function Private S
窗体中有命令按钮Commandl,事件过程如下: Public Function f(x As Integer)As Integer Dim yAs Integer x=20:y=2 f=x*y End Function Private S
admin
2019-06-28
31
问题
窗体中有命令按钮Commandl,事件过程如下:
Public Function f(x As Integer)As Integer
Dim yAs Integer
x=20:y=2
f=x*y
End Function
Private Sub Command l Click()
Dim y As Integer
Static x As Integer
x=10:y=5
y=f(x)
Debug.Print x;y
End Sub
运行程序,单击命令按钮,则立即窗口中显示的内容是
选项
A、10 5
B、10 40
C、20 5
D、20 40
答案
B
解析
static为静态变量,要在过程的实例间保留局部变量的值,用此变量,它的持续时间是整个模块执行的时间,但它的有效作用范围是由其定义位置决定的。
转载请注明原文地址:https://jikaoti.com/ti/1Do0FFFM
本试题收录于:
二级Access题库NCRE全国计算机二级分类
0
二级Access
NCRE全国计算机二级
相关试题推荐
考生文件夹下存在一个数据库文件“samp2.accdb”,里面已经设计好表对象“tEmployee”、“tSell”和“tBook”,试按以下要求完成设计:创建一个查询,查找单价大于等于15且小于等于20的图书,并显示“书名”、“单价”、“作者名”和“
在考生文件夹下,“sampl.accdb”数据库文件中已建立三个关联表对象(名为“线路”、“游客”和“团队”)和窗体对象“brow”。试按以下要求,完成表和窗体的各种操作:分析“团队”表的字段构成、判断并设置主键。
考生文件夹下存在一个数据库文件“samp3.accdb”,里面已经设计好表对象“tAddr”和“tUser”,同时还设计出窗体对象“fEdit”和“fEuser”。请在此基础上按照以下要求补充“fEdit”窗体的设计:将窗体标题设为“显示/修改用户口令
考生文件夹下存在一个数据库文件“samp2.accdb”,里面已经设计好表对象“档案表”和“水费”,试按以下要求完成设计:设置“档案表”表中的“性别”字段的有效性规则为其值只能为“男”或“女”,有效性文本为“性别字段只能填写男或女”。
某系统结构图如下图所示该系统结构图的最大扇出数是
下列与队列结构有关联的是
在设计计算控件中,"控件来源"表达式前都要加上的运算符是
下列关于货币数据类型的叙述中,错误的是( )。
逻辑模型是面向数据库系统的模型,下面属于逻辑模型的是
下列叙述中正确的是( )。
随机试题
采用佛尔哈德测定肉或肉制品中氯化物含量时热水提取氯化物后()。
通过教育督导的监视和督促,促进国家和上级政府、教育行政部门的各种方针、政策、要求和任务得到认真及时的贯彻落实,以加强各级政府和教育行政部门的宏观监控,推动教育工作的健康发展。这是教育督导功能的()
子宫颈癌子宫黏膜下肌瘤
在请求检察院作出刑事赔偿时,下列哪些文书或证明材料,不可视为请求赔偿的侵权事实已依法确认:
下列关于施工安全目标的表述正确的有( )。
建设和谐社区是建设和谐社会的重要组成部分。只有进一步完善社区的管理体制,才能明确社区的社会职责;如果不提高社区的服务水平,就不能满足居民快速增长的各种需求;社区管理的法规建设是社区基层民主自治的重要前提,而加强社区基层的民主自治也有利于完善社区的管理体制。
萧某对李某作出承诺:只要李某把邻居家的小狗偷来,就付给酬金200元。该行为属于:
山水诗
A、Ofthesalesdollar,morethan7%goestoAdministration.B、TaxesandSellingExpensemakeup26%.C、ComparedwithProfit,les
A.selflessB.builtC.complexD.butE.executeF.sustainedG.cheatedH.issues
最新回复
(
0
)