- 1、本文档共21页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
200804VB程序设计基础期中考卷及答案(国外英文资料)
200804VB程序设计基础期中考卷及答案(国外英文资料)
Zhejiang university city college
The midterm exam for the second semester of 2007-2008
The VB language programming foundation
Unit of computing: the computing branch; Exam form: closed book; Exam time: April 26, 2008
Time required: 120 minutes
One, single topic (36%)
It is possible to correctly define the statement of two plastic and 1 string variables.
A, Dim n, m AS Interger, s AS String B, Dim A %, B $, c AS String
C, Dim a AS Integer, b, C AS String D, Dim x %, y AS Integer, z AS String
The following statement does not determine whether x is even.
A, x / 2 = Int (x / 2) B, x Mod 2 = 0 C, Fix (x / 2) = x / 2 D, x \ 2 = 0
3.1 a two-dimensional array can deposit a rectangle, the program starts with statement Option Base 0, here is just can be stored in an array of the definition of a 4 * 3 matrix (that is, only 12 elements) is ______.
A, Dim A (-2 To 0, 2) AS Integer B, Dim A (3, 2) AS Integer
C, Dim a (4, 3) AS Integer D, Dim a (-1 To -4, -1 To -3) AS Integer
Statement X = X + 1 means ______.
A, the value of the variable X is equal to the value of X plus 1, and the value of the variable X is stored in X plus 1
C, the value of X, the variable X is 1
First, Dim X As String * 10, then assign X = zhejiang, and the final Len (X) value is ___.
A, zhejiang B, 2 C, 4 D, 10
The following program runs after the result of _____.
M = 0
For I = 1 to10
M = m + I
I = I + 1
Next I
Print m, I
A, 25, 10, 25, 11, C, 16, 11
You know the following process
Private Sub proc1 (a As Integer, b As String, Optional x As Boolean)
...
End Sub
The statement that correctly invokes this procedure is ______.
A, Call procl (5) B, Call proc1 5, ABC, False
C, proc1 (12, ABC, True) D, proc1, 5, ABC, False
The following statement about VisualBasic features is that...
A, VisualBasic is the language of event-driven programming mechanisms
The B, VisualBasic program can both compile and run
C, the processes that make up the VisualBasic program have no fixed sequence of execut
文档评论(0)