INF 214 Quiz 1 Flashcards

1
Q

The candidate key determines all the other keys:

Why/why not?

A

True, The candidate key is one key and it is always unique; therefore everything else, the other keys, if any and all attributes can be derived from it.

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

Functional dependence implies a primary key / foreign key relationship: True

Why/why not?

A

Functional dependence looks at entity integrity as well as referential integrity. Referential integrity looks at PK/FK relationship.

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

A composite key has at least one attribute: False

Why/why not?

A

The word composite means “added together”, so it always has at least two attributes.

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

A superkey and composite key are synonyms: False

Why/why not?

A

A composite key consists of two or more keys, whereas a superkey can be either only one attribute or more.

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

A flag ensures NULL vales are “highlighted”: True

A

No answer

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

An Entity Relationship Diagram should avoid redundancy: True

Why/why not?

A

Although an ERD should avoid redundancy as much as possible, with referential integrity, you will have PK/FK redundancy which cannot be avoided.

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

Entity integrity looks closely at the primary key / foreign key relationship: False

Why/why not?

A

Entity integrity looks at the relationship of the PK with all the other attributes of that specific table.

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

You can use a secondary key in an entity if the table does not have a primary key: False

Why/why not?

A

All tables have PKs, however, if the PK is there, but unknown, you can search for the data with the secondary key.

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

A foreign key in another table can have NULL values: True

Why/why not?

A

A PK must have a unique value, but if used as a FK, it can be either a unique value or NULL.

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

A NULL value does not cause problems when using functions: False

Why/why not?

A

It creates problems when performing calculations and one value is NULL.

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