




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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年速释制剂材料项目发展计划
- 跨部门协调合作流程管理规定
- 月度业务讨论
- 新项目合作投资协议
- 2021最新版三年级下册生命-生态-安全教案
- 【自考练习题】石家庄学院概率论与数理统计真题汇总(附答案解析)
- 广东省深圳市2021-2022学年高二下学期期末考试 语文 Word版含解析
- 专项施工方案专家论证意见回复表
- 市政管道顶管施工技术的发展历史(45页)
- 《医古文》教学全套课件580页
- 水电厂计算机监控系统改造技术要求
- 依恋理论之母婴依恋
- 电气CAD-电气图基本知识
- 混合痔的治疗PPT课件
- 质量管理体系中的术语
评论
0/150
提交评论