




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、201007VB期末考卷城市学院(201007VB final examination paper city college)Honesty should test out the style of the testCity college of zhejiang universityFinal examination paper for the second semester of the 2009-2010 academic yearFoundation and experiment of VB programming designUnit of computing: the comput
2、ing branch; Exam form: closed book; Exam time: July 1, 2010Time required: 120 minutesTitle sequenceaThe secondthreefourThe total pointsscoreWhere some peoplescore1. Single topic (18 questions, 2 points per question, 36 points)qidone2345678910qid1112131415161718score2. The program fills in the blanks
3、 (1 question, 2 points each time, 10 points in total).(1)(2)(3)(4)(5)score3. Program reading (6 questions, 4 points per question, 24 points)Question 1: question 2:Question 3: question 4:Question 5:Question 6:score4. Program design (3 questions, 10 points per question, 30 points total)Question 1:.Pro
4、blem 2:.Problem 3:.City college of zhejiang universityFinal examination paper for the second semester of the 2009-2010 academic yearFoundation and experiment of VB programming designUnit: computing branch; Examination form: closed book; Exam time: July 1, 2010Time required: 120 minutes1. Single choi
5、ce (36%, 2 points per minor)1. Visual Basic is an object-oriented programming language, which constitutes the three elements of an object.A. attributes, controls, and methods b. attributes, events, and methodsC. Forms, controls, and procedures d. controls, processes, and modules2. The value of Int (
6、45 * Rnd) + 5) * 2 is even in the _ range?A. 0, 100 B. 0, 98 C. 10, 100 d. 10, 983. Which statement will delete the text in Text1 of textbox?A. t ext1.text = B.T ext1.seltext = Text 1. Clear d.seltex.clear4. In the following groups of functions, the same group of function value types are.A.E (x), Ch
7、r (x), Lcase (x), (x), Str (x), Rtrim (x).C.S gn (x), Int (x), Len (x) D.F ix (x), Left (x), Ucase (x)5. First declare Dim X As String * 10, then assign X = zhejiang, and then the value of Len (X) is.A. 10 b. 2 c. 4 d. 126. Determine that there is and only one of the following expressions for 0 in x
8、 and y, and the correct one is.A.x = 0 Or y = 0 and x * y 0 B.x + y = 0 and x * y 0So C.x plus y is equal to 0 and x times y is equal to 0, and then were going to have 0, and then were going to go to y7. Set the internal color of an area of EXCEL and the color index attribute to be set.A.ForeColor B
9、.B ackColor C.I nterior D.I nside8. Assign the maximum number of variables x and y to the variable a, and the correct expression is.A.a = x: If y , x Then a = y bSo, C.a = If y x Then y Else x D.I f y x Then a = y Else a = x End If9. If the initial value of the variable I is 9, the cycle times of th
10、e following loop statements are repeated.Do While I = 20I = I + 3LoopA. 3 b. 4 c. 5 d. 6 timesThe Option Base 1 of the generic part of the form determines the array index in the form.A. The lower bound must be 1 B. The default lower bound is 1C. The lower bound must be 0 d. the default lower bound i
11、s 011. The following array declaration is correct.A.n = 5 B.D im a (10) As IntegerDim a (1 to n) As Integer ReDim a (1 to 12)As a Single d.im a () As an IntegerReDim a (3, 4) As Integer n = 5ReDim a (1 to n)12. After declaring Dim x (0 to 3 to 4), the x array can store elements.A.4 b.6 c.8 d.1213. U
12、se the InputBox function for all elements B (0), B (1), B (2), and. B (9) is assigned the value in turn. The correct way to write it is.A.F or I = 0 To 9: B (I) = InputBox: Next IB.B = InputBox ( )Mount (I) = InputBox ( )D. f or I = 0 To 9: B (I) = InputBox ( ) : Next IUse the Static keyword definit
13、ion process to refer to.A. The declaration process name is static B. Declarative parameters are staticC. The local variable in the declaration process is static. The return value of the declaration process is static15. If a procedure is declared Sub aa (n As Integer), the following call is _.A.C all
14、 aa (y) B.C all aa () C.a (y) D.z = aa (y)16. In Form2, we refer to the global variable x in Form1, writing _.Orm1. X c.f. orm. x17. The most fundamental difference between the Sub process and the Function process is _.A. The former can be called by Call or directly using the process name, which can
15、notB. The latter can have parameters, the former cantC. The transmission of two process parameters is differentD. The former has no return value, but the latter has18. The following statement of the face-saving process states that it is lawful to _.A. s ub f1 (ByVal n () As Integer)B.S ub f1 (n () A
16、s Integer) As IntegerC.F unction f1 (f1 As Integer)D. f unction f1 (ByVal n As Integer) As Integer2. Program fill-in-the-blank (10%, 2 points per air)Directions: in the following questions, please. , _ (5) _ to fill in the appropriate content and complete the procedure.Input from the keyboard program specification 】 【 an arbitrary string, the string of all characters split apart, again according to the order of the characters in the ASCII since the childhood will these characters to form a new string. For examp
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 设备安装调试合同协议书
- 二手电脑销售协议合同
- 超市托管运营协议书模板
- 中小学生消防公开课课件
- 2025再论设备合同的订立与管理
- 2025企业办公租赁合同全解
- 2025租赁合同生效日期
- 2025未签署劳动合同能否获得赔偿金
- 2025绿化苗木采购合同范本
- 中国鼓教学P课件
- 公选副科考试试题及答案
- 热控专业考试题库及答案
- 2025年克拉玛依市公安局招聘警务辅助人员考试笔试试题(含答案)
- 中国陶瓷史题目及答案
- 湖北省2025年中考英语真题试卷(含答案)
- 2025年中远海运集团招聘笔试备考题库(带答案详解)
- 护理查房与病历讨论
- 2025至2030儿童安全椅市场发展趋势分析与未来投资战略咨询研究报告
- 酒精所致精神障碍护理查房
- 2025-2030中国遥控武器站行业现状调研与前景趋势预测报告
- 内蒙古呼伦贝尔能源投资开发有限责任公司招聘笔试真题2024
评论
0/150
提交评论