山东农业大学VB-试卷A
- 格式:doc
- 大小:64.00 KB
- 文档页数:5
北京语言大学网络教育学院《VB 〉模拟试卷一1. 试卷保密,考生不得将试卷带出考场或撕页,否则成绩作废。
请监考老师负责监督。
2. 请各位考生注意考试纪律,考试作弊全部成绩以零分计算。
3. 本试卷满分100分,答题时间为90分钟。
4. 本试卷分为试题卷和答题卷,所有答案必须答在答题卷上,答在试题卷上不给分。
一、【单项选择题】(本大题共20小题,每小题2分,共40分)在每小题列出的四个选 项中只有一个选项是符合题目要求的,请将正确选项前的字母填在 答题卷相应题号处1、关于VB 的特点描述错误的是( )。
[A] VB 编程是可视化编程 [C]不可以访问数据库2、下面关于鼠标的指针设置说法不正确的是( [A] 可以使用Mouselcon 设置鼠标的形状 [B] 可以使用MousePo in ter 设置鼠标的形状[B]是面向对象的程序设计 [D]采用事件驱动编程机制)。
[C] MousePointer 设为 99 时,可用 [D] MouseIcon 只能通过属性窗口选择鼠标形状3、 Dim Snow ( 1 to 12 , 1),As Integer [A]13*2 [B] 13*14、 在工具箱里的都是()。
[A]标准控件 [C] ActiveX 控件5、 一个窗体大小改变时被触发的事件是( [A] Click 事件 [C] Initialize 事件6、 下列关于控件说法不正确的是( [A] Age nt 控件用于设置动画行为[B] TextBox 用于接收用户输入的信息 MouseIcon 设置鼠标的形状是大小为()的二维数组。
[C] 12*2 [D] 12*1[B]外部控件[D] 可插入对象(OLE ))。
[B] Resize 事件 [D] Un load 事件)。
组,当框架移动时,其中的控件不移动 [D] ListBox 向列表中添加一个新的项目 7、关于CheckBox 控件描述错误的是( [A] 是复选框按钮,用"表示选中 [C] Value 为1表示选中该框 &关于Shape 控件描述正确的是( [A] 用于向窗体添加矩形、圆形等图形 [C] Arial 用于设置显示控件的形状9、下面不属于循环控制语句的是( )。
vb考试题库及答案高中一、单项选择题(每题2分,共40分)1. 在VB中,以下哪个选项是正确的数据类型?A. IntegerB. RealC. StringD. All of the above答案:D2. 下列哪个选项是VB中的保留字?A. DimB. IfC. ThenD. All of the above答案:D3. 在VB中,以下哪个选项是正确的变量声明方式?A. Dim xB. Dim x As IntegerC. Both A and BD. None of the above答案:C4. 在VB中,以下哪个选项是正确的循环结构?A. ForB. DoC. WhileD. All of the above答案:D5. 在VB中,以下哪个选项是正确的条件判断结构?A. IfB. Select CaseC. Both A and BD. None of the above答案:C6. 在VB中,以下哪个选项是正确的数组声明方式?A. Dim arr(10)B. Dim arr(0 To 10) As IntegerC. Both A and BD. None of the above答案:C7. 在VB中,以下哪个选项是正确的函数声明方式?A. Function myFunction()B. Function myFunction() As IntegerC. Both A and BD. None of the above答案:C8. 在VB中,以下哪个选项是正确的子程序声明方式?A. Sub mySub()B. Sub mySub() As IntegerC. Both A and BD. None of the above答案:A9. 在VB中,以下哪个选项是正确的事件处理方式?A. Private Sub Form_Click()B. Public Sub Form_Click()C. Both A and BD. None of the above答案:A10. 在VB中,以下哪个选项是正确的窗体属性?A. CaptionB. NameC. Both A and BD. None of the above答案:C11. 在VB中,以下哪个选项是正确的控件属性?A. TextB. VisibleC. Both A and BD. None of the above答案:C12. 在VB中,以下哪个选项是正确的控件事件?A. ClickB. DblClickC. Both A and BD. None of the above答案:C13. 在VB中,以下哪个选项是正确的文件操作函数?A. OpenB. CloseC. Both A and BD. None of the above答案:C14. 在VB中,以下哪个选项是正确的文件访问模式?A. InputB. OutputC. Both A and BD. None of the above答案:C15. 在VB中,以下哪个选项是正确的错误处理语句?A. On Error GoToB. On Error Resume NextC. Both A and BD. None of the above答案:C16. 在VB中,以下哪个选项是正确的数据类型转换函数?A. CIntB. CStrC. Both A and BD. None of the above答案:C17. 在VB中,以下哪个选项是正确的数学函数?A. SinB. CosC. Both A and BD. None of the above答案:C18. 在VB中,以下哪个选项是正确的字符串函数?A. LeftB. RightC. Both A and BD. None of the above答案:C19. 在VB中,以下哪个选项是正确的日期和时间函数?A. DateB. TimeC. Both A and BD. None of the above答案:C20. 在VB中,以下哪个选项是正确的数据库访问控件?A. DataGridB. DataListC. Both A and BD. None of the above答案:A二、填空题(每题2分,共20分)21. 在VB中,声明一个整型变量x,其语句为:________。
2005年4月一、选择题(1)D 【解析】数据的逻辑结构在计算机存储空间中的存放形式称为数据的存储结构(也称数据的物理结构)。
(2)B 【解析】栈(stack)是限定只在一端进行插入与删除的线性表,这一端称为栈顶(top),另一端称为栈底(bottom)。
栈是按照"先进后出"或"后进先出"的原则组织数据的。
栈具有记忆作用。
(3)D【解析】在最坏的情况下,冒泡排序和快速排序需要比较的次数为n(n-1)/2。
(4)C 【解析】对于长度为n的有序线性表,在最坏情况下,二分查找只需要比较log2n次,而顺序查找需要比较n次。
(5)A 【解析】在链式存储结构中,存储数据结构的存储空间可以不连续,各数据结点的存储顺序与数据元素之间的逻辑关系可以不一致,而数据元素之间的逻辑关系是由指针域来确定的。
(6)C 【解析】软件测试是为了发现程序中的错误。
(7)B 【解析】耦合性与内聚性是模块独立性的两个定性标准,耦合与内聚是相互关联的。
在程序结构中,各模块的内聚性越强,则耦合性越弱。
一般较优秀的软件设计,应尽量做到高内聚,低耦合,即减弱模块之间的耦合性和提高模块内的内聚性,这样有利于提高模块的独立性。
(8)D 【解析】软件指的是计算机系统中与硬件相互依存的另一部分,包括程序、数据和相关文档的完整集合。
程序是软件开发人员根据用户需求开发的、用程序设计语言描述的、适合计算机执行的指令序列。
数据是使程序能正常操纵信息的数据结构。
文档是与程序的开发、维护和使用有关的图文资料。
(9)D 【解析】数据独立性是数据与程序间的互不依赖性,即数据库中数据独立于应用程序而不依赖于应用程序。
数据的独立性一般分为物理独立性与逻辑独立性两级。
(10)C 【解析】层次模型是最早发展起来的数据库模型。
层次模型的基本结构是树形结构。
(11)A 【解析】当在文本框内输入了一个文字,触发了Text1_Change()事件,改变按钮的标题用的按钮的Caption属性,所以这里只需在Text1_Change()事件里写上Command1.Caption="计算机等级考试"即可。
VB考试真题精选,考前必备神器?20开通黄钻:?b?=?2:??plus?S,?a,?b:??Print?S:不能使其输出结果为3的plus过程为(??b??)。
(1分)? ???A、Sub?plus(sum,?a?,?b?):?sum?=?a?+?b:???End?Sub????B、Sub?plus(ByVal?sum?,?a?,?b?):?sum?=?a?+?b:???End?Sub????C、Sub?plus(sum?,?ByVal?a,?ByVal?b?):?sum?=?a?+?b:???End?Sub?D、???D、Sub?plus(sum?,?ByRef?a?,?ByRef?b?):?sum?=?a?+?b:???End?Sub?22、通过关键字(??c??)声明的局部变量,在整个程序运行中一直存在。
(1分)????A、Dim????????B、Public???????C、Static???????????D、Private?23、过程的作用域分为(??c??)。
(1分)????A、窗体级和局部级?????????????B、模块级和局部级????C、窗体/模块级和全局级?????????D、窗体/模块级和局部级?24、在窗体的通用段声明变量时,不能使用(??d??)关键字。
?(1分)????A、Dim??????B、Public?????C、Private????????D、Static?25、能在一个工程的所有程序中使用的变量,称为(??b??)。
(1分)????A、局部变量?????B、全局变量?????C、窗体级变量?????D、模块级变量?27、使用Public?Const语句声明一个全局的符号常量时,应该将该语句放在(??b?)。
(1分)???A、过程中?????????????????????B、窗体模块的通用声明段????C、标准模块的通用声明段???????D、窗体模块或标准模块的通用声明段?28、在窗体中,用(?d???)语句声明的变量是静态变量。
山东农业大学期末考试试卷(A卷)课程姓名 专业 班级 得分一、 填空题(每空0.5分共15分)1.农业企业的会计科目分为 、 、 、 、 五类,“制造费用”属———类,“管理费用”属———类。
2.成本计算期的确定受 影响是农业会计的特点之一。
3.在我国的会计法规体系中, 是会计工作的根本法规,于———年公布, 年修订。
4.目前我国的银行转帐结算制度以————、————、————结算方式为主体。
5.购买债券企业,债券的溢价与折价实质是对企业————的一种调整,溢价摊销应————,折价摊销应————。
6.某企业为建造固定资产贷款50万元,期限3年,年利率10%,固定资产于该项借款满两年时建造完毕办理手续交付使用,该项借款三年利息总额为————元,其中,————元应记入固定资产的价值。
7.某企业年初流动资产总额为24万元,其中存货12万元,待摊费用5000元,流动负债12万元,年初企业的速动比例为————。
本年度企业的待摊费用摊销完毕,没发生其他待摊费用,用货币资金购置机器设备一台,价值2.34万元,则年末企业流动比例为————,速动比例为————。
8.企业按计划成本核算材料,“材料成本差异”帐户是————帐户的————帐户,“原材料”帐户的余额为12.6万元,“材料成本差异”帐户有贷方余额6000元,则材料的实际成本为————。
9.企业发出存货采用后进先出法计价与先进先出法相比,引起当期利润减少,体现了会计的————原则。
10.固定资产盘亏损失首先记入————帐户,批准后转入————帐户,固定资产毁损、报废、销售造成损失、费用或收益首先记入————帐户,然后再转入有关帐户。
二、 判断题(在正确的命题后打╳,错误的命题后打╳,每小题1分共15分)1.企业发生了收入必然同时伴有等量的现金流入。
( )2.一年内到期的长期负债在资产负债表中应列为流动负债。
( )3.企业资产负债表中确认的资产都是企业拥有的资产。
⼭东农业⼤学考试试卷(A卷)⼭东农业⼤学考试试卷(A卷)教学班号:学号:姓名:班级:。
专业课程:⼤学英语三级课程代码:4300040考试⽇期:2003年1⽉2001⼯商体专⽤TEST PAPER注意:1.考试时间为100分钟。
2. 试卷全部收回。
Part Ⅰchoose the correct answer (10%)1. There are______eggs.A. my last twoB. last my twoC. mine two lastD. two my last2. My daughter watches the film with______girls.A. other threeB. an other threeC. three otherD. three the other3.He wrote______sections of this book.A. two ofB. the first twoC. two firstD. a first two4. _______have to solve this problemA. Us of threeB. Three usC. We threeD. Us three5.Several_____of students will take part in the sports meetA. hundredsB.hundredC. of hundredD. of hundreds6. In his_______,Karl Marx began to learn RussianA. fiftiethB. fiftyC. fiftiethsD. fifties7.______of the books in the library are bought for students'readingA. Tree fourthB. Tree fourC. Tree fourthsD. Third fours8. Li Ming is______student to come to school this morningA. threeB. the thirdC. the threeD. third9. ________of young people liek pop music in ChinaA. Hundred of thousandB. Hundreds of thousandC. Hundreds of thousandsD. Hundred of thousands10. Would you please try ______time?A. a secondB. a twoC. the secondD. the twoPart ⅡUse the words to complete the following sentences.(10%) geuine tiring regular available validindeed consuming bonus stock coupon1. Buy a Revlon colorstay lipcolor at _______________brice and receive a revlon Eye pen(a $3.95 value) REE!2. Shopping is a ___________business for some people, but a great enjoyment for others.3. We have a great selection of styles and colors in________________________.4. With any $8.99 fragrance(⾹⽔)purchase,you'll get a ____________lipcolor(a$4.95 value).5. It's really energy-________________to run 5000 meters.6. This is a _____________________Adidas jacket.It's only $64.99.7. The ticket is____________________for three weeks.8. American people often collect_________________before gping shopping.9. I'm sorry the sweatshirt is not_____________________ in your size.10. The temperature is 10C below zero. It’s very cold_____________.Part ⅢWrite an advertisemnet (20%)suppose Robinson's May chains want to place an advertisement for their pierreCardin sportshirts to be sold at a reduced price of $60. The regular price is $100.There is an assortment of styles and colors. ln order to promote the sale, they offera bonus sale of a second shirt at 50% off the regular price. Try to write an advertisementby using the given ad information.1. On sale2. 40% off3. second one4. 50%5. Bonus6.available7. stodk8.Regular9. Sizes:S.M,L,XL.Part ⅣTranslation and Comprehension (40%)(1)Pat O'Burke was a poor Irishman with a large family, and one morning, waking up very early from cold and hunger, he decided to go shooting in a wood near his cottage. The wood belonged to Lord Northwood, a rich gentleman, and Pat had no right to go there, but in it there were swarms of rabbits and flocks of birds that were good to eat, and Pat determined to take the risk. Suddenly he saw the owner, with a group of friends, coming towards him in the wood Tere was a look of anger on Lord Northwood's face caught sight of the gun in Pat's hands.Pat's heart sank with fear, but he saw there was no hope of escape, so he walked boldly up to the company and said to Lord Northwood, "Good morning, sir, and what has brought you out so early this morning?" Lord Northwood, rather surpised, said he and his friends weretaking a little exercise to get an appetite for their breakfast. Then, looking at Pat winth suspicion, he said, "But why aer you out so early in the morning?" "Well, sir," said Pat, "I just came out to see if I could get a breakfast for my appetite." The whole crowd burst into laughter at Pat's ready wit, and with a smile Lord Northwood walked on, leaving Pat to try his luck with the rabbits.1. wit才智2.appetite⾷欲,胃⼝3.suspioion猜疑4.risk风险5. boldly风险6.rabbit兔⼦7. swaims群/doc/7947dd1e6bd97f192279e951.html pany⼈群Comprhension Exercise1. This is a story about_________.A. a rich man who owned a big wood.B. a poor Irishman who lived all by himselfC. a clever man who tried to get something to eatD. an Irish hunter with a large family2. One morning Pat went to a wood__________.A. to get a little exercise.B. to take in some fresh airC. hoping to get something to eat.D. to visit the rich owner3. There was a look of anger on Lord Northwood's face. why?A. He was not expecting Pat at this early hourB. He knew Pat was ciming for shootingC. He didn't like the poor Irishman at allD. Pat had not told him he would come4. Why was Lord Northwood surprised?A. He had not expectesuch a bold question form PatB. He wondered why Pat didn't run awayC. Pat wasn't afraaid of himD. Pat had a gun is his hands5. Pat's_________made the whole crowd burst into laghter.A. funny looksB. interesting remarksC. quock and wintty reponseD. promise to leave right a way6.In the end Lord Northwood_________.A. orderd Pat out of the woodB. warned Pat against shootingC. left pat alone in the woodD. asked Pat to join them7. It was because of his________that Pat was left to try his luckA. boldnessB. calmnessC. quickness of mindD. obedience(2)The Olympic Games are held every four years in a different city in the world Athletes form many countries compete in a variety of sports which are divided into winter and summer ganmes.The olympics began in Greece more than 2,700 years ago. The ganmes were originally part of a religious festival in honor of the Greek Gods. Eventually, the games became the most important festival in all of Greece.The first recorded Olympic competition was held in 776 B.C . It was held in an outdoor stadium which was about 200 meters long and 30 meters wide. The stadium was in a valley, and about forty thousand people watched the event. The first thirteen Olympics consisted of only one race---running.Since 776 B.C. the games had been held reguarly for about 1,200 years. In the year 397 the Olympics were prohibited by the Roman Emperor.It was not until 1896 that the first Olympics of modern times were held in Athens.From then on the games are held every four years regularly. The Olympics have become the world's most important athletic events and a symbol of sporting frendship of all the peopleof the world.Comprehension Exercise1. Where are the Olympic Games held?A.Each time in a different cityB.Mostly in EuropeC. In different cities of GreeceD. In the capitals of different countries2. At what time of the year do the modern Olympics take place?A. Mostly in summerB. Usually in winterC. Both in summer and winterD. In varies form time to time3. What athletic events were held in the first thirteen Olympic Games?A. A great variety of eventsB. A field event onlyC. A track event onlyD. Some track and field events4. Which of the following is discussed in the passage?A. The sites where the Olympics were heldB. The history of the Olympic GamesC. The awards of the Olympic GamesD.The well-known athletes who have emerged from the Olympic Games5. What does the passage tell us about the signifcance of the Olympic Games ?A. they are the world's most important athletic events and mark the friendship among people of the world.B. They not only provide exciting sporting events but also make great contrions to world peace.C. They allqw people of the world to enjoy most important athletic events and bring great economic benefit to the host sponsor countryD. They offer best sporting events and promote cooperantion between countries Part ⅤTranslate the following into English (20%)1.这个地⽅开晚会很理想。
vb考试题及答案.docvb 考试题及答案【篇一:vb 考试真题一含答案】一、单项选择题(40 道小题,共40 分)1、在visual basic 中应用的是( c ) 。
(1 分)a、面向过程的程序设计方法b、面向数据的程序设计方法c、面向对象的程序设计方法d、面向用户的程序设计方法2、如果想让代码窗口中代码的字体大些,可以使用( a ) 命令设置。
(1 分)a、“工具”菜单的“选项”b、“视图”菜单的“缩放”c、“编辑”菜单的“替换”d、“视图”菜单的“定义”3、开发一个标准exe 程序时,工程资源管理器窗口应包含( b ) 文件。
(1 分)a、.bas b 、.frmc、.res d 、.cls4、在设计模式下,双击窗体上的一个控件,则会打开( c ) 。
(1 分)a、属性窗口b、工程资源窗口c、代码窗口d、窗体布局窗口5、下列属性中,能表示窗体执行时以正常窗口状态显示的属性是( d ) 。
(1 分)a、tabindex b 、controlboxc、borderstyle d 、windowsstate6、text1 是个文本框,语句text1=* 和下面( d ) 的作用相同。
( 1分)a、text1.caption=* b 、text1.password=*c、text1.maxlength=* d 、text1.text=*7、command1 是一个按钮控件,它的pictrue 属性已经被成功设置为一个可显示图形,但运行时该图形未被显示,其原因可能是( d ) 。
(1 分)a、该图形太大b、forecolor 被设置为黑色c、backcolor 被设置为黑色d、style 属性值被设置为08、为了使标签覆盖背景,应把backstyle 属性设置为( b ) 。
(1分)a、0 b 、1c、ture d 、false9、要使时钟控件的timer 事件每隔3 秒发生一次,应该把它的interval 属性设置为( d ) 。
VB期中测试卷班级:学号:姓名:一、判断题(1X10分)(1)VB是可视化的、而向对彖的、采用事件驱动的结构化高级程序设计语言。
(2)VB的Double类型数据可以精确表示其数值范围内的所有实数。
(3)要使文本框出现垂直滚动条,只要将该文本框的ScrollBars属性设置为2就可以了。
(4)执行"Unload Forml v语句后,窗体Forml消失,而且释放其所占的内存。
(5)同一个窗体文件只能用于一个工程中。
(6)xxx.vbp文件是用来管理构成应用程序xxx的所冇文件和对彖的清单。
(7)决定对象是否可见的厲性是Visible屈性,决定对象可用性的厲性是Enabled ®性。
(8)在逻辑运算符Not、Or. And中,运算优先级由高到低依次为Not、Or. And。
(9)过程屮的静态变量是局部变量,当过程再次被执行时,它的值是上一次过程调用后的值。
(10)使用On Error GoTo语句并编写和应程序,可以捕获程序中的编译错误。
二、选择题(2X10分)第1题:在设计模式双击窗体中的对象后,Visual Basic将显示的窗口是_________ 。
A、属性窗口B、代码窗口C、工具箱D、工程窗口第2题:Integer类型的变量可存的最大整数为 _______ 。
A、255B、256C、32768D、32767第3题:下列哪个函数返回值为Ascii码值?A、Chr(x)B、Str(x)C、Space(n)D、Asc(x)第4题:下列关T Select Case之测试表达式的叙述中,错误的是________ 。
A、只能是变量名B、可以是整型C、可以是字符型D、可以是浮点类型第5 题:执行__ 语句后,执行语句"Text 1. Sei Start = 0 : Textl.SelLength = Len(Textl)",可以使文木框控件Textl中的文本突出显示。
VB机试模拟试卷1(题后含答案及解析)题型有:1. 基本操作题 2. 简单应用题 3. 综合应用题基本操作题(30分)1.注意:下面出现的“考生文件夹”均为c;\wexam\25160001。
请根据以下各小题的要求设计Visual Basic应用程序(包括界面和代码)。
(1)在窗体上建立一个二级菜单,该菜单含有“文件”和“帮助”(名称分别为vbFile和vbHelp)两个主菜单项,其中“文件”菜单包括“打开”、“关闭”和“退出”三个子菜单项(名称分别为vbOpen、vbClose和vbExit),如图1-1所示。
只建立菜单,不必定义其事件过程。
注意:保存时必须存放在考生文件夹下,窗体文件名为sjt1.frm,工程文件名为sjt1.vbp。
(2)在名为Form1的窗体上画一个框架,名称为Frm1,标题为“框架”,高度为2500,宽度为4000,框架内建立一文本框,距左边框600,距框架的上边框1200,文本框中的初始内容设置为“文本框”。
如图1-2所示。
注意:保存时必须存放在考生文件夹下,窗体文件名为sjt2.frm,工程文件名为sjt2.vbp。
正确答案:(1)在Visual Basic中,菜单项通过菜单编辑器来建立。
解题步骤:第一步:打开“菜单编辑器”窗口,建立菜单项。
用到的菜单项及其属性见表1-1。
第二步:调试并运行程序。
第三步:按题目要求存盘。
(2)在窗体上建立好控件后,再按题目要求设置各自的属性即可。
需要指出的是在框架里的控件需要画出框架后,单击工具箱里的控件然后在框架里拖动画出所需控件,不可以用双击的方法,否则所需的控件放不到框架里。
窗体中的控件的具体位置由控件的Top、Left属性设置,大小由属性Height Width设置。
解题步骤:第一步:设置框架的Height、Width属性分别为2500,4000;文本框的Left、Top 属性值分别为600,1200。
(以上均可在属性栏里没置) 第二步:调试并运行程序。