不凡考网

计算机二级2022考试试题试卷(7J)

来源: 不凡考网    发布:2022-04-17     [手机版]    
  • 下载次数:
  • 支持语言:
  • 1896次
  • 中文简体
  • 文件类型:
  • 支持平台:
  • pdf文档
  • PC/手机

导读

不凡考网发布计算机二级2022考试试题试卷(7J)相关信息,更多计算机二级2022考试试题试卷(7J)的相关资讯请访问不凡考网计算机类考试频道。

1. [单选题]单击命令按钮执行下列程序,其输出结果是。 Private Sub Commana1_Click() Dim a As Integer,b As Integer,c As Integer a = 3 b = 4 c = 5 Print SecProc(c,b,a) End Sub Function FirProc(x As Integer,y As Integer,z As Integer) FirProc = 2 * x + y + 3 * z End Function Function SecProc(x As Integer,y As Integer,z As Integer) SecProc = FirProc(z,x,y) + x End Function

A. 20
B. 22
C. 28
D. 30


2. [单选题]假定时钟控件的Interval属性为1000,Enabled属性为True,并且有下面的事件过程,计算机将发出( )beep声。 Sub Timer1_Timer() Fori=1 to 10 Beep Nexti End Sub

A. 1000次
B. 10000次
C. 10次
D. 以上都不对


3. [单选题]在窗体上有一个命令按钮Commandl,编写事件代码如下:Private Sub Commandl Click( ) Dim X As Integer,Y As Integer x=12:y=32 Call Proc(x,Y) Debug.Print X;Y End Sub Public Sub proc(n As Integer,ByVal in As Integer) n=n Mod 10 m=m Mod 1O End Sub 打开窗体运行后,单击命令按钮,立即窗口上输出的结果是( )。

A. 232
B. 123
C. 22
D. 1232


  • 查看答案&解析

  • 本文链接:https://www.zhukaozhuanjia.com/download/qpllvo.html
    推荐阅读
    @2019-2026 不凡考网 www.zhukaozhuanjia.com 蜀ICP备20012290号-2