
【名词&注释】
默认值(default value)、小写字母、大写字母(majuscule)、操作符(operator)、字段名(field name)、文本框控件(textbox control)、源程序文件
[单选题]若要获得组合框中输入的数据,可使用的属性是
A. listindex
B. caption
C. text
D. list
查看答案&解析
点击获取本科目所有试题
举一反三:
[单选题]某个表单文件中有一个文本框控件(textbox control),其PasswordChar属性值设置为星号(* ),当在文本框中输入“伦敦2012”时,文本框中显示的是( )。
A. 伦敦2012
B. *****
C. ********
D. 伦敦****
[单选题]下面程序运行后,S的值是( )
A. Privatesubform_click()
B. forj=1to10
C. x=j*2-1
D. ifx/3=int(x/3)orx/5=int(x/5)thens=s+x
E. nextj
F. Print"s=";s
G. endsub
H. 27
I. 30
J. 32
K. 37
[单选题]字段名可以是任意想要的名字,最多可达( )个字符。
A. 16
B. 32
C. 64
D. 128
[单选题]Access提供的筛选记录的常用方法有三种,以下( )不是常用的。
A. 按选定内容筛选
B. 内容排除筛选
C. 按窗体筛选
D. 高级筛选/排序
[多选题]使用VC6打开考生文件夹下的工程test19_3,此工程包含一个源程序文件test19_3.cpp,其中定义了用于表示向量的类 vector,但类vector的定义并不完整。请按要求完成下列操作,将类vector的定义补充完整。
A. (1)补充类vector的构造函数,该函数有参数x和y,它们都是int型的数据,默认值都为0。请使用参数列表的形式分别将类的数据成员a和b分别初始化为参数x和y的值。请在注释“//**1**”之后添加适当的语句。
B. (2)完成类vector的成员函数input(int x,int y)的定义,将int型的参数x和y分别赋值给数据成员a和b,请在注释“//**2**”之后添加适当的语句。
C. (3)完成类vector的友元函数friend double Multiply (vector &x,vector &y)的定义,先定义double型的临时变量c,然后将参数对象x和对象y的数据成员a与b分别相乘再相加后赋值给c,最后返回c的值,将请在注释“//**3**”之后添加适当的语句。输出结果如下:
D. (10,20)
E. (2, 3)
F. 80
G. 注意:除在指定位置添加语句之外,请不要改动程序中的其他内容。
H. 源程序文件test19_3.cpp清单如下:
I. include iostream.h>
J. class vector
K. {
L. int a;
M. int b;
N. public:
O. //**1**
P. void input(int x, int y)
Q. {
R. //**2**
S. }
T. void output ()
U. {
V. cout'('a','b")"end1;
W. }
X. friend double Multiply(vector &x,vector &y);
Y. }
Z. double Multiply (vector &x,vector &y)
[单选题]下列程序的输出结果是( )。 #includeiostream> using namespace std; int main() { char a[]="Hello,Test"; char *p=a; while(*p) { if(*p>='a'&&*p='’z') coutchar(*p+'A'-'a'); else cout*p; p++; } return 0; }
A. Hello,Test
B. HELLO,TEST
C. hELLO,tEST
[单选题]下列叙述中,错误的是( )。
A. 内部类的名称与定义它的类的名称可以相同
B. 内部类可用abstract修饰
C. 内部类可作为其他类的成员
D. 内部类可访问它所在类的成员
[单选题]在过程中,我们把定义过程中的参数称为( )
A. 实参
B. 形参
C. 址参
D. 变参
[单选题]设在工程中定义了如下类型: Type stutype ino As Integer strname As String*20 strsex As String* 1 smark As Single End Type在窗体上正确使用这个类型的是下列哪个操作( )。
A. Sub Commandl_Click0 Dim student As Stutype With student .ino = 12 . strname = smith .strsex = .smark = 89 End With End Sub
B. Sub Commandl_Click0 Dim student As Stutype With student .ino = 12 .strname = "smith" .strscx = "男" .smark = 89 End With End Sub
C. Sub Commandl_Click0 Dim student As Stutype With Stutype ino = 12 .strname = "smith" .strsex = "男" .smark = 89 End With End Sub
D. Sub Command1 _Click() Dim student As Stutype With student .ino = 12 .strname = "smith" .strsex = "男" .smark = 89 End student End Sub
本文链接:https://www.zhukaozhuanjia.com/download/r8v3p0.html