【计算机类职业资格】VB笔试章节练习试卷2及答案解析.doc

上传人:terrorscript155 文档编号:1318786 上传时间:2019-10-17 格式:DOC 页数:4 大小:43KB
下载 相关 举报
【计算机类职业资格】VB笔试章节练习试卷2及答案解析.doc_第1页
第1页 / 共4页
【计算机类职业资格】VB笔试章节练习试卷2及答案解析.doc_第2页
第2页 / 共4页
【计算机类职业资格】VB笔试章节练习试卷2及答案解析.doc_第3页
第3页 / 共4页
【计算机类职业资格】VB笔试章节练习试卷2及答案解析.doc_第4页
第4页 / 共4页
亲,该文档总共4页,全部预览完了,如果喜欢就下载吧!
资源描述

1、VB笔试章节练习试卷 2及答案解析(总分:32.00,做题时间:90 分钟)一、选择题(总题数:11,分数:22.00)1.选择题()下列各题 A、B、C、D 四个选项中,只有一个选项是正确的,请将正确选项涂写在答题卡相应位置上。(分数:2.00)_2.下列_是字符型常量。(分数:2.00)A.I am a studentB.江苏南京C.#02/25/1999#D.123#3.下列_是日期型常量。(分数:2.00)A.I am a StudentB.江苏南京C.#02/25/1999#D.123#4.下列_是合法的变量名。(分数:2.00)A.5aB.W_ABC.5nameD.Use&DASF

2、5.下列_是双精度型变量。(分数:2.00)A.AAA%B.BBB$C.CCC!D.DDD#6.数学式“2/3e(xy)”的 VB表达式是_。(分数:2.00)A.2*Exp(XY)/3B.2*E(XY)/3.0C.2/3*Exp(XY)D.(2.0/3.0)*E*(XY)7. (分数:2.00)A.5*(A-B)/(1C/(D-E)B.5.0*(A-B)/C/(1(D-E)C.5.0*(A-B)/1C/(D-E)D.5*A-B/(1C/D-E)8.设 M=3,N=5,P=4.5,Q=2.5,表达式(M*N2)/(P-Q)的计算结果为_。(分数:2.00)A.8B.9C.8.5D.8.09.数

3、学式 et.Log(ab).(-8t2)写成 VB的正确表达式是_。(分数:2.00)A.ET*Log(AB)*(-8*T2)B.Exp(T)*Log(AB)/Log(10)*(-8*T2)C.Exp(T)*Ln(AB)*(-8*Sqr(T)D.ET*Log(AB)/Log(10)*(-8*T2)10.15除以 2余数的-3 次方的 VB表达式为_。(分数:2.00)A.Mod(15,2)(-3)B.(15 Mod 2)(-3)C.15.0 Mod 2-3.0D.MOd(15.0,3)-3.011. (分数:2.00)A.(-A)2 Log(Exp(k)/(A-B)(3-A)*(B+8)*Si

4、n(75)B.(-A)2*Log(Exp(K)/Log(10)/(A-B)=(3-A)*(B8)*Sin(75/180*3.14159)C.(-A)2 Log(Exp(K)/(A-B)=(3-A)*(B+8)*Sin(75/180)D.(-A)2*Log(Exp(K)/Log(10)/(A-B)=(3-A)*(B+8)*Sin(75*3.14159)二、填空题(总题数:5,分数:10.00)12.填空题(每空)请将每一个空的正确答案写在答题卡上。注意:以命令关键字填空的必须拼写完整。(分数:2.00)_13.在窗体上有一个命令按钮,其名称为 Command1。要实现程序运行后,单击命令按钮,如

5、果在输入对话框里分别输入 12和 4,编写如下事件过程:Private Sub Command1_Click()A=InputBox(“被除数“)B=InputBox(“除数“)Print A;“;B;“=“;A / BEnd Sub 则窗体中显示的内容是 1。(分数:2.00)填空项 1:_14.在窗体上有一个命令按钮,其名称为 Command1。要实现程序运行后,单击命令按钮,如果在输入对话框里分别输入 12和 4,编写如下事件过程:Private Sub Command1_Click()A=InputBox(“被除数“)B=InputBox(“除数“)Print A;“;B;“=“;A

6、/ BEnd Sub 则窗体中显示的内容是 1。(分数:2.00)填空项 1:_15.以下程序代码用来实现如下功能:单击命令按钮弹出对话框,在其中输入正数后单击确定,弹出一个提示信息显示刚才输入的正数,否则提示“error“。请填空。Private Sub Command1_Click()Dim a As Integer,b As Stringa=InputBox(“请输入一个正数“)If a 0 Then 1Elseb=MsgBox(“error“,0)End IfEnd Sub(分数:2.00)填空项 1:_16.在窗体上有一个命令按钮和一个文本框。编写如下事件过程:Private Sub

7、 Command1_Click()a=InputBox(“请输入一个整数“)Text1Text=aIf a 0 ThenIf a Mod 3 = 0 ThenMsgBox “True“ElseMsgBox “error“End IfEnd IfEnd Sub程序运行后,单击命令按钮,在输入对话框里输入 12,则弹出的提示内容是 1。(分数:2.00)填空项 1:_VB笔试章节练习试卷 2答案解析(总分:32.00,做题时间:90 分钟)一、选择题(总题数:11,分数:22.00)1.选择题()下列各题 A、B、C、D 四个选项中,只有一个选项是正确的,请将正确选项涂写在答题卡相应位置上。(分数

8、2.00)_解析:2.下列_是字符型常量。(分数:2.00)A.I am a student B.江苏南京C.#02/25/1999#D.123#解析:3.下列_是日期型常量。(分数:2.00)A.I am a StudentB.江苏南京C.#02/25/1999# D.123#解析:4.下列_是合法的变量名。(分数:2.00)A.5aB.W_AB C.5nameD.Use&DASF解析:5.下列_是双精度型变量。(分数:2.00)A.AAA%B.BBB$C.CCC!D.DDD# 解析:6.数学式“2/3e(xy)”的 VB表达式是_。(分数:2.00)A.2*Exp(XY)/3 B.2*E

9、XY)/3.0C.2/3*Exp(XY)D.(2.0/3.0)*E*(XY)解析:7. (分数:2.00)A.5*(A-B)/(1C/(D-E) B.5.0*(A-B)/C/(1(D-E)C.5.0*(A-B)/1C/(D-E)D.5*A-B/(1C/D-E)解析:8.设 M=3,N=5,P=4.5,Q=2.5,表达式(M*N2)/(P-Q)的计算结果为_。(分数:2.00)A.8B.9C.8.5 D.8.0解析:9.数学式 et.Log(ab).(-8t2)写成 VB的正确表达式是_。(分数:2.00)A.ET*Log(AB)*(-8*T2)B.Exp(T)*Log(AB)/Log(10)

10、8*T2) C.Exp(T)*Ln(AB)*(-8*Sqr(T)D.ET*Log(AB)/Log(10)*(-8*T2)解析:10.15除以 2余数的-3 次方的 VB表达式为_。(分数:2.00)A.Mod(15,2)(-3)B.(15 Mod 2)(-3) C.15.0 Mod 2-3.0D.MOd(15.0,3)-3.0解析:11. (分数:2.00)A.(-A)2 Log(Exp(k)/(A-B)(3-A)*(B+8)*Sin(75)B.(-A)2*Log(Exp(K)/Log(10)/(A-B)=(3-A)*(B8)*Sin(75/180*3.14159) C.(-A)2 Lo

11、g(Exp(K)/(A-B)=(3-A)*(B+8)*Sin(75/180)D.(-A)2*Log(Exp(K)/Log(10)/(A-B)=(3-A)*(B+8)*Sin(75*3.14159)解析:二、填空题(总题数:5,分数:10.00)12.填空题(每空)请将每一个空的正确答案写在答题卡上。注意:以命令关键字填空的必须拼写完整。(分数:2.00)_解析:13.在窗体上有一个命令按钮,其名称为 Command1。要实现程序运行后,单击命令按钮,如果在输入对话框里分别输入 12和 4,编写如下事件过程:Private Sub Command1_Click()A=InputBox(“被除数“

12、)B=InputBox(“除数“)Print A;“;B;“=“;A / BEnd Sub 则窗体中显示的内容是 1。(分数:2.00)填空项 1:_ (正确答案:正确答案:124=3)解析:14.在窗体上有一个命令按钮,其名称为 Command1。要实现程序运行后,单击命令按钮,如果在输入对话框里分别输入 12和 4,编写如下事件过程:Private Sub Command1_Click()A=InputBox(“被除数“)B=InputBox(“除数“)Print A;“;B;“=“;A / BEnd Sub 则窗体中显示的内容是 1。(分数:2.00)填空项 1:_ (正确答案:正确答案

13、Abort Retry Cancel)解析:15.以下程序代码用来实现如下功能:单击命令按钮弹出对话框,在其中输入正数后单击确定,弹出一个提示信息显示刚才输入的正数,否则提示“error“。请填空。Private Sub Command1_Click()Dim a As Integer,b As Stringa=InputBox(“请输入一个正数“)If a 0 Then 1Elseb=MsgBox(“error“,0)End IfEnd Sub(分数:2.00)填空项 1:_ (正确答案:正确答案:MsgBox a)解析:16.在窗体上有一个命令按钮和一个文本框。编写如下事件过程:Private Sub Command1_Click()a=InputBox(“请输入一个整数“)Text1Text=aIf a 0 ThenIf a Mod 3 = 0 ThenMsgBox “True“ElseMsgBox “error“End IfEnd IfEnd Sub程序运行后,单击命令按钮,在输入对话框里输入 12,则弹出的提示内容是 1。(分数:2.00)填空项 1:_ (正确答案:正确答案:True)解析:

展开阅读全文
相关资源
猜你喜欢
  • DIN EN 16297-2-2013 Pumps - Rotodynamic pumps - Glandless circulators - Part 2 Calculation of energy efficiency index (EEI) for standalone circulators German version EN 16297-2 201.pdf DIN EN 16297-2-2013 Pumps - Rotodynamic pumps - Glandless circulators - Part 2 Calculation of energy efficiency index (EEI) for standalone circulators German version EN 16297-2 201.pdf
  • DIN EN 16297-3-2013 Pumps - Rotodynamic pumps - Glandless circulators - Part 3 Energy efficiency index (EEI) for circulators integrated in products German version EN 16297-3 2012《泵.pdf DIN EN 16297-3-2013 Pumps - Rotodynamic pumps - Glandless circulators - Part 3 Energy efficiency index (EEI) for circulators integrated in products German version EN 16297-3 2012《泵.pdf
  • DIN EN 16299-2013 Cathodic protection of external surfaces of above ground storage tank bases in contact with soil or foundations German version EN 16299 2013《与土壤或地基接触的地面储罐基底外表面的阴极.pdf DIN EN 16299-2013 Cathodic protection of external surfaces of above ground storage tank bases in contact with soil or foundations German version EN 16299 2013《与土壤或地基接触的地面储罐基底外表面的阴极.pdf
  • DIN EN 16300-2012 Automotive fuels - Determination of iodine value in fatty acid methyl esters (FAME) - Calculation method from gas chromatographic data German version EN 16300 201.pdf DIN EN 16300-2012 Automotive fuels - Determination of iodine value in fatty acid methyl esters (FAME) - Calculation method from gas chromatographic data German version EN 16300 201.pdf
  • DIN EN 16301-2013 Natural stone test methods - Determination of sensitivity to accidental staining German version EN 16301 2013《天然石料试验方法 偶然染色灵敏度的测定 德文版本EN 16301-2013》.pdf DIN EN 16301-2013 Natural stone test methods - Determination of sensitivity to accidental staining German version EN 16301 2013《天然石料试验方法 偶然染色灵敏度的测定 德文版本EN 16301-2013》.pdf
  • DIN EN 16302-2013 Conservation of cultural heritage - Test methods - Measurement of water absorption by pipe method German version EN 16302 2013《文化遗产保护 试验方法 套管法测量吸水性 德文版本EN 16302-2.pdf DIN EN 16302-2013 Conservation of cultural heritage - Test methods - Measurement of water absorption by pipe method German version EN 16302 2013《文化遗产保护 试验方法 套管法测量吸水性 德文版本EN 16302-2.pdf
  • DIN EN 16304-2013 Automatic vent valves for gas burners and gas burning appliances German version EN 16304 2013《燃气燃烧器及燃气燃烧器具用自动排气阀 德文版本EN 16304-2013》.pdf DIN EN 16304-2013 Automatic vent valves for gas burners and gas burning appliances German version EN 16304 2013《燃气燃烧器及燃气燃烧器具用自动排气阀 德文版本EN 16304-2013》.pdf
  • DIN EN 16306-2013 Natural stone test methods - Determination of resistance of marble to thermal and moisture cycles German version EN 16306 2013《天然石材试验方法 大理石抗热湿周期的测定 德文版本EN 16306-2.pdf DIN EN 16306-2013 Natural stone test methods - Determination of resistance of marble to thermal and moisture cycles German version EN 16306 2013《天然石材试验方法 大理石抗热湿周期的测定 德文版本EN 16306-2.pdf
  • DIN EN 16307-1-2015 Industrial trucks - Safety requirements and verification - Part 1 Supplementary requirements for self-propelled industrial trucks other than driverless trucks v.pdf DIN EN 16307-1-2015 Industrial trucks - Safety requirements and verification - Part 1 Supplementary requirements for self-propelled industrial trucks other than driverless trucks v.pdf
  • 相关搜索

    当前位置:首页 > 考试资料 > 职业资格

    copyright@ 2008-2019 麦多课文库(www.mydoc123.com)网站版权所有
    备案/许可证编号:苏ICP备17064731号-1