版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、 双(原据数库理 卷试)语数据库原理(双语)考试试卷(第一套) 课程号 5807605040 考试时间 100 分钟 适用专业年级(方计算机科学与技术2007级 向): 闭卷笔试 考试方式及要求: 总分五四题 号 三二一 得 分 阅卷人 分,将答案填在下表内)分,共一、单项选择题(每题240 10 2 1 7 8 6 5 9 4 3 题号 答案 20 17 18 14 15 16 19 11 12 13 题号 答案1. Physical data independence(物理数据独立性)( ) A Allows us to access(访问) the physical data indep
2、endently(独立地) from all applications(应用程序) B Allows us to rewrite(重写) the queries(查询) on the database without affecting(影响) the physical data C Allows us to physically reorganize(重新组织) the data in the database without affecting the applications running on the database D All of the above 2. Which of t
3、he following is NOT an advantage(优点) of database ) (systems? A Redundant data(冗余的数据) B Program-data independence(应用程序与数据相互独立) C Better data quality (更好的数据质量) D Reduced program maintenance(减少应用程序维护) 3. Which of the following is an example of a database integrity constraint(完整性约束条件)? ( ) A The grade a
4、ssigned(分配) to a student for a course must be either an A, B, C, D or F B Every course must have a unique(唯一的) value for its course number C The name of any student must be less than 30 characters(字母) in length D All of the above 4. Customers(顾客), cars, and parts(零件) are examples of ( ) A entities(实
5、体) Battributes(属性) Crelations Drelationships(联系) 5. A(n) _ is the relationship between a weak entity type and its owner. ( ) A weak relationship B identifying(识别) relationship C non-identifying(非识别) relationship D owner relationship 6. The relational data model(关系数据模型) consists of(由组成) ) ()? 组件which
6、 components(A Data structure(数据结构) B Data manipulation(数据操作) C Data integrity (完整性约束) D All of the above 7. A primary key that consists of more than one attribute is called a( ) A foreign key(外键) B composite key(复合键) C multivalued key(多值键) D candidate key(候选键) 8. A rule that states that each foreign
7、 key value must match a primary key value in the other relation is called the( ) A referential integrity constraint(参照完整性约束) B entity integrity constraint(实体完整性约束) C domain integrity constraint(域完整性约束) D null constraint(空值约束) 9. Which of the following are anomalies(异常) that can be caused by redundan
8、cies(冗余) in tables? ( ) A insertion(插入) B deletion(删除) (修改) modificationCD all of the above 10. A candidate key(候选键) must satisfy(满足) all of the following conditions EXCEPT(除了)( ) A the key must uniquely(唯一地) identify(识别) the row B the key must indicate the rows position in the table(表明行在表中的位置) C th
9、e key must be nonredundant(非冗余的) D each nonprime attribute(非主属性) is functionally dependent upon(函数依赖于) it. 11. The intersection(交集) of two relations R(A,B,C) and S(A,B,C) can be computed by( ) A RS B R(RS) C RS D all of the above 12. This operation is commutative(可交换的) ( ) A Union(并) B Intersection(
10、交) ) 笛卡尔积 Cartesian product(CD all of the above 13. What does the following SQL statement do? ( ) Alter Table Customer_T Add (Type Varchar (2); A Alters the Customer_T table to accept Type 2 Varchars B Alters the Customer_T table to be a Type 2 Varchar C Alters the Customer_T table, and adds a field
11、 called Type D Alters the Customer_T table by adding a 2-byte field called Varchar 14. What does the following SQL statement do? ( ) Update Product_T Set Unit_Price = 775 Where Product_ID = 7 A Changes the price of a unit called Product_T to 7 B Changes the unit price of Product 7 to 775 C Changes t
12、he length of the Unit_Price field to 775 D Updates the Product_T table to have a unit price of 775 15. Assume(假设) we have executed(执行) the following CREATE TABLE statement: CREATE TABLE Emp ( Ssn CHAR(9) Primary Key; SuperSsn CHAR(9) REFERENCES EMP(Ssn) ; Which of the following could be used to inse
13、rt(插入) the first row into the Emp table? ( ) ) INSERT INTO Emp(Ssn) VALUES (123456789 AB INSERT INTO Emp(Ssn, SuperSsn) VALUES (123456789, 987654321) C INSERT INTO Emp(SuperSsn) VALUES (987654321) D all of the above 16. _ is a set of commands(命令) used to update and query a database. ( ) A DML B DDL
14、C DCL D DPL 17. In an SQL statement, which of the following finds all groups meeting stated conditions(符合条件的组)? ( ) A Select B Where C Having D Find 18. To eliminate duplicate rows(消除重复行) in a query, the _ qualifier(限定符) is used in the SQL Select command. ( ) A alter distinct BC check D specific 19.
15、 _ takes a value of true if a subquery(子查询) returns an intermediate results(中间结果) table which contains(包含) one or more rows. ( ) A In B Having C Exists D Extents 20. A _is a temporary table(临时表) used in the FROM clause(子句) of an SQL query. ( ) A correlated subquery(相关子查询) B derived table(导出表) C view
16、 table(视图表) D None of the above 二、判断题(每题1分,共10分,正确的填T,错误的填F,将答案填在下表内) 题1 2 3 4 5 6 7 8 9 号答 案10 1. We can define(定义) a relation schema(关系模式) R(A1, A2, A3) where A1 is the primary key(主键) and A3 is a foreign key(外键) that refers to(参考) R.( ) 2. A constraint(约束) is a rule in a database system that can
17、be violated(违反) by users. ( ) 3. The E-R model is used to construct(构建) a conceptual model(概念模型). ( ) 4. The entity integrity rule(实体完整性规则)states that a primary key attribute can be null. ( ) 5. The attribute value in a tuple(元组) that makes up(组成) a foreign key(外键) can be null. ( ) 6. A composite ke
18、y(复合键) consists of only one attribute. ( ) 7. One property(特征) of a relation is that each attribute within a relation has a unique(唯一的) name. ( ) 8. The columns of a relation can be interchanged(交换) without changing the meaning or use of the relation. ( ) a table from 9. The DELETE SQL command is us
19、ed to remove(去掉) )the database. ( )( Subqueries10. (子查询) can only be used in the WHERE clause. 15分)三、操作题(每题3分,共 现有关系数据库模式如下: )学生(学号,姓名,性别,专业,年龄 )(课程课程号,名称,学分 学号,课程号,分数)学习( 小题。5实现3语言用关系代数表达式实现12小题,用T-SQL 查询“学生”关系学生中都有哪些专业。1. 分的所有学生的学号、姓名、90检索“数据库原理”课程成绩高于2. 专业和分数。 3. 检索没有选修课程号为“C135”课程的学生信息,包括学号,姓名和专业。 4. 从“学生”关系中删除成绩出现过0分的所有学生信息。 5. 定义“英语”专业学生所学课程的信息视图English_View,包括学号、姓名、课程
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 工抵房购房定金合同范本
- 2025年阿里货运从业资格证考题
- 2025年北海货运上岗证考试多少道题
- 2025年渭南货运资格证考试题答案
- 养殖场科研服务租赁合同
- 石油开采水暖系统安装协议
- 体育场馆压桩施工合同
- 仓储中心清洁保障协议
- 居民区域净水机租赁合同协议书
- 风电场压桩施工合同
- 幼儿园天气播报PPT
- 化工传递过程基础全部
- WS 400-2023 血液运输标准
- 教师教姿教态课件
- 2023年苏州外国语学校自主招生英语试卷
- 村干部法律培训课件
- 教育戏剧:实践指南与课程计划
- 2023-2024学年北京市丰台区数学四上期末达标测试试题含答案
- 纤维支气管镜检查术护理
- 血液透析中监护及护理课件
- 2023年标签管理规范模板
评论
0/150
提交评论