2003年辽宁专升本考试真题-VFP部分

合集下载

VFP计算机二级历年试题笔试加答案

VFP计算机二级历年试题笔试加答案
A)8 13 B)3 13 C)3 5 D)8 5 (27) 下列程序段执行以后,内存标量 CLEAR X=12345 Y=0
X 和 Y 的值是: y 的值是:
DO WHILE X>0 y=y+x%10 x=int(x/10)
ENDDO ?y A)54321
B)12345 C)51
D)15
(28) 下列程序段执行后,内存变量 s1="network" s1=stuff(s1,4,4,"BIOS")
D) 父表中的连接字段值在任何情况下都不允许更新
(30)在查询设计器环境中, “查询”菜单下的“查询去向”命令指定了查询结果的输出去向,输出去向不 包括:
A) 临时表
B) 表
C) 文本文件
D) 屏幕
(31)表单名为 myForm 的表单中有一个页框 myPageFrame,将该页框的第 3 页(Page3)的标题设置为“修 改”,可以使用代码:
D) 学号,姓名,成绩 (11)在超市营业过程中, 每个时段要安排一个班组上岗值班, 每个收款口要配备两名收款员配合工作, 共 同使用一套收款设备为顾客服务,在超市数据库中,实体之间属于一对一关系的是 A) “顾客”与“收款口”的关系 B) “收款口”与“收款员”的关系 C) “班组”与“收款口”的关系 D) “收款口”与“设备”的关系 (12) 在教师表中,如果要找出职称为“教授”的教师,所采用的关系运算是 A) 选择 B) 投影 C) 联接 D) 自然联接 (13)在 SELECT 语句中使用 ORDERBY 是为了指定 A) 查询的表 B) 查询结果的顺序 C) 查询的条件 D) 查询的字段 (14) 有下程序,请选择最后在屏幕显示的结果: SET EXACT ON s="ni"+SPACE(2) IF s=="ni" IF s="ni" ?"one" ELSE ?"two" ENDIF ELSE IF s="ni" ?"three" ELSE ?"four" ENDIF ENDIF RETURN A)one B)two C)three D)four (15)如果内存变量和字段变量均有变量名 "姓名 " ,那么引用内存的正确方法是: A)M. 姓名 B) M_> 姓名 C) 姓名 D) A 和 B 都可以 (16)要为当前表所有性别为 "女 " 的职工增加 100 元工资,应使用命令 A)REPLACE ALL 工资 WITH 工资 +100 B)REPLACE 工资 WITH 工资 +1100 FOR 性别 =" 女 " C)REPLACE ALL 工资 WITH 工资 +100 D)REPLACE ALL 工资 WITH 工资 +100 FOR 性别 =" 女 " (17)MODIFY STRUCTURE 命令的功能是: A) 修改记录值 B) 修改表结构 C) 修改数据库结构 D) 修改数据库或表结构 (18) 可以运行查询文件的命令是:

2003年辽宁专升本考试真题-基础部分

2003年辽宁专升本考试真题-基础部分

2003年辽宁专升本计算机试题第一部分计算机基础部分一单项选择题1.以下外设中,既可作为输入设备又可作为输出设备的是()A 显示器B 键盘C磁盘驱动器 D 激光打印机2.通常说一台微机的内存容量为8M,指的是A 8M位B 8M字节C 8M字D 8000K字3.一个汉字的国际码用2个字节来表示,每个字节的最高位分别是()A 0和0B 1和1C 0和1D 1和04.在Word中,选中某句话,连续两次单击工具条上的斜体按钮,则()A这句话呈左斜体格式 B 这句话呈右斜体格式C 这句话字符格式不变D 产生错误信息5.下列传输介质中,抗干扰能力最强的是()A微波 B 光纤 C 同轴电缆 D 双绞线6.某公司技术人员编制成具有自学能力的围棋软件程序,这属于计算机在下列哪方面的应用()A 过程控制B 数据处理C 计算机科学计算D 人工智能7.“桌面”指的是()A 整个屏幕B 全部窗口C 某个窗口D 活动窗口8.微型计算机的内存储器是()A 按二进制位编址B 按字节编址C 按字长编址D 根据微处理器型号不同而编址不同9.在Word中要使文字能够环绕图形编辑,应将图形()A 插入图文框B 直接插入文档中C 插入文本框D 与文字重叠10.关于“回收站”,叙述正确的是()A 暂存所有被删除的对象B 回收站的内容不可以恢复C清空回收站后仍可用命令方式恢复 D 回收站的内容不占用硬盘空间11.Excel启动后,在Excel的窗口内显示的当前工作表为()A 无标题B Sheet1C Book1D 1.xls12.在Excel中,下列哪个单元格的内容会产生错误()A =SUM()B SUM=(C2:C3)C =C2+C3D =SUM(C2,C3)13.软盘格式化时,被划分为一定数量的同心圆,0磁道位于()A 软盘上的中部B 软盘上最外圈C 最内圈的磁道D 由格式化时指定或由计算机随机指定14.剪贴板是WINDOWS程序和文件之间用于传递信息的()A存储队列B 永久存储器C 只读存储器D 临时存储器15.硬盘连同驱动器是一种()A 内存储器B 外存储器C 只读存储器D 半导体存储器16.在ASCII码表中,按照码值从小到大排列顺序是()A 数字、英文大写字母、英文小写字母B数字、英文小写字母、英文大写字母C 英文大写字母、英文小写字母、数字D 英文小写字母、英文大写字母、数字17.要更改鼠标左、右手使用习惯的设置.,应在“鼠标”属性对话框中选择的选项卡是A 按钮B 指针C 移动D 速度18.在Word中,用户可以通过下列哪个命令对文档设置“打开权限密码”()A“插入”菜单中的对象B “工具”菜单中的“保护文档”C“工具”菜单中的“自定义”D “工具”菜单中的“选项”19.人们通常说的“486”微机,其中“486”含义是()A 内存的容量B CPU的档次C 硬盘的容量D 显示器的档次20.在计算机网络术语中,WAN的中文含义是()A以太网B 广域网C 互联网D 局限网二、多项选择题21.下列有关计算机病毒的正确叙述有()A 计算机病毒是可以在计算机上执行的程序。

2003年辽宁专升本考试真题-英语

2003年辽宁专升本考试真题-英语

2003年辽宁专升本考试真题-英语阅读(⼀)If you visit Twinsburg, Ohio, in August, you will think that you are seeing double. This is where the Twins Day Festival takes place. It is the biggest gathering of twins in the world. Every year, about 2,500 to 3,000 sets of identical twins come to the festival. There are little babies, children, teenagers, and adults. There are even twins who are over 00 years old.The Twins Day Festival is like one big party. People meet old friends and make new friends, There are competitions to see which twins look the most alike and which twins look the least alike, people eat hot dogs. Play games, and take pictures together.Some twins go to the festival hoping to find love. Finding someone to love is difficult for twins.,because twins are very close.“Being a twin is very special.” one twin said .“It’s band for a non-twin to understand this special relationship.” Non-twins who marry twins often feel lonely nnd left out.Many twins never marry because they are so happy with their twins.At the Twins Day Festival, some twins are lucky and find love. Doug and Phil Malm met their wives, Jill and Jena,at the festival. Doug explain how it happened.“We first met Jena and Jill on Friday night. Then we met them again several times on the weekend.” The tow sets of twins fell in love, and Dong and Phil asked Jill and Jena to marry them.Dong and Phil thought they asked,“will you marry me?” What they really said was,“Will you marry us?”1.According to the first paragraph, you can conclude that some twins will meet each other in "A.the United StatesB. CanadaC. AustraliaD. English2.According to the information of the passage, it can be inferred that hundreds of twins hold a gathering "A.every other yearB. Every tow yearsC. Once a yearD. Every half a year3. From context, the phrase”left out” (line4, para3) maans?A,went away B. Exclucen C.cenained D.Considered4.Form the information of the passage it can be implied that when the twins and the non- twins get married,at last they "A.are often divorcedB.are never divorcedC.are seldom divorcedD.are never separated5.According to the last paragraph, it is inferred that"A. the twins Doug and Jill agreed to marry each otherB. The twins phil and Jena agreed to marry each otherC.the twins Phil d on’t agree to marry Jill and JenaD. The twins Dong and Phil and the twins Jill and Jena agreed to marry each other阅读(⼆)The 12th lunar month in Chinese is called layue(the month to worship all the deities). The eighth day of the 12th lunar month is the Laba Festival. It is treated as the beginning of the Chinese holiday season After the Laba Festival, people enter into the busy preparation for the Lunar New Year. The main activity of the Laba Festival is cooking and sharing the special laba gruel (laba-zhou)Most people believe it has a close relation to Sakyamuni ,the Buddha. He left his comfortable home and set off in search of the final enlightenment .After days of traveling without rest ,he collapsed near a river in northern India. He was received by a wandering shepherdess, who offered him her lunch of family leftovers, consisting of sticky cereal, glutinous rice dates,chestnuts and wild fruit . After consuming this repast, Sakyamuni took a batch and sat under a tree for mediation ,where he finally attained enlightenment. The very was 8th day of last lunar mont.The meal was the original laba gruel.6.At the Laba Festival people___. "A. Worship all the deitiesB. Begin preparations for the Lunar New YearC. Cook a variety of food to mark the occasionD. Eat a special gruel together7.The Laba Fcstival is believed by many to be rclated toA.ConfucianismB. BuddhismC.TaoismD. Christianity8. Sakyamuni left his home and searched for"A. Wealth for liftB.wisdom of lift/doc/a8a98d39a45177232f60a2d6.html forts of liftD. remedies for life9.Sakyamuni ate a meal which was made of all the following exceptA.wild fruitB. RiceC. CerealD. Meat10.The 8th day of the last month was remarkable because that day SakyamuniA. Ate a meal given by a shepherdessB.found the meal very deliciousC.made a deep meditationD. Obtained the final enlightenment阅读(三)Bill Gates is the richest private citizen in the world. There is nothing he can’t afford. Every morning, when his alarm clock goes off. The software tycoon (软件巨富)is $20 million richer than when he went to bed .His wealth is based on his company, Microsoft, of which he owns 39% of the shares. He has personal fortune estimated at 18 billion ,which is more than the annual economic output of over a hundred countries.He has built a mansion over looking Lake Washington that he’s packed with high - tech gadgetry and TV monitors ,some taking up an entire wall, Visitors are giving a smart card encoded with their personal preferences. So that,as they wander from room to room, their favorite pictures will appear on the screens, and the music they like will play .Gates’own personal lift is rather romantic .when he went out with an ex -girlfriend. The couple conducted much of their relationship by going on virtual dates. Each would drive alone to the some movie at the same time in different towns, and then talk about it afterwards on their mobiles, discussing the plots and exchanging opinions.Gates has been called “king of the Nerds”(傻⼦王),but this simply isn’t fair. In the 9th grade at school, he got A’s in all the subjects he took, which put him among the top ten students in the nation ,Gates went on to Harvard University, where he managed to be in the same class as thegirl he fancied by inserting a piece of software in to college.when he left , he knew exactly what to do .he started up his own computer company .The reason why Micosoft has been so successful is that Gates saw that his fortune lay in software ,and hardware now the multi -billionaire,whose software is uesd in two-thirds of the word’s computers ,is developing the HPC,or hand-held personal computer.It is his intention that there should be a computer in the pocket of everybody in the whole world.11 Which of the follwing about Bill Gates’wealth is NOT true?A.Bill Gates has a personal fortune of about $18 million.B.Bill Gates earns $20million every day.C.Bill Gates wealth mainly comes from Microsoft.D. The annual econmic output of over 100countries is not as much as Bill Gates wealth.12.What is special about his house?A.All the rooms are decorated with beautiful pictures.B.All the rooms are packed with televisions.C.As guests open each door, the same music will play for them.D.The house is packed with high-tech gadget and monitors.13 How would he have a date with his ex- girlfriend?A. They would talk about a movie on the telepone after whiching it together.B. The would watch a movie separately in the same cinema.C. They would go to the same movic at the same time respectively.D. They would discuss a movie together after watching it alone.14.What did he do to the computer at Harvard?A. He put a piece of software into the college computer.B. He exchanged the hardware of the college computer.C. He damaged the computer at Harvard.D. He took a piece of software away from the college computer.15 What is the secret of his success?A. He had good luck.B. He knew that his fortune would lie in hardware.C. The computers made by his company sold well.D. He knew clearly what he was good at.阅读(四)Even the newest gardener realizes that plants die without water; what is not so well known is that plants die equally decisively, though not so quickly , if they are overwatered. Beginners usually decide to play it safe and keep their potted plants thoroughly wet. In consequence, death by drowning is one of the commonest disasters to befall (降临,灾祸发⽣)the plants of a new boeticulturest ,plants wither away (枯萎)if they don’t get enough water ,and this draws attention to their problem.A plant that has been slightly underwatered so that it droops strikes terror into the heart of its new owner.But it will ,in fact ,recover completely as long as rescue in time and the process is out repeated too often over watered plants,unfortumtely ,do not give any such obvious signal; slowly they cease to thrive and the first visible in dication of serious trouble is a yellowing of the lower leaves .Unless the overwatered pot soil is givern a conisderable period withoutwater during which time the plant will continue to look wretched it will suddenly collapse in exactly the same way as the under watered plant- but with no chance of being revived because the roots have rotted away.16.From the text we can infer a horticulturist is a person engaged inA,growing plantsB.raising birdsC.cutting plantsD.studying the death cause of plants17.What does a new gardener usually decide to do keep their potted plants alive ?A.Underwatering the plantsB.Fertilyzing the pot soilC. Overwatering the plantsD.Loosening the pot soil18.According to the text ,which of the following plants might die without recovery?A.Plants with their lower leaves yellowingB.Overwaterde plantsC.Underwatered plantsD.Plants with worms19.A withered plant might be rescued becauseA.it doesn’t get enough waterB. it is repeatedly overwateredC. it gives visible signal of dyingD. it dies slowly20.What is the purpuse of this text?A.To warn gardeners not to underwater problems of gardening.B.To give information about general problems of gardening.C.To draw attention to the problem of overwatered plants.D.To recommend new gardeners the book about gardening.⼆、选择21.She is older than ________ .A. any other girl in the groupB. any girl in the groupC. all girls in the group.D. you and me as well as the group22.The student was just about to ________ the question, when suddenly he found the answer!A. arrive atB. work outC. give upD. work on23.I tried ________ the window, but that didn’t help! I still fel t coldA. to closeB. closingC. to be closingD. closed24.—Are the new rules working?—Yes, ____ books are stolen.A. FewB. MoreC. SomeD. None25.When ________ through a circuit, the current will lose part of its energy.A. flowingB. being flowedC. flowD. having flown26.Peter has planned to ________ some money every month so that be can buy a used car next year.A. set asideB. set upC. set inD. set along27.It was between 1830 and 1835 ________ the modern newspaper was born.A. howB. thatC. whichD. because28.Upon hearing the bell ring, ________ .A. the students’ departure was hastyB. our departure was hastyC. we departed hastilyD. the classroom was filled immediately29.The harder the scrub is to grow, _____ .A. the higher price it isB. the higher price it would haveC. the higher the price isD. the higher is price30.Mike’s uncle insists ________ in this hotel."A. stayingB. not to sayC. that he would not stayD. that he not stay31.He ________ the newspaper and sat on it.A. spread outB. took outC. put downD. finished32.The science of medicine, ________ progress has been very rapid lately, is perhaps the most important of all the sciences.A. to whichB. in whichC. whichD.with which33.—How did you do on the test?—I don’t know. For some reason, they’ve put off ________ the result until the end of the mouth.A. announceB. announcementC.announcingD. to announce34.Tom told me that you were going to take a trip to America, ________ ?A. weren’t youB. weren’t going youC. wouldn’t youD. didn’t you35.________ carefully and you will be able to ________ what is useful to you.A. Hear, listen toB. Hearing, hearC. if you listen, hearD. Listen, hear36.He lay o a straw mat with ________A. closed eyesB. eyes closed and his mouth openC. closed eyes open his mouthD. eyes closed and his mouth open37.Mr. Kim married________ .A. with Miss LeeB. to Miss LeeC. Miss LeeD. by Miss Lee38.—John ________to like the fried rice.—He sure does! That’s his third helping.A. daresB. looksC. seemsD. wants39.History shows that the founding of the People’s Republic of China________ a great deal________ those who gave their lives for the course.A. owes, toB. Contributes, toC. makes contribution, toD. benefits, from40.Almost all foreigners ________ to find the cit wreathed in yellow—grey mist for most of the year.A. expectB. look forwardC. look upD. look out41 If you had told me earlier, I ________ like thatA. would not toB. would not have doneC. would doD. will not do42.I________ of his course of action, so I told his to go ahead.A. acceptedB. agreedC. approvedD. consented43.Chapter Four mainly deals with the Civil War. As for its background, you may find it in the________ chapters.A. afterB. pastC. precedingD. before44.________ it rains or not doesn’t concern me.A. EitherB. ItC. NeitherD. Whether45.The job requires ________ as an accountantA. three year experienceB. three year’s experiencesC. three years experienceD. three years’experience46.Jim doesn’t like. American beer,________ does Anna.A. soB. neitherC. eitherD. also47.The audience waited until the curtain had risen and then________ into applause.A. floodedB. cheeredC. burstD. started48.Scarcely had they settle themselves in their seats in the cinema ________ it is composed.A. thenB. have beenC. areD. was49.By the end of June, you___here for three monthsA will have studied B.studies C will study D have studies50.You ________him so closely; you should have kept your distance.A. shouldn’t followB. mustn’t fol lowC. couldn’t have been followingD. shouldn’t have been following三.作⽂根据下述要求写⼀篇约101词左右的求职信:假如你是⼀位应届毕业⽣,你再中国⽇报(China Daily)上看到⼀则摩托罗拉公司(Motorola)欲招聘⼀位⼿机推销员的招聘⼴告,你⾮常感兴趣。

2003年1VFP真题

2003年1VFP真题

2003年(春)二级考试笔试卷参考答案(VFP)(本试卷包括计算机基础知识部分和程序设计部分,考试时间共120分钟)第一部分计算机基础知识(各语种相同)(红色为参考答案)1.目前,汉字信息在计算机内大多是以双字节编码表示的。

在下列用十六进制表示的两个季节的编码中,____1_____可能是汉字“大”的机内码。

A.B473HB.B4F3HC.3473HD.73F3H2.有一个数值311,它与十六进制数C9相等,则该数值是用____2____表示的。

A.二进制B.八进制C.十进制D.五进制3.长度为1个字节的二进制的整数,若采用补码表示,且由4个“1”和4个“0”组成,则可表示的最小整数为___3_____。

A.-127B.-121C.-15D.-74.关于PC机主板上的CMOS芯片,下面说法中正确的是____4____A.CMOS芯片用于存储计算机系统的配置参数,它是只读存储器。

B.CMOS芯片用于存储电自检程序。

C.CMOS芯片用于存储BIOS,是易失性的。

D.CMOS芯片需要一个电池给它供电,否则其中数据会因主机断电而丢失。

5.假设某硬盘的转速为6000转/分,则此硬盘的平均等待时间为____5___ms(毫秒)。

A.5B.6C.10D.126.软件测试是软件开发过程中的一个重要工作,它直接影响着软件的质量。

一个软件产品在交付前主要经历三种测试,三种测试中不包含 ___6_____。

A.维护测试B.模块测试C.验收测试D.集成测试7.目前,计算机病毒是影响计算机正常运行的主要因素之一,用户常在计算机中安装防病毒软件来预防计算机病毒。

在下列有关计算机病毒及防病毒软件的叙述中,不正确的是___7_____。

A.计算机病毒主要是通过可移动的存储介质或网络进行传播B.用户在上网浏览WWW信息资源时,所用计算机也可能被计算机病毒感染C.任何防病毒软件都只能预防一些已知的病毒,但对所有查出的病毒均能安全地清除D.任何防病毒软件都应经常性地更新8.在构建网络时,需要使用多种网络设备,如网卡、交换机等。

辽宁专升本考试题及答案

辽宁专升本考试题及答案

辽宁专升本考试题及答案一、选择题1. 下列关于计算机存储的描述,错误的是:A. 内存是计算机的主要存储设备B. 硬盘是计算机的辅助存储设备C. 内存中的数据断电后会丢失D. 硬盘中的数据断电后不会丢失答案:A2. 在Word文档中,要将文本加粗,可以使用以下哪种操作?A. 选择文本,然后点击工具栏中的加粗按钮B. 选择文本,然后按下Ctrl+B键C. 选择文本,然后按下Ctrl+I键D. 选择文本,然后按下Ctrl+U键答案:B二、填空题3. 在Excel中,要计算A1到A10单元格的总和,可以使用的公式是______。

答案:SUM(A1:A10)4. 计算机网络中,TCP/IP协议的IP地址由______位二进制数组成。

答案:32三、简答题5. 请简述操作系统的主要功能。

答案:操作系统的主要功能包括进程管理、内存管理、设备管理、文件管理和提供用户接口。

6. 解释什么是云计算,并举例说明其应用场景。

答案:云计算是一种通过互联网提供计算资源(如服务器、存储、数据库、网络、软件等)的服务模式。

用户可以按需访问这些资源,而无需购买和维护物理基础设施。

应用场景包括在线办公软件(如Google Docs)、在线视频会议(如Zoom)和在线游戏(如在线多人游戏服务器)。

四、计算题7. 已知函数f(x) = 3x^2 - 2x + 1,请计算f(2)的值。

答案:f(2) = 3*(2)^2 - 2*2 + 1 = 12 - 4 + 1 = 98. 计算圆的面积,已知圆的半径为5cm。

答案:面积= π * r^2 = 3.14 * (5cm)^2 = 78.5平方厘米五、论述题9. 论述数据库管理系统的主要特点及其在信息管理中的作用。

答案:数据库管理系统(DBMS)的主要特点包括数据结构化、数据独立性、减少数据冗余和提高数据一致性。

在信息管理中,DBMS通过提供数据存储、查询、更新和保护等功能,帮助组织高效地管理大量数据,确保数据的准确性和安全性,从而支持决策制定和业务流程的优化。

2003年4月-2010年9月VFP笔试试卷

2003年4月-2010年9月VFP笔试试卷

第三章历年笔试试卷2003年4月笔试试卷一、选择题((1)~(35)每小题2分,共70分)下列各题A)、B)、C)、D)四个选项中,只有一个选项是正确的,请将正确选项涂写在答题卡相应位置上,答在试卷上不得分。

(1)Visual FoxPro DBMS是A)操作系统的一部分 B)操作系统支持下的系统软件C)一种编译程序 D)一种操作系统(2)Visual FoxPro DBMS基于的数据模型是A)层次型 B)关系型 C)网状型 D)混合型(3)设有部门和职员两个实体,每个职员只能属于一个部门,一个部门可以有多名职员,则部门与职员实体之间的联系类型是A)m:n B)1:m C)m:k D)1:1(4)在Visual FoxPro中,调用表设计器建立数据库表STUDENT.DBF的命令是A)MODIFY STRUCTURE STUDENT B)MODIFY COMMAND STUDENTC)CREATE STUDENT D)CREATE TABLE STUDENT(5)在Visual FoxPro中,关于自由表叙述正确的是A)自由表和数据库表是完全相同的B)自由表不能建立字段级规则和约束C)自由表不能建立候选索引D)自由表不可以加入到数据库中(6)在Visual FoxPro中,建立数据库表时,将年龄字段值限制在12~40岁之间的这种约束属于A)实体完整性约束 B)域完整性约束C)参照完整性约束 D)视图完整性约束(7)在Visual FoxPro中,运行表单T1.SCX的命令是A)DO T1 B)RUN FORM T1C)DO FORM T1 D)DO FROM T1(8)使用SQL语句进行分组检索时,为了去掉不满足条件的分组,应当A)使用WHERE子句B)在GROUP BY后面使用HAVING子句C)先使用WHERE子句,再使用HAVING子句D)先使用HAVING子句,再使用WHERE子句(9)Visual FoxPro的参照完整性规则不包括A)更新规则 B)删除规则 C)查询规则 D)插入规则(10)在Visual FoxPro中,表结构中的逻辑型、通用型、日期型字段的宽度由系统自动给出,它们分别为:A)1、4、8 B)4、4、10 C)1、10、8 D)2、8、8(11)在Visual FoxPro中,学生表STUDENT中包含有通用型字段,表中通用型字段中的数据均存储到另一个文件中,该文件名为A)STUDENT.DOC B)STUDENT.MEMC)STUDENT.DBT D)STUDENT.FPT(12)在Visual FoxPro中,使用"菜单设计器"定义菜单,最后生成的菜单程序的扩展名是A)MNX B)PRG C)MPR D)SPR(13)在Visual FoxPro中,使用SQL命令将学生表STUDENT中的学生年龄AGE字段的值增加1岁,应该使用的命令是A)REPLACE AGE WITH AGE+1B)UPDATE STUDENT AGE WITH AGE+1C)UPDATE SET AGE WITH AGE+1D)UPDATE STUDENT SET AGE = AGE+1(14)调用报表格式文件PP1预览报表的命令是A)REPORT FROM PP1 PREVIEWB)DO FROM PP1 PREVIEWC)REPORT FORM PP1 PREVIEWD)DO FORM PP1 PREVIEW(15)在Visual FoxPro中,建立索引的作用之一是A)节省存储空间 B)便于管理C)提高查询速度 D)提高查询和更新的速度(16)在Visual FoxPro中,相当于主关键字的索引是A)主索引 B)普通索引C)唯一索引 D)排序索引(17)在Visual FoxPro中,为了将表单从内存中释放(清除),可将表单中退出命令按钮的Click事件代码设置为A)ThisForm.Refresh B)ThisForm.DeleteC)ThisForm.Hide D)ThisForm.Release(18)假定一个表单里有一个文本框Text1和一个命令按钮组CommandGroup1,命令按钮组是一个容器对象,其中包含Command1和Command2两个命令按钮。

2003年下半年全国计算机二级考试

2003年下半年全国计算机等级考试(VFP二级)笔试试卷一、选择题((1)~(35)每小题2分,共70分)下列各题A)、B)、C)、D)四个选项中,只有一个选项是正确的,请将正确选项涂写在答题卡相应位置上,答在试卷上不得分。

(1)对于现实世界中事物的特征,在实体-联系模型中使用A)属性描述B)关键字描述C)二维表格描述D)实体描述(2)把实体-联系模型转换为关系模型时,实体之间多对多联系在关系模型中是通过A)建立新的属性来实现B)建立新的关键字来实现C)建立新的关系来实现D)建立新的实体来实现(3)专门的关系运算不包括下列中的A)联接运算B)选择运算C)投影运算D)交运算(4)对关系S和关系R进行集合运算,结果中既包含S中元组也包含R中元组,这种集合运算称为A)并运算B)交运算C)差运算D)积运算(5)关于Visual FoxPro的变量,下面说法中正确的是A)使用一个简单变量之前要先声明或定义B)数组中各数组元素的数据类型可以不同C)定义数组以后,系统为数组的每个数组元素赋以数值0D)数组元素的下标下限是0 #此前在首页部分显示#(6)在下面的表达式中,运算结果为逻辑真的是A)EMPTY(.NULL.) B)LIKE("edit","edi?") C)AT("a","123abc") D)EMPTY(SPACE(10))(7)Visual FoxPro内存变量的数据类型不包括A)数值型B)货币型C)备注型D)逻辑型(8)为了设置两个表之间的数据参照完整性,要求这两个表是A)同一个数据库中的两个表B)两个自由表C)一个自由表和一个数据库表D)没有限制(9)数据库表可以设置字段有效性规则,字段有效性规则属于域完整性范畴,其中的"规则"是一个A)逻辑表达式B)字符表达式C)数值表达式D)日期表达式(10)通过指定字段的数据类型和宽度来限制该字段的取值范围,这属于数据完整性中的A)参照完整性B)实体完整性C)域完整性D)字段完整性(11)用命令"INDEX on 姓名TAG index_name "建立索引,其索引类型是A)主索引B)候选索引C)普通索引D)惟一索引(12)执行命令"INDEX on 姓名TAG index_name "建立索引后,下列叙述错误的是A)此命令建立的索引是当前有效索引B)此命令所建立的索引将保存在.idx文件中C)表中记录按索引表达式升序排序D)此命令的索引表达式是"姓名",索引名是"index_name"(13)查询订购单号(字符型,长度为4)尾字符是"1"的错误命令是A)SELECT * FROM 订单WHERE SUBSTR(订购单号,4)="1"B)SELECT * FROM 订单WHERE SUBSTR(订购单号,4,1)="1"C)SELECT * FROM 订单WHERE "1"$订购单号D)SELECT * FROM 订单WHERE RIGHT(订购单号,1)="1"(14)以下关于空值(NULL)叙述正确的是A)空值等同于空字符串B)空值表示字段或变量还没有确定值C)VFP不支持空值D)空值等同于数值0(15)两表之间"临时性"联系称为关联,在两个表之间的关联已经建立的情况下,有关"关联"的正确叙述是A)建立关联的两个表一定在同一个数据库中B)两表之间"临时性"联系是建立在两表之间"永久性"联系基础之上的C)当父表记录指针移动时,子表记录指针按一定的规则跟随移动D)当关闭父表时,子表自动被关闭(16)在SQL语句中,与表达式"工资BETWEEN 1210 AND 1240"功能相同的表达式是A)工资>=1210 AND 工资<=1240 B)工资>1210 AND 工资<1240C)工资<=1210 AND 工资>1240 D)工资>=1210 OR 工资<=1240(17)在SQL语句中,与表达式"仓库号NOT IN("wh1","wh2")"功能相同的表达式是A)仓库号="wh1" AND 仓库号="wh2" B)仓库号!="wh1" OR 仓库号# "wh2"C)仓库号< >"wh1" OR 仓库号!="wh2" D)仓库号!="wh1" AND 仓库号!="wh2"(18)打开表并设置当前有效索引(相关索引已建立)的正确命令是A)ORDER student IN 2 INDEX 学号B)USE student IN 2 ORDER 学号C)INDEX 学号ORDER student D)USE student IN 2(19)查询设计器中"联接"选项卡对应的SQL短语是A)WHERE B)JOIN C)SET D)ORDER BY(20)在SQL SELECT语句中用于实现关系的选择运算的短语是A)FOR B)WHILE C)WHERE D)CONDITION(21)执行下列一组命令之后,选择"职工"表所在工作区的错误命令是CLOSE ALLUSE 仓库IN 0USE 职工IN 0A)SELECT 职工B)SELECT 0 C)SELECT 2 D)SELECT B(22)在Visual FoxPro中有如下程序:*程序名:TEST.PRG*调用方法: DO TESTSET TALK OFFCLOSE ALLCLEAR ALLmX="Visual FoxPro"mY="二级"DO SUB1 WITH mX?mY+mXRETURN*子程序:SUB1.PRGPROCEDURE SUB1PARAMETERS mX1LOCAL mXmX=" Visual FoxPro DBMS 考试"mY="计算机等级"+mYRETURN执行命令DO TEST后,屏幕的显示结果为A)二级Visual FoxPro B)计算机等级二级Visual FoxPro DBMS 考试C)二级Visual FoxPro DBMS 考试D)计算机等级二级Visual FoxPro(23)有关连编应用程序,下面的描述正确的是A)项目连编以后应将主文件视做只读文件B)一个项目中可以有多个主文件C)数据库文件可以被指定为主文件D)在项目管理器中文件名左侧带有符号?的文件在项目连编以后是只读文件(24)新创建的表单默认标题为Form1,为了修改表单的标题,应设置表单的A)Name属性B)Caption属性C)Closable属性D)AlwaysOnTop属性(25)有关控件对象的Click事件的正确叙述是A)用鼠标双击对象时引发B)用鼠标单击对象时引发C)用鼠标右键单击对象时引发D)用鼠标右键双击对象时引发(26)关闭当前表单的程序代码是ThisForm.Release,其中的Release是表单对象的A)标题B)属性C)事件D)方法(27)以下叙述与表单数据环境有关,其中正确的是A)当表单运行时,数据环境中的表处于只读状态,只能显示不能修改B)当表单关闭时,不能自动关闭数据环境中的表C)当表单运行时,自动打开数据环境中的表D)当表单运行时,与数据环境中的表无关(28)如果菜单项的名称为"统计",热键是T,在菜单名称一栏中应输入A)统计(\(29)Visual FoxPro的报表文件.FRX中保存的是A)打印报表的预览格式B)已经生成的完整报表C)报表的格式和数据D)报表设计格式的定义(30)在DO WHILE … ENDDO循环结构中,EXIT命令的作用是A)退出过程,返回程序开始处B)转移到DO WHILE语句行,开始下一个判断和循环C)终止循环,将控制转移到本循环结构ENDDO后面的第一条语句继续执行D)终止程序执行(31)一条没有指明去向的SQL SELECT 语句执行之后,会把查询结果显示在屏幕上,要退出这个查询窗口,应该按的键是A)ALT B)DELETE C)ESC D)RETURN第(32)-(35)题使用如下三个表:学生.DBF:学号C(8) ,姓名C(12),性别C(2),出生日期D,院系C(8)课程.DBF:课程编号C(4) ,课程名称C(10) ,开课院系C(8)学生成绩.DBF:学号C(8) ,课程编号C(4) ,成绩I(32)查询每门课程的最高分,要求得到的信息包括课程名称和分数。

2003年普通高等学校夏季招生考试大综辽宁卷

2003年普通高等学校夏季招生考试大综辽宁卷(新课程)(总分:76 考试时间:62分钟)一、选择题 ( 本大题共 6 题, 共计 36 分)1.在离地面高为h处竖直上抛一质量为m的物块,抛出时的速度为v0,当它落到地面时速度为v,用g表示重力加速度,则在此过程中物块克服空气阻力所做的功等于………………………………………()A.mgh-mv2-mvB.-mv2-mv-mghC.mgh+mv-mv2D.mgh+mv2-mv答案:(6分) C2.若航天飞机在一段时间内保持绕地心做匀速圆周运动,则…()A.它的速度的大小不变,动量也不变B.它不断地克服地球对它的万有引力做功C.它的动能不变,引力势能也不变D.它的速度的大小不变,加速度等于零答案:(6分) C3.如图4所示,a、b是位于真空中的平行金属板,a板带正电,b板带负电,两板间的电场为匀强电场,场强为E。

同时在两板之间的空间中加匀强磁场,磁场方向垂直于纸面向里,磁感应强度为B。

一束电子以大小为v0的速度从左边S处沿图中虚线方向入射,虚线平行于两板。

要想使电子在两板间能沿虚线运动,则v0、E、B之间的关系应满足……()图4A.v0=B.v0=C.v0=D.v0=答案:(6分) A4.电学中的库仑定律、欧姆定律、法拉第电磁感应定律(有关感应电动势大小的规律)、安培定律(磁场对电流作用的规律)都是一些重要的规律。

图5为远距离输电系统的示意图(为了简单,设用户的电器是电动机),下列选项中正确的是……………………………………()图5A.发电机能发电的主要原理是库仑定律变压器能变压的主要原理是欧姆定律电动机通电后能转动起来的主要原理是法拉第电磁感应定律B.发电机能发电的主要原理是安培定律变压器能变压的主要原理是欧姆定律电动机通电后能转动起来的主要原理是库仑定律C.发电机能发电的主要原理是欧姆定律变压器能变压的主要原理是库仑定律电动机通电后能转动起来的主要原理是法拉第电磁感应定律D.发电机能发电的主要原理是法拉第电磁感应定律变压器能变压的主要原理是法拉第电磁感应定律电动机通电后能转动起来的主要原理是安培定律答案:(6分) D5.在图6所示电路中E为电源,其电动势=9.0 V,内阻可忽略不计;AB为滑动变阻器,其电阻R=30 Ω;L为一小灯泡,其额定电压U=6.0 V,额定功率P=1.8 W;K为电键。

2003计算机班<数据库>期终考试卷

2003计算机班2005-2006学年度第一学期期末考试《Visual FoxPro 6.0》考试卷一、单项选择题(每题2分,共70分)1、一个关系型数据库管理系统所应具有的三种基本关系操作是( )。

A、筛选、投影与连接B、编辑、浏览与替换C、插入、删除与修改D、排序、索引与查询2、以下程序正确的运行结果是( )。

STORE100TO X,Y,ZDO PROC1WITH(X),Y?X,Y,ZPROC PROC1PARA M,NM=M+100N=N+100RETUA、100200100B、100100100C、200200100D、1001002003、执行下列命令,最后输出的结果是( )。

X=50Y=200Z=“X+Y”?1+&ZA、1+X+YB、1+ZC、251D、数据类型不匹配4、顺序执行以下赋值命令之后,下列表达式中错误的是( )。

A=”123”B=3*5C=”XYZ”A、&A+BB、&B+CC、VAL(A)+BD、STR(B)+C5、执行下面的命令后,函数EOF()的值一定为真的是( )。

A、REPLACE 基本工资 WITH基本工资+200B、LISTC、DISPLAY FOR 基本工资>800D、SUM基本工资 TO SS WITH 性别=”女”6、当前数据表中有一个字符型字段“姓名”,如果要把内存变量XM中的字符串输入到当前记录的“姓名”字段中,应该使用的命令是( )。

A、姓名=XMB、REPLACE 姓名 WITH XMC、REPLACE 姓名 WITH &XMD、REPLACE ALL 姓名 WITH XM7、命令”TOTAL ON 学号 TO XH”中的XH是( )。

A、内存变量B、字段变量C、数据表文件D、文本文件8、在下列程序中,要使程序继续循环,变量M的输入值应为( )。

DO WHILE .T.WAIT “M=” TO MIF UPPER(M)$”YN”EXITENDIFENDDOA、Y或yB、N或nC、Y、y或者N、nD、Y、y、N、n之外的任意字符9、执行以下程序后,变量X的值为( )。

专升本vf试题及答案

专升本vf试题及答案专升本VF试题及答案一、选择题(每题2分,共20分)1. 在Visual FoxPro中,以下哪个命令用于打开表单?A. OPEN FORMB. DISPLAY FORMC. RUN FORMD. LOAD FORM答案:C2. 下列哪个函数用于计算字符串的长度?A. STR()B. LEN()C. LEFT()D. RIGHT()答案:B3. 在Visual FoxPro中,以下哪个命令用于创建一个空的表?A. CREATE TABLEB. DEFINE TABLEC. MAKE TABLED. BUILD TABLE答案:A4. 以下哪个属性用于设置表单的标题?A. CaptionB. TitleC. HeaderD. Footer答案:A5. 在Visual FoxPro中,以下哪个选项用于设置字段的默认值?A. DEFAULTB. DEFAULTVALUEC. VALUED. INITIAL答案:A二、填空题(每题2分,共20分)6. 在Visual FoxPro中,______函数用于将日期转换为字符串。

答案:DATE()7. ______命令用于结束程序的执行。

答案:QUIT8. 在Visual FoxPro中,______属性用于设置表单的背景颜色。

答案:BackColor9. ______函数用于返回当前日期。

答案:DATE()10. 在Visual FoxPro中,______属性用于设置表单的前景色。

答案:ForeColor三、简答题(每题10分,共30分)11. 简述Visual FoxPro中如何创建一个新表单。

答案:在Visual FoxPro中,创建一个新表单可以通过以下步骤:首先打开Visual FoxPro,然后选择“文件”菜单中的“新建”,在弹出的对话框中选择“表单”,点击“新建”按钮,这样就创建了一个新表单。

12. 解释Visual FoxPro中的数据类型有哪些,并给出至少两个例子。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

2003年辽宁省高职高专毕业生升入本科学校招生考试
FoxPro语言
在以下各题中,如果要用到数据库RSDA.DBF和GZDA.DBF,均依据以下数据库的结构与内容为准。

所有使用W RSDA.DBF和GZDA.DBF的程序均使用下面的原始数据,即不考虑各程序运行的影响。

RSDA.DBF
记录号编号姓名性别出生日期职称工资
1 001 李丽女 12/01/74 讲师 0.00
2 002 刘晓华女 11/05/70 副教授 0.00
3 003 王刚男 10/11/5
4 教授 0.00
4 004 张志明男 01/02/68 副教授 0.00
5 005 吴月女 08/10/78 讲师 0.00
GZDA.DBF
记录号编号姓名基本工资津贴奖金合计
1 001 李丽 500 100 250 0.00
2 002 刘晓华 600 120 280 0.00
3 003 王刚 900 200 310 0.00
4 004 张志明 700 150 300 0.00
5 005 吴月 450 100 270 0.00
四、填空题(每题2分,计10分)
41. 目前数据库常用的数据模型有()、层次模型、网状模型。

42. Foxpro规定一个工作区可以打开表的个数是()个。

43. ()类型的文件是备注文件。

44. 要修改表TEST.DBF的结构,应该用命令()。

45. 将当前表中全部记录的学号、姓名两个字段复制到表Y中,应使用的命令是()。

五、阅读程序(每题3分,计24分)
46. Set talk off
Use gzda
Do while not eof()
replace 合计 with 基本工资+奖金
skip
Enddo
Go bottom
Skip -2
?姓名,合计
Go top
Skip
?recno()
Use
return
47. Set talk off
Use rsda
N=0
Do while not eof()
if 性别=“男”and 职称<>“讲师”
n=n+1
endif
Enddo
?“n=”,n
use
return
48. Set talk off
Use rsda
Copy structure to rs
Use rs
M=0
Do while m<100
append blank
m=m+1
Enddo
?”m=”,m
Use
return
49. Set talk off
Use gzda
Sum 基本工资 for 基本工资<600 to a1 Average 奖金 for 奖金>=300 to b1
?a1,b1
return
50. Set talk off
Q=“东方之珠:香港”
K=“庆祝回归”
M=left(k,4)+right(q,4)+right(k,4)
P=len(m)
?m,p
return
51. Set talk off
Use rsda
Copy to rsd for 出生日期>ctod(“01/01/74”) Use rsd
List off 姓名,性别,出生日期
Use
return
52. Set talk off
Select b
Use gzda
Index on 姓名 to gz1
Select a
Use rsda
?姓名,工资
Set relation to 姓名 into b
Replace all 工资 with b->基本工资
Go top
?姓名, 工资
Close database
return
53. Set talk off
Dimension x(5)
Store 1 to I,max,min
Do while i<=5
x(i)=i*i
if x(i)>max
max=x(i)
endif
if x(i)<min
min=x(i)
endif
i=i+1
Enddo
?max,min
return
六、完善程序(每题3分,计24 分)
54.对表gzda按姓名查询
Use gzda
Accept “输入姓名:” to xm Locate for 姓名=xm
If ( )
?姓名,基本工资
Endif
Use
return
55.对gzda表中的基本工资求和,且在表尾增加一条空白记录,其中基本工资的值用求的和值取代。

Set talk off
Use gzda
Sum 基本工资 to gz1
Append blank
Replace ( )
Go bottom
Display
Use
return
56.将表gzda与rsda连接成表gzrs,其中gzrs只含编号,姓名,职称三个字段。

Select 2
Use rsda
Index ( ) to rsda1
Select 1
Use gzda
Join with b to gzrs fields 编号,姓名,b->职称;
for 编号=b->编号
Select 3
Use gzrs
List
Close all
return
57.在rsda表中,按编号删除记录。

Set talk off
Use rsda
Index on 编号 to bh
Accept “输入编号:”to bh1
Seek bh1
If found()
display off 编号,姓名
wait “删除吗(y/n)” to yn
if upper(yn)=“Y”
delete
( )
list
endif
Else
?”查无此人”
Endif
return
58.显示rsda表中女职工记录
Set talk off
Use rsda
Do while not eof()
if 性别=“女”
display
skip
else
skip
( )
endif
Enddo
Use
return
59.显示有“*”号组成的如下三角形:*
Set talk off ***
R=1 *****
Cc=10 *******
Do while r<=4
s=1
do while s<=2*r-1
@r,cc say “*”
cc=cc+1
s=s+1
cc=10
( )
Enddo
return
60.求gzda中所有职工的平均基本工资
Set talk off
Use gzda
Count to n
M=0
Go top
Do while not eof()
m=( )
skip
Enddo
?”m=”,str(m/n,4)
Use
return
61.输出rsda表中1965年1月1日以前出生的职工姓名及出生日期。

Set talk off
Use rsda
Do while not eof()
if ( )
display 姓名,出生日期
skip
Enddo
Use
return
七、程序改错(每题3分,计12分)
62.显示男职工记录
(1)Set talk off
(2)Use rsda
(3)Do while .t.
(4) If 性别<>”男”
(5) skip
(6) loop
(7) endif
(8) display
(9) skip
(10)enddo
(11)usr
(12)return
63.在rsda 中,给女副教授增加100元工资。

(1)Set talk off
(2)Use rsda
(3)Do while not eof()
(4) If 性别=“女”or 职称=“副教授”
(5) Replace 工资 with 工资+100
(6) endif
(7) skip
(8)enddo
(9)Go top
(10)list
(11)use
(12)return
64.在rsda表中,查找第一个职称为讲师的记录
(1)Set talk off
(2)Use rsda
(3)Locate for 职称=“讲师”
(4)If found()
(5) list
(6)else
(7) ?”未找到”
(8)endif
(9)use
(10)return
65.求100!
(1)Set talk off
(2)clear
(3)s=1
(4)n=1
(5)Do while n<=100
(6) s=n*(n+1)
(7) n=n+1
(8)enddo
(9)?s
(10)return
扫描二维码立即获取答案。

相关文档
最新文档