版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2024年度设备购买合同:某医院与某设备供应商关于医疗设备的购买合同
- 2024年度特许加盟合同:加盟费用与品牌使用规定
- 2024年度园林绿化苗木采购合同
- 《家乐福库存》课件
- 2024年度互联网金融服务合同法律问题研究2篇
- 2024中国电信集团限公司政企信息服务事业群招聘易考易错模拟试题(共500题)试卷后附参考答案
- 2024中国电信山东青岛分公司校园招聘易考易错模拟试题(共500题)试卷后附参考答案
- 2024年度电商支付服务合同2篇
- 2024中国兵器工业新技术推广研究所校园招聘易考易错模拟试题(共500题)试卷后附参考答案
- 2024中化工程集团环保限公司招聘35人易考易错模拟试题(共500题)试卷后附参考答案
- 2024年6月高考地理真题完全解读(浙江省)
- GB/T 19964-2024光伏发电站接入电力系统技术规定
- 工贸行业适用法律法规部门规章清单
- 合伙购校车合同协议范本模板
- 通信光缆工程施工技术标投标文件(可编辑)
- 民航气象常用缩略语及符号含义
- GB∕T 14480.3-2020 无损检测仪器 涡流检测设备 第3部分:系统性能和检验
- 《锅炉节能管理制度》
- 外贸销售合同,,
- CAM350参考手册EDIT
- 风电机组主齿轮箱检修技术规范
评论
0/150
提交评论