- 1、本文档共42页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
湖南二级计算机考试VB
56、以下定义的函数( C)是按“传值”方式传递参数的。
A. Public Function Sum(x,y)
B. Public Function Sum(ByVal x, ByVal y)
C. Public Function Sum(x as Integer,y as Integer)
D. Public Function Sum(x%, y%)
57、以下函数的定义中,( C)是错误的。
A. Public Function Sum(x ; y)
B. Public Function Sum(ByVal x, ByVal y)
C. Public Function Sum(x as Integer,y as Integer)
D. Public Function Sum(x%, y%)
58、以下递归函数中,正确的是(A )。
A. ?Public ?Function ?Fn(n as Integer)
If ?n=0 Then Fn=1 Else Fn=Fn*n
End ?Function
B. ?Public ?Function ?Fn(n as Integer)
If ?n=0 Then Fn=1 Else Fn=Fn(n)*n
End ?Function
C. ?Public ?Function ?Fn(n as Integer)
If ?n=0 Then Fn=1 Else Fn=Fn(n-1)*n
End ?Function
D. ?Public ?Function ?Fn(n as Integer)
If ?n=0 Then Fn=1 Else Fn=Fn(n+1)*n
End ?Function
59、已知一窗体中有如下函数过程和一命令按钮Command1,则单击Command1时,输出结果为(C )。
Public Function Fun(x, y)
Fun = 1
For i = 1 To y
Fun = Fun * x
Next i
End Function
Private Sub Command1_Click()
Print Fun(3, 4)
End Sub
A. 3 ? ? ? ? ? ? ? ?B. 4 ? ? ? ? ? ? ? ? ? ?C. 81 ? ? ? ? ? ? ? D. 256
60、已知一窗体上命令按钮Command1的Click事件代码如下,则单击Command1后,文本显示的文字为(A )。
Private Sub Command1_Click()
Text1.Text =”湖南省” “计算机” + “等级考试”
Text1.ForeColor = vbRed
Text1.BackColor = vbGreen
Text1.FontBold = True
End Sub
A. 湖南省计算机等级考试
B. 计算机
C. 等级考试
D. 计算机等级考试
61、VB提供的三种访问文件的模式中,不包括(D )。
A. 顺序文件 ? ? ?B. 数据库文件 ? ? ? ? ? C. 随机文件 ? ? ? ? D. 二进制文件
62、以下VB语句中,(B )的功能是复制指定文件。
A. Kill ? ? ? ? ?B. FileCopy ? ? ? ? ? ? C. Name ? ? ? ? ? ? D. MkDir
63、以下是Command1的单击事件,单击Command1后,在当前目录下创建了一个名为a.txt的文件,该文件内容为()。
Private Sub Command1_Click()
Open “a.txt” For Output As #1
Print #1, “计算机”;”等级考试”
Close #1
End Sub
A. 等级考试 ? ? ?B. 计算机等级考试 ? ? ? C. 计算机 ? ? ? ? ? D. 计算机;等级考试
64、已知一名为“Student.txt”的文件,其内容如下:
张小三,98,87,99
李四明,77,88,93
陈大光,89,56,65
则以下程序段执行的结果为(A)。
Private Sub Command1_Click()
Open “student.txt” For Input As #1
While (Not EOF(1))
Input #1, Nam, Chn, Eng, Cmp
Sum = Chn + Eng + Cmp
Print Sum;
Wend
Close #1
End Sub
A. 284 ?258 ?210
B. 98 ?87 ?99
C. 77 ?88 ?93
D. 89 ?56 ?65
65、以下关于while-wend循环的说法中正确的为(D )。
A、 与do while-loop循环完
您可能关注的文档
- 5.1 钢筋砼柱设计.ppt
- 公路隧道设计与分析.ppt
- 管道工程牵引管施工.doc
- 工程部主任试题.doc
- 办公楼维修钢结构装饰施工方案.doc
- 2012年四升五钳工试题.doc
- 石材幕墙结构计算.doc
- 钻孔灌注桩总结报告.doc
- 基坑围护新技术.docx
- CFG桩工艺性试验报告总结.doc
- 2024至2030年中国羚羊角类饮片行业深度调查与前景预测分析报告.docx
- 重庆市面向中国农业大学定向选调2024届大学毕业生2024年国家公务员考试考试大纲历年真题14笔试历.docx
- 重庆市面向西北工业大学定向选调2024届大学毕业生00笔试历年典型考题及解题思路附答案详解.docx
- 中国不动杆菌感染治疗药行业市场现状分析及竞争格局与投资发展研究报告2024-2029版.docx
- 2024至2030年全球与中国ETL软件市场现状及未来发展趋势.docx
- 初中八年级(初二)生物下册期末考试1含答案解析.docx
- 干簧式继电器项目申请报告.docx
- 2024至2030年中国左氧氟沙星片行业深度调查与前景预测分析报告.docx
- 菜籽项目申请报告.docx
- 2024至2030年中国八角钢行业深度调查与前景预测分析报告.docx
文档评论(0)