【导读】
必典考网发布vb考试题库2022模拟试卷211,更多vb考试题库的模拟考试请访问必典考网计算机科学技术题库频道。
1. [单选题]()属性决定了按Tab键时焦点在各个控件之间移动的顺序。
A. Index
B. TabStop
C. TabIndex
D. Setfocus
2. [单选题]在窗体上画一个名称为Command1的命令按钮,一个名称为Label1的标签,然后编写如下的事件过程: Private Sub Command1_Click()s = 0For i = 0 To 15X = 2 * i - 1If X Mod 3 = 0 Then s = s + 1Next iLabel1.Caption = s End Sub程序运行后,单击命令按钮,则标签中显示的内容为()
A. 1
B. 5
C. 27
D. 45
3. [单选题]下列()语句可以完成打开顺序文件“abv.dat”并追加数据。
A. Open"abC.dat"ForInputAs1
B. Open"abC.dat"ForOutputAs1
C. Open"abC.dat"ForBinaryAs1
D. Open"abC.dat"ForAppendAs1
4. [单选题]在语句PublicSubSort(iAsInteger)中i是一个按()传递的参数。
A. 常量
B. 地址
C. 值
D. 变量
5. [单选题]以下不能实现符号函数y=sgn(x)的程序段是()。
A. if x>0 then y=1 else if x=0 then y=0 else y= -1
B. if x>0 then y=1 else if x<0 then y= -1 else y=0
C. if x>=0 then if x=0 then y=0 else y= -1 else y=1
D. if x<>0 then if x<0 then y= -1 else y= 1 else y=0
6. [单选题]在窗体上画两个名称分别为Text1、Texte2的文本框和一个名称为Command1的命令按钮,然后编写如下事件过程:Private Sub Command1_Click()Dim x As Integer,n As Integerx=1n=0DoWhilex<20x=x*3n=n+1LoopText1.Text=Str(x)Text2.Text=Str(n)End Sub程序运行后,单击命令按钮,在两个文本框中显示的值分别是()
A. 15和1
B. 27和3
C. 195和3
D. 600和4
7. [单选题]下列选项中,与文件读/写相关的命名空间是()。
A. System
B. System.Input
C. System.Output
D. System.IO