首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
窗体中有命令按钮Commandl,事件过程如下: Public Function f(x As Integer)As Integer Dim yAs Integer x=20 y=2 f=x*
窗体中有命令按钮Commandl,事件过程如下: Public Function f(x As Integer)As Integer Dim yAs Integer x=20 y=2 f=x*
admin
2021-07-08
23
问题
窗体中有命令按钮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 YAs 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/w690FFFM
本试题收录于:
二级Access题库NCRE全国计算机二级分类
0
二级Access
NCRE全国计算机二级
相关试题推荐
下面不属于结构化程序设计原则的是()。
在Access数据库中要修改一个表中部分字段的属性,可使用的SQL命令是
下列与Access表相关的叙述中,错误的是()。
在Access中,与关系数据库中的术语“域”对应的概念是()。
定义学生、教师和课程的关系模式STC(sNO,SN,SA,TN,CN,G),其中的六个属性分别为学生的学号、姓名、年龄、教师的姓名、课程名以及学生的成绩,则该关系为()。
下列叙述中正确的是()。
如果变量A是Boolean型,则下列赋值语句中,正确的是()。
在Access中有雇员表,其中有存照片的字段,在使用向导为该表创建窗体时,“照片”字段所使用的默认控件是()。
下列属于通知或警告用户的命令是()。
随机试题
1994年全面推行分税制后,__________属于中央与地方共享税。
下列关于突发事件的恢复工作的说法错误的是()。
仲裁过程中,被申请人经书面通知,无正当理由不到庭的,应( )。
付款人累计()次提出无理拒付的,付款人开户银行应暂停其向外办理托收。
下列金融资产中,应按公允价值进行初始计量,且交易费用不计入初始入账价值的是()。
17世纪捷克教育家夸美纽斯在()中对班级授课制给予了系统的理论描述。
从洋务运动到五四运动前后,近代化在中国曲折发展。在中国近代化的发展历程中,下列口号或主张出现的先后顺序是()。①自强、求富②民主、科学③三民主义④变法维新
A.briefB.entriesC.intoA.beclassified【T1】______fourtypesB.【T2】______formofweblogC.【T3】______onablogareorgan
设机器字长为8个二进制位,对于十进制数一128,其补码表示为________________。
文件IN.DAT中存有200个四位整型数,函数ReadData()负责将IN.DAT中的数滨到数组inBuf[]中。请编写函数findValue(),其功能是:求出满足千位数上的值减百位数上的值减十位数上的值减个位数上的值大于零且此四位数是奇数的数.并按照
最新回复
(
0
)