2014数据库系统期末试题及答案

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

华南农业大学期末考试试卷(A卷)

2014-2015学年第一学期考试科目:数据库系统

考试类型:闭卷考试时间:120 分钟

学号姓名年级专业

Question 1: true-false question (15 points) For each of the following statements, indicate whether it is TRUE or FALSE (Using √for TRUE and ×for FALSE). You will get 1 point for each correct answer, -0.5 point for each incorrect answer, and 0 point for each answer left blank. Be sure to write your answer in the answer sheet.

1. A primary key is a field (or group of fields) that uniquely describes each record in the database.

2.Data redundancy improves the integrity of a database.

3.SQL is the language used by relational databases to create objects and to manipulate and retrieve

data.

4. A relational database management system does not include tools for backing up & restoring

databases.

5.An attribute is also known as a row in most databases.

6.An association between entities is known as a relationship.

7.Integrity constraints limit the number of entities that can be placed in a table or database.

8.The Entity-Relationship data model is often used in the physical design phase.

9.The concept “relation” in relation model is exactly the same as the concept “relationship” in ER

model.

10.Most relationship sets in a database system involves two entity sets.

11.The closure of an attribute set contains that attribute set.

12.Lossless decomposition is necessary in a decomposition algorithm.

13.If A →B and C →D hold, then AC →BD also holds.

14.It is not necessary that a legal schedule preserves the order in which the instructions appear in

each individual transaction.

15.Update operations in database must be written into log before updating database.

Question 2 single-choice question (2 points for each problem, 30 points in total)

1. is the only one incorrect description from the followings:

A. R=(R-S)∪(R∩S)

B. R-S=R-(R∩S)

C. R∩S=S-(R-S)

D. R∩S=S-(S-R)

2. Choose the only one correct expression from the followings: _ ______. A. ( some) in B. (= all) not in C. exists r r Ø D. X-Y Ø X Y

3. of the following four expressions of relational algebra is not equivalent to the other three? They are all based on the relations R(A,B) and S(B,C).

A.()S R B A <>,∏

B. ()S R B ∏<>

C. ()S R B R A ⨯∏.,

D.()()()S R R B A ∏⨯∏⋂

4. In the following, assume a is an attribute of some character-string type, e.g. CHAR(10), and that it may be NULL.

Q1: SELECT * FROM R WHERE a IS NULL;

Q2: SELECT * FROM R WHERE a NOT LIKE '%';

A.Q1 and Q2 produce the same answer.

B. The answer to Q1 is always contained in the answer to Q2.

C. The answer to Q2 is always contained in the answer to Q1.

D. Q1 and Q2 produce different answers.

5. The Entity-Relationship data model is

A. DBMS dependent

B. DBMS independent

C. both A and B

D. neither A nor B

6. In SQL, an UPDATE statement without a WHERE clause:

A. Updates every row in a table.

B. Updates no rows in a table.

C. Updates every column in a table.

D. Results in a Cartesian product.

相关文档
最新文档