首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
窗体中有命令按钮Commandl,事件过程如下: Public Function f(x As Integer)As Integer Dim Y As Integer x=20 Y=2 f=x*y End F
窗体中有命令按钮Commandl,事件过程如下: Public Function f(x As Integer)As Integer Dim Y As Integer x=20 Y=2 f=x*y End F
admin
2018-10-18
27
问题
窗体中有命令按钮Commandl,事件过程如下:
Public Function f(x As Integer)As Integer
Dim Y As Integer
x=20
Y=2
f=x*y
End Function
Pri vate Sub Commandl_Click()
Dim Y As Integer
Static X As Integer
x=10
y=5
y=f(x)
Debug.Print x;Y
End Sub
运行程序,单击命令按钮,则立即窗口中显示的内容是
选项
A、1 0 5
B、10 40
C、20 5
D、20 40
答案
B
解析
static为静态变量,要在过程的实例间保留局部变量的值,用此变量,它的持续时问是整个模块执行的时间,但它的有效作用范嗣是由其定义位置决定的。
转载请注明原文地址:https://jikaoti.com/ti/xh10FFFM
本试题收录于:
二级Access题库NCRE全国计算机二级分类
0
二级Access
NCRE全国计算机二级
相关试题推荐
在窗体上画两个文本框和一个命令按钮,然后在命令按钮的代码窗口中编写如下事件过程:PrivateSubCommand1_Click()Textl=“VBprogramming”Text2=TextlTextl="ABCD"EndS
程序流程图(PFD)中的箭头代表的是______。
Access字段名不能包含的字符是______。
若在"tEmployee"表中查找所有姓“王”的记录,可以在查询设计视图的准则行中输入()。
在关系数据库中,用来表示实体之间联系的是()。
下列叙述中正确的是
程序设计的表示方法可以分为:表格、______和语言三类。
Access数据库中,为了保持表之间的关系,要求在主表中修改相关记录时,子表相关记录随之更改。为此需要定义参照完整性关系的()。
软件的需求分析阶段的工作,可以概括为四个方面:【】需求分析、编写需求规格说明书和需求评审。
软件调试的目的是______。
随机试题
下列选项,与所给立体图形不同的是:
内在式焦点叙述是指【】
低钾血症主要的早期表现是
患者,男,62岁。既往患乙肝、肝硬化病史20年,近6天来出现大便不畅、烦躁不安,昼夜颠倒。查体:肌张力增高,Babinski征阳性,血氨正常。为解除患者便秘症状,下列处理错误的是
甲状腺功能亢进症与单纯性甲状腺肿的鉴别指标是
患者项背强直,头痛,恶寒发热,肢体酸重,舌苔白腻,脉浮紧。其治法是
[2007年第80题]描述液体运动有迹线和流线的概念()。
级差地租I的含义是()。
把下面的六个图形分为两类,使每一类图形都有各自的共同特征或规律,分类正确的一项是:
以下叙述中正确的是()。
最新回复
(
0
)