东北大学数据库期末试卷样例(共4页).doc
《东北大学数据库期末试卷样例(共4页).doc》由会员分享,可在线阅读,更多相关《东北大学数据库期末试卷样例(共4页).doc(4页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、精选优质文档-倾情为你奉上总分一二三四五六七 密封线学院班级学号姓名东北大学考试试卷(B 卷) 学年第 学期 课程名称:数据库原理A. If R has any descriptive attribute it can be moved to E1.B. The primary key of R is the primary key of E2.C. E1 can be a weak entity setD. E2 must totally participate in R8) In the following statements about weak entity set, (_c_) i
2、s incorrect. A. Weak entity set is an entity set that does not have a super key B. The existence of a weak entity set depends on the existence of an identifying entity setC. Weak entity set is an entity set that does not have a foreign keyD. Weak entity set must relate to the identifying entity set
3、via a total, many to one relationship set9) If and only if (_a_), K is a super key of R.A. KRB. RKC. K(K-R)D. (R-K)K 10) A decomposition of R into R1 and R2 is lossless join if (_a_).A. R1R2 R1 is in F+B. R1R2 = FC. R1R2 FD. R1-R2 R11) Database systems provide an abstract view of the data, which is
4、achieved through 3 level of abstraction: physical level, logical level, and (_View level_).2) r and s are two relations. Suppose a tuple occurs 3 times in r and 5 times in s, then it occurs (_3_) times in the execution result of the SQL statement “r intersect all s”.3) Relation r has 100 tuples, amo
5、ng these tuples, only 2 have null values on attribute A, the result of the SQL statement “select count(*), count(A) from r” is (_100,98_).4) The grant statement is used to confer authorization, and the (_revoke_) statement is used to reclaim authorization.5) Collection of operations that form a sing
6、le logical unit of work in database system is called (_事务_).1. Single Choice (10 points, 1 point each)1) Which one of the following is NOT TRUE for database language? (_c_)A. Relational Algebra is a procedural database language.B. SQL is a declarative database language.C. SQL is both a declarative d
7、atabase language and a pure database language.D. SQL is both data definition language and data manipulation language. 2) Which one of the following is NOT TRUE for relational model? (_b_) A. In a relation, a foreign key can be a subset of the primary key. B. In a relation, the primary key can be a s
8、ubset of a candidate key.C. In a relation, a super key must contain a candidate key.D. In a relation, a candidate key can include multiple attributes.3) Given relation schema R1(A,B,C,D) and R2(B,C), the schema of the relation as the result of R1R2 is (_d_).A. (A, R1.B, R1.C, R2.B, R2.C)B. (A)C. (A,
9、 B, C) D. (A, D)4) Which one of the following is NOT TRUE for SQL? (_c_)A. Views may be defined in terms of other views.B. Result of where clause predicate is treated as false if it evaluates to unknown.C. Set operations automatically eliminate duplicates.D. DELETE TABLE r deletes not only all tuple
10、s of r, but also the schema for r.5) “Unique ( (mike, Null), (mike, Null) )” is evaluated to (_a_)A. TRUEB. FALSEC. UNKNOWN.D. NULL6) In “CREATE TABLE” statement, unique( A1, A2, , Am) states that the attributes A1, A2, Am form a (_c_).A. Primary keyB. Foreign keyC. Candidate keyD. Relation schema 7
11、) If R is a one-to-many relationship set from entity set E1 to E2, Which one of the following is TRUE? (_b_)2. TRUE or FALSE (10 points, 2 points each)3. Answer the following questions (12 points, 3 points each)1) R1 =B, C, 200(R)2) R2 =B 2(R)3) R3 = R S 4) R4 = Asum(B) 1) Briefly describe what is r
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 东北大学 数据库 期末试卷
限制150内