首页 > 职业技能鉴定
题目内容 (请给出正确答案)
[单选题]

编写如下3个事件过程:Private Sub Form. KeyDown (KeyCodeAs Integer, Shift As Integer)Prin

A.ddd

B.dDd

C.DdD

D.DDD

查看答案
答案
收藏
如果结果不匹配,请 联系老师 获取答案
您可能会需要:
您的账号:,可能还需要:
您的账号:
发送账号密码至手机
发送
安装优题宝APP,拍照搜题省时又省心!
更多“编写如下3个事件过程:Private Sub Form. K…”相关的问题
第1题
在窗体上画一个文本框,然后编写如下事件过程:Private Sub Form_Click()Dim x As Integerx = V
在窗体上画一个文本框,然后编写如下事件过程:Private Sub Form_Click()Dim x As Integerx = V

在窗体上画一个文本框,然后编写如下事件过程:

Private Sub Form_Click()

Dim x As Integer

x = Val(InputBox("请输入一个整数"))

Print x + Text1.Text

End Sub

程序运行时,在文本框中输入12,然后单击窗体,在输入对话框中输入34,单击"确定"按钮后,在窗体上显示的内容为______。

A.46

B.123

C.3412

D.1234

点击查看答案
第2题
阅读下面事件过程,写出执行结果。Private Sub Command1_Click()Dim a%, b%, c%, s%, w%, t%a =
阅读下面事件过程,写出执行结果。Private Sub Command1_Click()Dim a%, b%, c%, s%, w%, t%a =

阅读下面事件过程,写出执行结果。

Private Sub Command1_Click()

Dim a%, b%, c%, s%, w%, t%

a = -1: b = 3: c = 3

s = 0: w = 0: t = 0

If c > 0 Then s = a + b

If a <= 0 Then

If c <= 0 Then

w = a - b

End If

Else

If c > 0 Then w = a - b Else t = c

End If

c = a + b

Print a, b, c

Print s, w, t

End Sub

点击查看答案
第3题
在窗体上画一个名称为Command1的命令按钮,然后编写如下事件过程:PrivateSubcommand1clickIfx>0Theny=x^2ElseEndIfPrintyEndsub程序运行后,单击命令按钮,窗体上显示的是()。

A.-5

B.25

C.-1

D.1

点击查看答案
第4题
Label2的标签,然后编写如下程序代码:Private x As IntegerPrivate Sub Command1_Click()a = 6:
Label2的标签,然后编写如下程序代码:Private x As IntegerPrivate Sub Command1_Click()a = 6:

Label2的标签,然后编写如下程序代码:

Private x As Integer

Private Sub Command1_Click()

a = 6: b = 4

Call sub1(a, b)

Label1.Caption = a

Label2.Caption = b

End Sub

Private Sub sub1(ByVal x As Integer, ByVal y As Integer)

a = x * x

b = y * y

End Sub

程序运行后单击命令按钮,则两个标签中显示的内容分别是_______。

A.36和4

B.6和4

C.36和8

D.6和8

点击查看答案
第5题
程序员编写的()都在单元实现部分。

A.事件处理程序

B.过程

C.函数的源代码

D.变量

点击查看答案
第6题
事故的特征包括()。

A.事故是在系统运行过程中发生的

B.事故是意外的突发事件,属于随机事件

C.事故是一个动态过程,有萌发、发展、突发3个阶段

D.事故的发生有它的必然性

点击查看答案
第7题
有如下类定义,obj是类D的对象,下列语句中不违反访问控制权限的是()。classB{public:voidfun1();private:voidfun2();protected:voidfun3();};classD:publicB{protected:voidfun4();}

A.obj.fun1()

B.obj.fun2()

C.obj.fun3()

D.obj.fun4()

点击查看答案
第8题
At the resorts tourists may do the following except ______.A.using the owner's private kit

At the resorts tourists may do the following except ______.

A.using the owner's private kitchen

B.cooking for themselves

C.enjoying peaceful environment

D.easily going to beaches

点击查看答案
第9题
维修工作负责人应在维修工作完成后3个工作日内完成维修报告的编写工作,并提交维修工程师审核。()
点击查看答案
第10题
The true subject of John Donne's poem, “The Sun Rising,” is to().

A.attack the sun as an unruly servant

B.give compliments to the mistress and her power of beauty

C.criticize the sun's intrusion into the lover's private life

D.lecture the sun on where true royalty and riches lie

点击查看答案
第11题
下列程序运行后的输出结果是()。#include#includeusingnamespacestd;classPerson{public:Person(stringn):name(n){cout<<'P';}private:stringname;};classDate{public:Date(inty=2012,intm=12,intd=21):year(y),month(m),day(d){cout<<'D';}private:intyear,month,day;};classStudent:publicPerson{public:Student(stringn,inty,intm,intd,charc):birthday(y,m,d),sex(c),Person(n){cout<<'S';}private:Datebirthday;charsex;};intmain(){Studentstu1("Zhang",1990,10,1,'F');return0;}

A.S

B.PS

C.DPS

D.PDS

点击查看答案
退出 登录/注册
发送账号至手机
密码将被重置
获取验证码
发送
温馨提示
该问题答案仅针对搜题卡用户开放,请点击购买搜题卡。
马上购买搜题卡
我已购买搜题卡, 登录账号 继续查看答案
重置密码
确认修改