全国计算机等级考试四级笔试试题附答案
计算机等级考试四级数据库原理第1套试题及答案

计算机等级考试四级数据库原理第1套试题及答案计算机等级考试四级数据库原理第1套试题及答案⼀、单项选择题(共30分;每题1分)1、数据库⽤户有各种类型,他们具有的技术和知识层次各不相同,使⽤数据库的⽬的也不尽相同。
因此,为了便于他们的使⽤,DBMS应该提供各种不同类型的()。
A)数据结构B)关系模型C)对象结构D)⽤户界⾯2、下列关于数据模型的叙述中,哪⼀条是错误的()。
A)数据模型是⽤来描述、组织和处理现实世界中数据的⼯具B)数据模型主要⽤于定义数据库的静态特征,⽽不是⽤来描述数据间的动态⾏为C)数据模型需要能⽐较真实地模拟现实世界D)数据模型是数据库系统的核⼼和基础3、如果⼀门课程只能由⼀位教师讲授,⽽⼀位教师可以讲授若⼲门课程,则课程与教师这两个实体型之间的联系是()。
A)⼀对⼀B)多对多C)⼀对多D)多对⼀4、下列关于概念模型的叙述中,哪⼀条是错误的()A)概念模型是现实世界到信息世界的抽象B)概念模型是从⽤户观点对数据和信息的建模C)概念模型具有较强的语法表达能⼒,却⽆法描述语义信息D)实体-联系模型是最常⽤的概念模型5、下列关于数据库中“型”和“值”的叙述中,哪⼀条是错误的()。
A)数据库中的型是指对某⼀类数据的结构和属性的描述B)数据库的型是随时间发⽣不断变化的C)数据库的型亦称为数据库的内涵D)数据库的值是型的⼀个具体赋值6、下列关于关系数据模型的叙述中,哪⼀条是错误的()。
A)关系模型中数据的物理结构是⼀张⼆维表B)在关系模型中,现实世界的实体以及实体间的各种联系均⽤关系来表⽰C)插⼊、删除、更新是关系模型中的常⽤操作D)关系操作通过关系语⾔实现,关系语⾔的特点是⾼度⾮过程化7、下列关于关系数据语⾔的叙述中,哪⼀条是错误的()。
A)关系代数是关系操作语⾔的⼀种传统表⽰⽅式,是⼀种抽象的查询语⾔B)元组关系演算和域关系演算属于关系演算语⾔C)关系代数⽐关系演算具有更强的表达能⼒D)SQL语⾔是⼀种重要的关系数据语⾔8、现有“学⽣—选课—课程”数据库中的三个关系如下:S(S#,SNAME,SEX,BIRTHYEAR,DEPT),主码是S#C(C#,CNAME,TEACHER),主码是C#SC(S#,C#,GRADE),主码是(S#,C#)下列关于保持数据库完整性的叙述中,哪⼀条是错误的()。
全国计算机等级考试四级考试试题及答案(5)

全国计算机等级考试四级考试试题及答案(5)2015年全国计算机等级考试四级考试试题及答案(71) A virtual memory system has five virtual pages numbered zero through four and three page frames. All the page frames are initially empty. How many page faults are generated with the following access sequence using a FIFO replacement policy? (2 Points)0 1 2 3 0 1 4 0 1 2 3 4A.8B.9C.10D.11(72) Which element is NOT part of a microkernel? (2 Points)A.basic I/OB.a file systemC.IPC mechanismsD.memory management(73) Which is local to a thread instead of a process? (2 Points)A.a stackB.an open fileC.a semaphoresD.an address space(74) What is a subselect statement?A.a select statement that selects a subset of fields in a tableB.a select statement that returns a subset of the data in a tableC.a select statement that appears within another select statementD.a select statement that returns a subset of the constraintson a field(75) In developing a hospital database,it is determined that on the average,each patient will have 6 treatments during a hospital stay. The averge length of a stay is three days.The hospital has 1000 beds. There are on the average 800 patients occupying beds each day. The relationship between PATIENT and TREATMENT is l: M. The relationship between PATIENT and BED is 1: 1, conditional. If treatment record occurrences are archived as soon as a patient is discharded from the hospital,how many occurrences of the TREATMENT records will be stored in the TREATMENT database file on the average? (2 Points)A.6,000B.4,800C.18,000 D)1,600(76) Which of the following conditions will make a relation that is in first normal form to be in second normal form?Ⅰ.every non-key attribute is functionally dependent on the full set of primary key attributes.Ⅱ.no non-key attributes exist in the relation.Ⅲ.the primary key consists of only one attribute.A.Ⅰ onlyB.Ⅰand Ⅱ onlyC.Ⅰand Ⅲ onlyD.any of them(77) The most commonly used locking level in implementing concurrency control is at which of the following levels?A.databaseB.tableC.record D)field(78) Which function is NOT served by building a prototype?A.It takes the place of the final system.B.It assists in gathering software requirementsC.It assists in estimating the cost of the project.D.It is used as the foundation of the larger projects.(79) Software document is an important part of software anda basis of software development phase.It also influnces software’s (2 Points)A.ReusabilityB.MaintanenceC.ExpansibilityD.Portability(80) Which phase of the software development requires the most development time?A.the design phaseB.the testing phaseC.the maintenance phaseD.the development phase(81) Which of the following statements is correct? (2 Points)A.The definition phase results in the Software Requirements Specification.B.Testing is optional in software life cycle.C.CASE tools can only aid in the design phase of a software life cycle.D.A change during a later phase does not require the documentation of all earlier phases to be updated.(82) Black-box and white-box testing method are often used in software testing phase,in which,the white-box is mainly used to test software’sA.reasonableness of structureB.correctness of a programC.external function of a programD.internal logic of a program(83) How does Booth’s Algorithm improve binary multiplication?A.It prevents overflow.B.It prevents underflow.C.It preserves the sign of the multiplication operation.D.It enhances the speed of the operation significantly.(84) A cache has 64 blocks; each block is 16 bytes. Which block does byte 1200 map to ?A.25B.60C.75 D)100(85) Which is NOT a characteristic of an RISC processor?A.a high clock speedB.a highly optimized pipelineC.a few general-purpose registersD.a limited amount of small instructions(86) You are performing two sums: the first is a sum of two scalar variables and the second is a matrix sum of a pair of two- dimensional arrays-size 1000 by 1000. What speedup is achieved when the calculations are performed on size 1000 processors? (2 Points)。
计算机四级考试试题含答案3篇

计算机四级考试试题含答案第一篇:听力部分一、听力理解Passage 11. A) He wasted a lot of time on the Internet.2. B) He had to work harder to make up for the lost time.3. C) He found it easier to manage his time after the incident.Passage 24. A) Children’s entertainment.5. B) A new type of TV program.6. D) It helps children learn without realizing it.Passage 37. A) His experience as a gardener.8. C) The latest methods of gardening.9. B) Making full use of available space for gardening.Passage 410. D) They have difficulty expressing themselves in a foreign language.11. B) They may show their true personality more in a foreign language.12. C) They have a hard time understanding the humor in a foreign language.二、听力填空Section A: Directions: In this section, you will hear 10 short conversations. At the end of each conversation, a question will be asked about what was said. Both the conversation and the question will be spoken only once. After each question there will be a pause. During the pause, you must read the fourchoices marked A), B), C) and D), and decide which is the best answer. Then mark the corresponding letter on the Answer Sheet with a single line through the center.1. type of shirt she wants2. He has to leave very early in the morning.3. The woman’s plan to study in the library.4. The woman has been admitted to the university.5. Jenny has to buy more books than she expected.6. Buy a bigger bag.7. The fact that the train is late.8. She will return the book to the library.9. He is going to buy a new bike soon.10. He is going to go to the stadium later this afternoon.Section B: Directions: In this section, you will hear 3 short passages. At the end of each passage, you will hear some questions. Both the passage and the questions will be spoken only once. After you hear aquestion, you must choose the best answer from thefour choices marked A), B), C) and D). Then mark the corresponding letter on the Answer Sheet with a single line through the center.11. Why do people who exercise have better vision?12. What should you do if you want to prevent the loss of vision?13. What kind of food is rich in vitamin A?14. Why is working in dim light bad for your eyes?15. How does lack of sleep affect your vision?三、听力短文Passage One16. C) Take more public transportation.17. A) Reduce pollution.18. B) Provide more job opportunities.Passage Two19. B) Help improve their life skills.20. C) Teach them how to deal with emergencies.21. A) To eliminate surprises that could be dangerous.Passage Three22. C) They produce extra food for emergencies.23. B) They are a symbol of health and prosperity.24. D) They are a source of innovation.Passage Four25. B) Furniture made of recycled materials.26. C) Chemicals that can be hazardous to yourhealth.27. A) How to avoid the risks of indoor pollution.第二篇:阅读部分一、阅读选词填空1. J) set2. A) maximize3. D) demonstrate4. N) exposure5. I) alternative6. K) establish7. H) constitute8. G) grade9. B) survival10. F) clarify11. M) acquisition12. E) restrict13. L) skeptical二、完形填空1. C) interrupted2. D) bored3. A) expensive4. A) not really5. B) surprising6. D) refuse7. C) occasionally8. A) similarly9. D) unless10. C) history11. A) adopt12. B) creative13. C) alternatively14. D) lack15. C) explores三、阅读理解Passage one:1. A) By increasing taxes on sugary drinks.2. D) It is becoming more difficult to find too much sugar in food.3. B) Some of the polls conducted by the government had poor methods.4. C) The government encourages food companies to reduce sugar in their products.5. D) Britain’s sugar reduction program is currently far from achieving its goal.Passage two:6. D) How humans learn from music.7. D) It provokes our feelings and curiosity.8. C) They share a lot of similarities with child conversations.9. B) To raise our interest in the topic.10. C) By dividing it into smaller, easier-to-understand parts.Passage three:11. A) They were unaware of security threats.12. B) Problems with the security clearance process.13. C) They pose potential security risks.14. D) Attackers could take control of engines and other vital systems.15. B) A lack of awareness of cybersecurity risks among users.第三篇:写作部分一、作文Dear Mr. Smith,I am writing to express my strong objection tothe recent decision to cancel school sports programs in our district. While I understand that budget cuts may be challenging, I believe that cutting sports programs is not the best solution. As a student-athlete, I have experienced firsthand the manybenefits that sports programs bring to our schools.Firstly, sports programs encourage students to be physically active and lead healthy lifestyles. With childhood obesity rates on the rise, it is important to promote healthy habits in our schools. Furthermore, participation in sports can improve students’ mental and emotional well-being, as well as their academic performance.Secondly, sports programs provide students with valuable life skills. Learning to work together as a team and to persevere through challenges are importantskills that will serve students well in their future careers and personal lives. Sports also teach students important values such as sportsmanship, fair play and respect for others.Finally, sports programs are a source of pridefor our schools and communities. They provide opportunities for students to represent their schools on a local, regional or even national level and can help to build community spirit and support.In conclusion, I strongly urge you to reconsider the decision to cancel school sports programs. The benefits of these programs are far too important to ignore. Thank you for taking the time to consider my concerns.Yours sincerely,[Your Name]二、翻译1. 我的爷爷是个非常有趣的人。
全国计算机等级考试四级笔试试题六(下)

(51) 计算机络共享的计算机资源主要指计算机硬件、软件与_____。
A) 物理络 B) 路由器 C) 数据 D) 服务器(52) 分布式计算机系统与计算机络不同之处在于:分布式计算机系统存着⼀个能够以全局⽅式⾃动管理资源的_____。
A) 络协议 B) 络操作系统 C) 路由器 D) 体系结构(53) 计算机络从组设备的功能上,可以分为通信⼦与_____。
A) 服务器 B) 局域 C) 数据通信 D) 资源⼦(54) 络拓扑反映出络中各实体之间的结构关系,它影响着络的性能、系统可靠性与_____。
A) 络应⽤软件 B) 体系结构 C) 络协议 D) 通信费⽤(55) 计算机络从络覆盖范围上,可以分为局域、⼴域与_____。
A) 物理 B) 城域 C) 分组交换 D) ⾼速(56) 在有随机热噪声的通信信道上传输数据信号时,信道的数据传输速率决定于信道带宽与_____。
A) 信号强度 B) 噪声强度C) 信号噪声功率⽐ D) 信号波形(57) 如果调制解调器的调制速率为4800baud,采⽤8相调制,那么该调制解调器的数据传输速率为_____。
A) 14400bps B) 2400bps C) 28800bps D) 600bps(58) 与传统Ethernet采⽤相同的介质访问控制⽅法与帧结构,⽽只是将它的每个⽐特的发送时间降低到10ns,这种局域叫做_____。
(2分)A) ATM B) Fast EthernetC) Gigabit Ethernet D) Switched Ethernet(59) 如果互连的局域⾼层分别采⽤SPX/IPX 协议与TCP/IP 协议,那么我们可以选择的互连设备应该是_____。
(2分)A) 中继器 B) 透明桥C) ⾃适应卡 D) 多协议路由器(60) 局域交换机增加带宽的⽅法是在交换机的多个端⼝之间建⽴_____。
(2分)A) 全连接 B) 并发连接 C) 会话连接 D) 数据连接(61) The range of an 8bit fixed point integer numbert(no signs) is_____.A) 0-127 B) 0-128 C) 0-256 D) 0-255(62) Which set is a proper subset of E? _____.(2 points)E= {0,1,2,3}A) {x|x is a real number and x2=9}B) { x|x is a real number and x+3=0}C) { x|x is a real number and x2+5x+6=0}D) { x|x is a real number and x2=-9}(63) If p and q are statements,which of the following formulas is tautological?_____.A) ((p→q)∧p)→q B) (q∧(p→q))→pC) (p∨q)→p∧q D) ┐(p→q)∧q(64) What is the number of nonisomorphic spanning trees in the following graph? _____.A) 2 B) 3 C) 4 D) 5(65) A sequence d=(d1, d.2,….,dn) is graphic if there is a simple nondirected graph with d as its degree sequence.Which of the following sequences is graphic?_____.A) (2,3,3,4,4,5) B) (2,3,4,4,5)C) (2,3,3,4,4) D) (1,3,3,3)(66) Suppose a given binary tree has 10 leaf nodes, then the number of nodes with degree of 2 is_____.A) 12 B) 11 C) 9 D) Indeterminable(67) Suppose two dimensional array A[0..8, 0..9] (with element length o f 2 bytes) is stored using row major order, and the base address is 400.Then the address of element A[8, 5] is _____.(2 points)A) 570 B) 506 C) 410 D) 482(68) In the following kinds of graphs,which one's adjacency matrix is symmetric?_____. (2 points)A) Directed graph B) Undirected graphc) AOV network D) AOE network(69) To control and manage processes,which of the following data structures should be set up?_____.A) PCT B) PCB C) PCM D) PCL(70) In a tree directory of a file system, relative path nam can be used to find files for improving directory retrieval. To do this,which directory of the followings should be set up?_____. (2 points)A) parent directory B) child directoryC) working directory D) home directory(71) Which of the following commands is not one for communication among users_____. (2 points)A) mail B) write C) telnet D) nice(72) Of the items listed below,which one(s) should be saved into the process control block?_____. (2 Points)Ⅰ.Process name and process numberⅡ.Process running informationⅢ.Current opened file informationA) Ⅰ and Ⅱ B) Ⅰ and Ⅲ C) Ⅱ and Ⅲ D) Ⅰ,Ⅱ and Ⅲ(73) The DOS command which reads and changes properties of a file is_____.A) ATTRIB B) COMP C) SYS D) XCOPY(74) In the following statements about functional dependency, which one is incorrect?_____. (2 Points)A) If X→Y and Y→Z, then X→Z.B) If X→Y and Y'ìY, then X→Y'.C) If X→Y and X'ìX, then X'→Y.D) If X'ìX, then X→X'.(75) Which of the following is not responsibility of DBA(Data Base Administrator)?_____. A) Database management system designB) Database schema definitionC) Database schema modificationD) Integrity constraint specification(76) Which of the following is not among the basic features of a relational database?_____. A) It does not matter what order the rows are in.B) It does not matter what order the columns are in.C) Different columns should have different column names.D) Different columns should have different data types.(77) Which of the following statements about ORACLE is (are) correct?_____.Ⅰ. ORACLE follows SQL standardⅡ. ORACLE database defines two logical types: table and viewA) Ⅰ only B) Ⅱ only C) Ⅰ and Ⅱ D) none of the above(78) The task of the general design stage in structured life circle method is, to build what kind of software system structure? _____.A) program structure B) general structureC) module structure D) function structure(79) The software structure is an expression of the relationship among software modules. In the following phrases, which are not the relation among software modules? _____.(2 Points)Ⅰ. calling relationⅡ. belonging relationⅢ. Execution relationⅣ. process relationA) Ⅰ and Ⅱ B) Ⅱ and Ⅲ C) Ⅲ and Ⅳ D) none(80) N-S diagram can used to substitute conventional program flow chart. In the following phrases, which does not belong to the basic control structures that contain?_____.A) sequence structure B) condition structureC) selection structure D) execution structure(81) M.Jackson suggested the data structure oriented software design method. Which of the following structure can be introduced by using input/data structure?_____. (2 points)A) algorithm structure B) procedure structureC) code structure D) program structure(82) Software testing is acomplicated procedure.In the following testing method,which is the basic test lf software testing? _____.A) system testing B) effective testingC) element testing D) integrated testing(83) Typical MISD (multiple-instruction single-datastream) computing mode is_____.A) Pentium Ⅱ B) Alpha C) Systolic D) Staran(84) Local bus can reduce the occupation time of CPU. For the PCI local bus, commonly the time can be reduced to_____.A) 46% B) 26% C) 16% D) 6%(85) There are many page replacement algorithms in page management.The most frequently used algorithm is_____.A) FIFO B) LRU C) OPT D) PPT(86) The technology for carrying out multiple processing by means of multiple pipeline is called _____.(2 points)A) Superscalar B) SuperpipelineC) Multiple pipeline D) Very long instruction word(87) In most WANs ,the network contains numerous cables or telephone lines, each one connecting a pair of_____.A) hosts B) routers C) servers D) networks(88) Three concepts are central to the OSI model:Service,Interface and_____.A) Iayers B) Applications C) Protocols D) Networks(89) The underlying technology that makes B-ISDN is called_____.A) ATM B) Frame relayC) SDMS D) X.25 Networks(90) URLs have three parts: the DNS name of machine on which the page is located,then a local name uniquely indicating the specific page and_____. (2 points)A) protocol B) IP addressC) Network name D) Server name⼆、论述题 (两个论述题可任选其⼀,且只选其⼀,多选⽆效,满分30分)论述题 1某周内,物理系17名学⽣合作完成3个试验。
全国计算机等级考试四级数据库工程师16套(真题及答案)

1.下列关于数据库基本概念的叙述中,哪一条是错误的
(
)。
A) "数据库"可理解为是在计算机存储设备中按一定格式存放数据的
仓库
B) 数据库是按一定结构组织并可以长期存储在计算机内的、在逻辑
上保持一致的、可共享的大量相关联数据的集合
C) 数据库中的数据一般都具有较大的冗余度
D) 数据库中的数据是按一定的数据模型组织在一起的
B) 数据依赖是现实世界属性间相互联系的抽象
C) 数据依赖极为普遍地存在于现实世界中
D) 只有两种类型的数据依赖:函数依赖和多值依赖
20 设 U 为所有属性,X、Y、Z 为属性集,
Z = U - X - Y, 下列关于多值依赖的叙述中,哪一条是正
确的(
)。
A) 设 XY W U ,若 X→→Y 在 R(W)上成立,则 X→→Y 在 R(U)
)。
A) 广义投影、赋值、外连接、半连接、聚集和外部并都属于扩充的
关系操作
B) 对关系 R 的广义投影操作,是在若干算术表达式上的投影,这些
算术表达式只涉及常量和 R 中的属性
C) 若关系 R 和 S 是相容的,则 RS 表示通过赋值操作将关系 S 赋给
关系 R
D) 设关系 R 和 S 具有公共属性集 Y,执行 R S 会丢弃那些在 Y 上
对象和它的组件之间都存在着引用语义
29 下列关于数据挖掘的叙述中,哪一条是错误的(
)。
A) 数据挖掘被认为是知识发现过程中的一个特定步骤
B) 数据挖掘是使用专门的算法从数据中抽取有用的模式
C) 关联规则的发现是数据挖掘的目标之一
D) "可信度"表示规则所代表的事例(元组)占全部事例(元组)的
计算机等级四级机试试题及答案

xx年计算机等级四级机试试题及答案在计算机等级中,指的是全国计算机等级的最高级别,科目种类有:四级原理、四级计算机组成与接口、四级数据库原理、四级软件工程、四级计算机网络。
考试从科目中任意选取两个科目进展考试,同时通过成绩方为合格。
那么关于考试你准备好了吗,下面跟一起来看看最新的上机考试题吧!1./* 请编写一个函数changestr(char *s),函数的功能是把s 串中所有的字符前移一个位置,串中的第一个字符移到最后。
例如:s串中原有的字符串为:Mn.123xyZ,那么调用该函数后,s串中的内容为:n.123xyZM。
函数ReadWrite()实现从文件in3.dat中读取两个字符串,并调用函数 changeStr(),最后把结果输出到文件out3.dat中。
注意:局部源程序存放在文件PROG1.C中。
请勿改动主函数main()和其它函数中的任何内容,仅在函数changeStr()的花括号中填入你编写的假设干语句。
*/#includeint t, sum ;void countValue(){}void main(){t = sum = 0 ;countValue() ;printf("素数的个数=%d\n", t) ;printf("满足条件素数值的和=%d", sum) ;writeDAT() ;}writeDAT(){FILE *fp ;fp = fopen("OUT6.DAT", "w") ;fprintf(fp, "%d\n%d\n", t, sum) ;fclose(fp) ;}2./* 请编制函数CalValue(),其功能要求是:1.求出这个文件中共有多少个正整数totNum;2.求这些数中的十位数位置上的数字2、4和8的数的个数totCnt;以及不满足此条件的所有数的平均值totPjz,最后调用函数WriteDAT()把所求的结果输出到文件out7.DAT中。
全国计算机等级考试四级试题及(一)

2021 年全国计算机等级考试四级试题及答案 (一)一、选择题: ( 共 90 题, 分为 1 分题和 2 分题 , 总分值 120 分。
除标注2 分题外 , 其它均为 1 分题。
)(1)假设或非门的输入变量为 A 和 B, 输出变量为 Y, 那么 A 和 B 分别为下述哪一种情况时 , Y 才为 1?A)1,0 B) 0,1 C) 0,0 D) 1,1(2)存放器 A 存有带符号整数且只作算术移位 ,HA 和 LA 分别代表其位和最低位。
存放器 B 存有带符号整数且只作逻辑移位 ,HB 和LB 分别代表其位和最低位。
当存放器 A 与 B 都有左移位发生时 , 下述哪一个命题是准确的 ? (2 分)A) LA 与 LB 均成为 0 B) LA 与 LB 均成为 1C)LA 变成 0 但 LB 保持原值 D) LA 保持原值但 LB 的值改变(3)下述哪一种情况称为指令周期 ?A)取指令时间 B) 取操作数时间C)取指令和执行指令的时间 D) 存储操作结果的时间(4)设 S 是一个至少有两个元素的集合 , 且定义运算 X*Y=X适用于S 集中的所有元素 X 和 Y, 以下命题中哪一个命题必是真命题 ?Ⅰ. * 在 S 集中是可结合的Ⅱ. * 在 S 集中是可交换的Ⅲ. * 在 S 集中有单位元A)只有Ⅰ B) 只有Ⅱ C) Ⅰ和Ⅲ D) Ⅱ和Ⅲ(5)设 Z 是整数集 , 且设 f :Z×Z→Z, 对每一个∈ Z×Z, 有f()=m2n 。
集合 {0} 的原象为 (2 分)A){0} ×ZB)Z ×{0}C)({0} ×Z) ∩(Z ×{0})D)({0} ×Z) ∪(Z ×{0})(6)对于一个只有 3 个不同元素的集合 A来说 ,A 上的等价关系的总数为A)2 B) 5 C) 9 D)取决于元素是否为数值(7)设有命题:对于组成元素为集合的集合C,存有函数为 f :C→∪ C,使得对每一个S∈C,有f(S) ∈S。
全国计算机等级考试四级数据库工程师笔试试卷参考答案与分析4

参考答案与分析4一、选择题(1-20每题1分,21-30每题2分,共40分)1.C2.B3.D4.B5.D6.A7.D8.C9.A10.D11.B12.A13.D 14.C15.D16.D17.C18.D19.B20.B21.A22.C23.D24.C25.D26.C27.C28.A29.A30. C应用题答案(1)答案:数据库试运行(2)答案:【2】WHEN SaleUnitPrice>3000 THEN '高档商品'【3】WHEN SaleUintPrice BETWEEN 1000 AND 3000 THEN '中档商品'【4】WHEN SaleUnitPrice<1000 THEN '低档商品'【5】 Table_Goods a JOIN Table_GoodsClass b【6】a.GoodsID=b.GoodsClassID(3)答案:【7】S锁(4)答案:数据装载>执行UNDO>执行REDO操作(5)答案:【9】REVOKE UPDA TE(XH) ON STUD FROM U4(6)答案:【10】C*,COUNT(S*)【11】GROUP BY C*(7)答案:【12】文件初始设计时,为文件记录预留存储空间不足,预留的桶数过少【13】散列函数的均匀分布性不好(8)答案:【14】Connection【15】ConnectionString三、设计与应用题答案(1)答案:①建立E-R图② CREA TE TABLE 学生(学号 varchar(10) PRIMARY KEY,姓名 varchar(20) NOT NULL,性别 char(2) CHECK(性别 IN('男','女')),年龄 int)CREA TE TABLE 课程(课程号 varchar(10) PRIMARY KEY,课程号 varchar(20) NOT NULL,学时 int)CREA TE TABLE 选修(学号 varchar(10)课程号 varchar(10)成绩 intPRIMARY KEY(学号,课程号),FOREIGN KEY(学号) REFERENCES 学生(学号),FOREIGN KEY(课程号) REFERENCES 课程(课程号),)(2)答案:① SELECT Sname,SageFROM StudentWHERE Sage<ANY(&NBSP;SELECT&NBSP;SAGEFROM StudentWHERE Sdept='CS')AND Sdept<>'CS'② CREA TE VIEW IS_S1(Sno,Sname,Grade)ASSELECT Student.Sno,Sname,GradeFROM Student , SCWHERE Sdept='IS' ANDStudent.Sno=SC.Sno ANDo='1';③CREA TE TRIGGER Print_fAFTER INSERT ON StudentFOR EACH ROWAS BEGINIF(new.Grade<60) THENPRINT '不及格'END IFEND;答案解析一、选择题1.分析:新型数据库的一个主要特征是数据库技术与其他学科的技术内容相结合,多学科技术内容与数据库技术的有机结合,使数据库领域中新技术和新方法层出不穷。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
全国计算机等级考试四级笔试试题附答案全国计算机等级考试四级笔试试题附答案全国计算机等级考试,是经原国家教育委员会(现教育部)批准,由教育部考试中心主办,面向社会,用于考查应试人员计算机应用知识与技能的全国性计算机水平考试体系。
以下是为大家分享的全国计算机等级考试四级笔试试题附答案,供大家参考借鉴,欢迎浏览!一、选择题:(共70题,每题1分,满分70分。
其中1-55题为中文题,56-70题为英文题)。
下列各题A)、B)、C)、D)四个选项中,只有一个是正确的,请将正确选项涂写在答题卡相应位置上,答在试卷上不得分。
(1) 计算机控制器的核心是_____。
A) 时序产生器 B) 程序计数器 C) 操作控制器 D) 指令寄存器(2) 若一个子程序起始地址为2K,调用指令CALL的内存地址为K+2,则执行CALL指令所要执行指令的地址为_____。
A) 2K B) 2K+1 C) 2K-1 D) K+3(3) 2000年3月17日生效的标准GB18030-2000共收录汉字的数目为_____。
A) 6763个 B) 7360个 C) 17000个 D) 27000个(4) 栈S最多能容纳4个元素。
现在6个元素按A、B、C、D、E、F的顺序进栈,下列哪一个序列不是可能的出栈序列?_____。
A) A、B、C、D、E、F B) A、F、E、D 、C、BC) C、B、E、D、A、F D) C、D、B、F、 E、 A(5) 由四个结点可以构造出多少种不同的二叉树?_____。
A) 4 B) 5 C) 14 D) 15(6) 下图所示为一棵二叉排序树,其存储采取llink-rlink法。
现要删除指针q所指的结点,下面哪一个操作序列不能得到正确的结果?_____。
A) q^.info:=q^.llink^.info;q^.llink:=nil;B) q^.info:=q^.rlink^.llink^.info;q^.rlink^.llink:=nil;C) p^·llink:=q^·llink;p^.llink^.rlink:=q^.rlink;D) p^.llink:=q^.rllink;p^.llink^.rlink:=q^.llink;(7) 设散列表的当前状态如下:该散列表的负载因子约为_____。
A) 0.27 B) 0.42 C) 0.58 D) 0.73(8) 下面关于有向图的运算的叙述中,哪个(些)是正确的?_____。
Ⅰ. 求有向图结点的拓扑序列,其结果必定是唯一的Ⅱ. 求两个指向结点间的最短路径,其结果必定是唯一的Ⅲ. 求事件结点网络的关键路径,其结果必定是唯一的A) 只有Ⅰ B) Ⅰ和Ⅱ C) 都正确 D) 都不正确(9) 下列命题公式中哪个(些)为重言式?_____。
Ⅰ. ((p∨q)→r┌) →((p→r)∧(q→r))Ⅱ. (p→(q∨r)) →((p→q )∧(p→r))Ⅲ. ((p→q)∧(p→r)) →((p→r)Ⅳ. ((p∨q)∧(p→r))←(p→r)A) Ⅲ B) Ⅰ和Ⅲ C) Ⅰ和Ⅱ D) Ⅰ、Ⅱ、Ⅲ和Ⅳ(10) 设A、B、C、D为任意的集合,下面命题中为假的是_____。
A) A-B=B当且仅当A=B=?∩ B) 若A?B∧C?D,则(A?C) ? ( B?D)C) 若A?B∧C?D,则(A?C) ? ( B? D) D) A-B=A?~B(11) 设f:Z×Z→Z,f( )=n2k,其中Z为整数集合,下面哪些命题为真?_____。
Ⅰ. f是满射的Ⅱ. f是单射的Ⅲ. f-1(N)=Z×N(N为自然数集合)Ⅳ. f(z{1})=NA) Ⅰ和Ⅱ B) Ⅰ和Ⅳ C) Ⅰ和Ⅲ D) 全为真(12) 设N为自然数集合,在下面四种运算下不构成代数系统的是_____。
A) x*y=x+y-2-x-y B) x*y=x+y C) x*y=x-y D) x*y=|x|+|y|(13) 设七阶(即七个顶点)无向图G为k-正则图,下面列出k值中哪个(些)对于上述命题不成立?_____。
Ⅰ. k=4Ⅱ. k=5Ⅲ. k=6Ⅳ. k=7A) Ⅱ和Ⅳ B) 只有Ⅳ C) Ⅰ、Ⅱ和Ⅳ D) 全部(14) 下列命题中哪个一定为真?_____。
A) 若无向图G为极大平面图,则G的对偶图G`也是极大平面图B) G为非无向连通图当且仅当G的边连通度λ(G)=0C) 若能将无向图G的所有顶点排在G的同一个初级回路上,则G 为哈密顿图D) 若G为n阶m条边r个面的平面图,则n-m +r=2工程所需的最长时间。
(15) 下列关于网络操作系统和分布式操作系统的叙述中,哪个是正确的_____。
Ⅰ. 它们都通过消息实现通信Ⅱ. 它们都运行相同的操作系统Ⅲ. 它们都有网络的支持A) 只有Ⅰ B) 只有Ⅱ C) 只有Ⅲ D) 都不正确(16) 当系统正在处理某一中断时,若要防止同级中断的干扰,可采取下列哪一种手段?_____。
A) 中断优先级 B) 中断屏蔽 C) 中断嵌套 D) 中断响应(17) 下列关于进程控制块PCB的叙述中,哪些是正确的?_____。
Ⅰ. 系统利用PCB描述进程的基本静态特征Ⅱ. PCB可用于描述进程的运动变化过程Ⅲ. 一个进程唯一对应一个PCBA) Ⅰ和Ⅱ B) Ⅱ和Ⅲ C) Ⅰ和Ⅲ D) 全都正确(18) 在采用非抢占式进程调度方式下,下列哪一种情况不会引起进程切换___。
A) 一个更高优先级的进程就绪 B) 时间片到C) 进程运行完毕 D) 进程执行P操作(19) 在多道程序系统中,内存中既有操作系统,又有许多用户程序。
为使系统正确运行,要采取存储保护措施以防止_____。
Ⅰ.地址越界Ⅱ.操作越权A) 只有Ⅰ B) 只有Ⅱ C) Ⅰ和Ⅲ D) 都不正确(20) 在文件系统中,若要实现文件拷贝功能,可利用已有的系统调用,它们是_____。
A) create,open,read,write,closeB) create,open,read,write,C) create,open,read,writeD) create,read,write,close(21) 在多道程序系统中,多个进程可对共享设备进行同时访问。
因此,在实现时应考虑下列哪些问题?_____。
Ⅰ. 正确性Ⅱ. 系统性能Ⅲ. 合理性A) Ⅰ和Ⅱ B) Ⅱ和Ⅲ C) Ⅰ和Ⅲ D) 都正确(22) 下列关于UNIX的叙述中,不正确的.是_____。
A) UNIX的文件系统是树型结构的,便于管理和检索B) UNIX提供了丰富的软件工具,如实用程序、文本工具和开发工具C) UNIX把普通文件、目录文件和设备文件分别以不同方式进行管理D) UNIX是多用户、多任务的分时操作系统(23) 在UNIX系统中,组成UNIX执行环境的是一系列_____。
A) 环境变量 B) 管道 C) 特殊文件 D) 管理命令(24) 软件开发的结构化生命周期方法将软件生命周期划分成_____。
A) 计划阶段、开发阶段、运行阶段 B) 计划阶段、编程阶段、测试阶段C) 总体设计、详细设计、编程调试D) 需求分析、功能定义、系统设计(25) 数据流图是常用的进行软件需求分析的图形工具,其基本图形符号_____。
A) 输入、输出、外部实体和加工B) 变换、加工、数据流和存储C) 加工、数据流、数据存储和外部实体D) 变换、数据存储、加工和数据流(26) 判定表和判定树是数据流图中用以描述加工的工具,它常描述的对象是_____。
A) 逻辑判断 B) 层次分解 C) 操作条目 D) 组合条件(27) 模块独立性是软件模块化所提出的要求,衡量模块独立性的度量标准则是模块的_____。
A) 抽象和住处隐蔽 B) 局部化和封装化C) 内聚性和耦合性 D) 激活机制和控制方法(28) 软件设计一般分为总体设计和详细设计,它们之间的关系是_____。
A) 全局和局部 B) 抽象和具体C) 总体和层次 D) 功能和结构(29) 软件的复审是保证软件质量的必要手段,下述Ⅰ.软件的可追溯性Ⅱ.软件的可维护性Ⅲ.方案的可选择性Ⅳ.接口的明确性哪些是软件复审时所涉及的技术内容?_____。
A) Ⅰ和Ⅱ B) Ⅰ、Ⅱ和Ⅲ C) Ⅱ和Ⅲ D) 都正确(30) 原型化方法是软件开发中一类常用的方法,它与结构化方法相比较,更需要_____。
A) 明确的需求定义 B) 完整的生命周期C) 较长的开发时间 D) 熟练的开发人员(31) 软件测试是软件开发的重要环节,而进行软件测试的目的是_____。
A) 证明软件错误不存在 B) 证明软件错误的存在C) 改正程序所有的错误 D) 发现程序所有的错误(32) 软件维护是保证软件正常、有效运行的重要手段,而软件的下述特性:Ⅰ.可测试性Ⅱ.可理解性Ⅲ.可修改性Ⅳ.可移植性哪个(些)有利于软件的维护?_____。
A) 只有Ⅰ B) Ⅱ和Ⅲ C) Ⅰ、Ⅱ和Ⅲ D) 都有利(33) 数据库的三级模式结构由外模式、模式和内模式组成,它适合于哪个(些)类型的数据库?_____。
Ⅰ. 关系型数据库Ⅱ. 层次型数据库Ⅲ. 网状型数据库A) 只有Ⅰ B) Ⅰ和Ⅱ C) Ⅱ和Ⅲ D) 都适合(34) 设关系R和关系S的元素分别是3和4,关系T是R与S的笛卡尔积,即:T=R>×S,则关系T的元数是_____。
A) 7 B) 9 C) 12 D) 16(35) 在SQL语言中的表(Table)是数据库的_____。
A) 内模式 B) 模式 C) 外模式 D) 概念模式(36) 设有关系R和S,在下列的关系运算中,哪一种运算不要求:"R和S具有相同的元数,且它们对应属性的数据类型也相同"?_____。
A) R?S B) R∩S C) R-S D) R×S(37) 设有关系R(A,B,C,D),其函数依赖集F={A→B,A→C,BD},则关系R至多满足_____。
A) 1NF B) 2NF C) 3NF D) BCNF(38) 设有关系R(A,B,C),在下列的等式中,哪一个是不成立的?_____。
A) σA<2(πA, B(R))=πA, B(σA<2 (R))B) πA, C(σA<2(R))=σA<2(πA, C(R))C) πB, C(σA<2(R))=σA<2(πB,C(R))D) πA(πA, B (R))=πA (R)(39) 关系数据模型通常由三部分组成,它们是_____。
A) 数据结构,数据通信,关系操作B) 数据结构,关系操作,完整性约束C) 数据通信,关系操作,完整性约束D) 数据结构,数据通信,完整性约束(40) 在关系数据库设计中,对关系进行规范化处理,使关系达到一定的范式,例如达到3NF,这是哪个设计阶段的内容?_____。