资源描述:
《vb 2002年(秋)笔试部分》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、VB程序设计部分一、选择题21、在程序中将变量Inta、B1、St、D分别定义为Integer类型、Boolean类型、String类型和Date类型,下列赋值语句中,正确的是___。A.Inta="333"+"22" B.D=#10/05/01#C.St=5+"abc" D.B1=#True#22、以下使用方法的语句中,正确的是___。A.List1.Clear B.Form1.ClearC.Combo1.Cls D.Pictur
2、e1.Clear23、以下所列的7个控件中,具有Caption属性的有____个。PictureBox(图片框)、Frame(框架)、OptionButton(单选按钮)、ListBox(列表框)、TextBox(文本框)、Form(窗体)、DriveListBox(驱动器列表框)A.3 B.4 C.2 D.524、以下有关对象属性的说法中错误的是___。A.所有的对象都具有Name(名称)属性B.只能在执行时设置或改变的属性为执行时属性C.对象的某些属性只能在设计时设定
3、,不能使用代码改变D.Enabled属性值设为False的控件对象在窗体上将不可见25、在窗体的通用声明处有语句DimA()AsSingle,以下在某事件过程中重定义此数组的一组正确语句是:___。A.ReDimA(3,3)ReDimA(4,4)AsIntegerB.ReDimA(3,3)ReDimPreserveA(4,4)C.ReDimA(3)beconsistentwithinthesamedisk.Alternateunifiedcorerequirementsplacedontheterminalst
4、ripterminals,onlineidentityandensurethecoppercoreisnotexposed.6.4.6enclosurewithinthesametothecablecoreprovidesbindingintoacircle,harnesstiespacingisgenerally100mm;branchofficesshallbebindingonbothends,eachcoreReDimA(3,3)AsIntegerD.ReDimA(3,3)ReDimPreserveA(
5、3,4)26、在窗体Form1中用“PublicSubFun(xAsInteger,yAsSingle)”定义过程Fun,在窗体Form2中定义了变量i为Integer,j为Single,若要在Form2的某事件过程中调用Form1中的Fun过程,则下列语句中,正确的语句有____个。(1)CallFun(i,j)(2)CallForm1.Fun(i,j)(3)Form1.Fun(i),j(4)Form1.Funi+1,(j)A.1 B.2 C.3(2、3、4对) D
6、.427、在文本框Text1中输入数字12,Text2中输入数字34,执行一下语句,只有____可使文本框Text3中显示46。A.Text3.Text=Text1.Text&Text2.TextB.Text3.Text=Val(Text1.Text)+Val(Text2.Text)C.Text3.Text=Text1.Text+Text2.TextD.Text3.Text=Val(Text1.Text)&Val(Text2.Text)28、在窗体模块的通用声明处有如下语句,会产生错误的语句是___。(1)Co
7、nstAAsInteger=25(2)PublicStAsString*8(3)RedimB(3)AsInteger(4)DimConstXAsInteger=10A.(1)(2) B.(1)(3) C.(1)(2)(3) D.(2)(3)(4)29、下列定义Sub过程的语句中,正确的语句是_____。(1)PrivateSubTest(StAsString*8)beconsistentwithinthesamedisk.Alternateunifiedcorerequirementspla
8、cedontheterminalstripterminals,onlineidentityandensurethecoppercoreisnotexposed.6.4.6enclosurewithinthesametothecablecoreprovidesbindingintoacircle,harnesstiespacingisgenerally100mm;branchoffice