201007VB期末考卷城市学院(201007VB final examination paper city college).doc

上传人:rrsccc 文档编号:9241404 上传时间:2021-02-11 格式:DOC 页数:10 大小:31KB
返回 下载 相关 举报
201007VB期末考卷城市学院(201007VB final examination paper city college).doc_第1页
第1页 / 共10页
201007VB期末考卷城市学院(201007VB final examination paper city college).doc_第2页
第2页 / 共10页
201007VB期末考卷城市学院(201007VB final examination paper city college).doc_第3页
第3页 / 共10页
201007VB期末考卷城市学院(201007VB final examination paper city college).doc_第4页
第4页 / 共10页
201007VB期末考卷城市学院(201007VB final examination paper city college).doc_第5页
第5页 / 共10页
点击查看更多>>
资源描述

《201007VB期末考卷城市学院(201007VB final examination paper city college).doc》由会员分享,可在线阅读,更多相关《201007VB期末考卷城市学院(201007VB final examination paper city college).doc(10页珍藏版)》请在三一文库上搜索。

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 progra

17、m 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 example, enter a4fkze5 and the recombination string is 45aefkz. Complete the program.Public Sub form_click ()Dim x As String, y As String, temp As StringDim (c) As a StringDim k As Integer, I As Integer, j As IntegerX = InputBox ( enter a string )K = len (x)ReDim c (k)

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 社会民生


经营许可证编号:宁ICP备18001539号-1