chapter 2 quiz Flashcards

1
Q

Which of the following is true about a key?

A) It may be non-unique.
B) It may be unique.
C) It can only identify one row.
D) Both It may be unique and It may be non-unique
E) None of these

A

D) Both It may be unique and It may be non-unique

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

A(n) ________ is one or more columns of a relation that is used to identify a row.

A) key
B) attribute
C) Record
D) database

A

A) key

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

To be considered a composite key, a key must contain at least two attributes. (T/F)

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

A key must be unique.

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

If the condition exists such that knowing the value of attribute X determines the value of attribute Y, then attribute Y is functionally dependent on attribute X. (T/F)

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

The primary key is used to identify unique rows in a relation. (T/F)

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Ensuring that every value of a foreign key matches the value of the corresponding primary key is an example of a referential integrity constraint. (T/F)

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

While the relational model for databases appears to hold much promise, few commercial databases have implemented it. (T/F)

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

A primary key is ________.

A) a candidate key
B) used to represent columns in relationships
C) always automatically generated by the DBMS
D) comprised of exactly one attribute
E) not required to be unique

A

A) a candidate key

How well did you know this?
1
Not at all
2
3
4
5
Perfectly