版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026四川宜宾沿江建设投资集团有限公司下属股权企业招聘工作人员2人备考题库及答案详解(全优)
- 2026年琼中教师招聘25人备考题库含答案详解(黄金题型)
- 2026广东广州白云区招聘内勤文职1名备考题库及答案详解(全优)
- 小学信息技术三年级下册:初识文件与文件夹(教学设计)
- 初中三年级地理单元复习深度教学方案:区域可持续发展视域下的中国东北地区
- 初中历史与社会七年级下册《区域差异与人文生活》教案
- 统编版小学语文二年级下册《语文园地五》学习任务群教案
- 大单元·跨学科视野下七年级地理上册综合复习与能力提升教学设计
- 初中三年级英语单元教学设计:媒介素养视阈下的电视节目分析与批判性思维培养
- 核心素养导向下的初中地理起始单元教学设计:“探索地球家园-从地球仪开始”
- GA 53-2025爆破作业人员资格条件和管理要求
- 《年历、月历中的信息》教案-2025-2026学年苏教版小学三年级数学下册
- 消防大队保密工作制度
- 2026石嘴山经济技术开发区实业开发有限公司招聘17人考试备考试题及答案解析
- 2026年国家药品监督管理局药品和医疗器械审评检查京津冀分中心、华中分中心、西南分中心公开招聘编外人员122名(第一批)笔试参考试题及答案解析
- 2026年春教科版(新教材)小学科学三年级下册(全册)知识点复习要点梳理
- 中国脑外伤康复指南(2025版)
- 2026校招:华夏银行笔试题及答案
- 2026年吉林电子信息职业技术学院单招职业技能考试题库带答案详解(预热题)
- 医美考核制度模板
- 2026秋招:东方航空笔试题及答案
评论
0/150
提交评论