Vb第一阶段复****题一、选择题(单选题)1、在VisualBasic语言中,对象能够执行的动作是B A)事件B)方法C)属性D)事件过程2、,将焦点设置到name=text1的控件上,命令是:==true4、将数学表达式写成VisualBasic的表达式,其正确的形式是:AA)5*exp(2)+Sin(a+b)^2 B)5*exp(2)+Sin^2(a+b)C)5*ln(2)+Sin(a+b)^2 D)5*ln(2)+Sin^2(a+b)6、将变量va的值输出到标签控件上显示,使用的语句是:====va8、mand1用鼠标单击不发生click事件,设置属性语句是:=true ==true =false10、在文本框text1中输入数据,当焦点一旦离开,就能引发对象事件过程的执行的事件是:、 方法是vb程序中用于输出数据的方法,对象1是指:__B_form,picturebox,printer,label1form,picture1,printer,debugform,picture1,label1,text1form,picture1,label1,printer12、下面程序的运行结果是: BPrivateSubForm_Click()Dimmoney!,tax!money=Val(InputBox("money=","input","3500"))SelectCasemoneyCaseIs<=1000Print"money=";money,"Tax=";0Case1000To3000Print"money=";money,"Tax=";(money-1000)*"money=";money,"Tax=";(money-3000)*+200CaseElsePrint"money=";money,"Tax=";(money-6000)*+=1000tax==3500tax==4500tax==6500tax=75013、下面程序的运行结果是: APrivateSubForm_Click()Dimyear1%,leap!year1=Val(InputBox("nowyear=","input","2004"))Ifyear1Mod100=0ThenIfyear1Mod400=0Thenleap=1Elseleap=0EndIfElseIfyear1Mod4=0Thenleap=1EndIfIf(leap)ThenPrintyear1;"isleap"ElsePrintyear1;"isno
vb第一阶段复习题 来自淘豆网www.taodocs.com转载请标明出处.