Mid-Term Questions Flashcards

1
Q

The only serious problem with file-processing systems instead of relational databases is the amount of wasted storage space on disk. (T/F)

A

F

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

If one database table (say, registration record) contains a student’s last name and address and another table (say, dorm allocation record) also contains a student’s last name and address, we have the potential for data integrity problems (i.e., we run into the possibility of having insert, update and delete and delete anomalies).
(T/F)

A

T

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

If one database table (say, registration record) contains a student’s last name and address and another table (say, dorm allocation record) also contains a student’s last name and address, we have the potential for data integrity problems (i.e., we run into the possibility of having insert, update and delete and delete anomalies).

Data integrity as described above is an issue with database systems only - if we had used a file processing system instead, we would never have this problem. (T/F)

A

F

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

[Delete] anomalies are caused when you can’t put a new row in a table unless you have some totally “irrelevant” data available (e.g., you cannot put an individual’s data into a “Borrower” table unless you know his/her current blood pressure). (T/F)

A

F

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

According to the relational database model, undesirable table can be changed into two or more desirable tables through a process called ‘modularization’. (T/F)

A

F

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

A key benefit of the relational database model was that it provided a standardized (e.g., non file-format dependant) way for specialists to structure and process a database system. (T/F)

A

T

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

In a relation, the columns of the relation fields or attributes, and the rows of the relation contain records for particular entities in the business environment. (T/F)

A

T

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

A single database table could have multiple candidate keys. (T/F)

A

T

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

A “first-class entity” in a UML-style E-R diagram (i.e., a “box” that [does not] represent a relationship between two other entities) always maps on to a database table in the final schema for the database. (T/F)

A

T

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

In an E-R diagram, a “box” showing a relationship [with attributes] always maps on to a database table in the final schema for the database. (T/F)

A

T

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

Relationships are always of one-many cardinality. (T/F)

A

F

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

A table is in First Normal Form id also always in Second Normal Form.

A

F

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

The concept of inheritance is ell suited to the nature of a relational data model as well as that of an object-oriented data model. (T/F)

A

F

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

In a relation, Attribute Y is [functionally dependent] on attribute X if the value of attribute X determines the value of Y. (T/F)

A

T

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

In the functional dependency shown as A -> B, B is the determinant. (T/F)

A

F

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

A transaction processing system must [not]:

i. Be highly available
ii. Have a good response time
iii. Have low “down time”
iv. Be reliable
v. Be geographically limited

A

v. Be geographically limited

17
Q

Which of the following is known to be true from the functional dependency shown as (A,B) -> (C,D)?

i. A is the determinant of C
ii. A and B together are determine by C and D together
iii. A and B together determine D
iv. C and D together determine A
v. A determine B

A

iii. A and B together determine D

18
Q

Which of the following is known to be true from the functional dependency shown as A -> (X, Y)?

i. A determines X
ii. A determines Y
iii. A is a determinant
iv. X and Y are functionally dependent on A
v. All of the above

A

v. All of the above

19
Q

Which of the following is NOT a requirement for 1NF?

i. Cells must contain single values
ii. All entries in a column must be of the same kind
iii. Not two rows may be identical
iv. Rows must be ordered by the value of the key
v. The order of the columns is significant

A

iv. Rows must be ordered by the value of the key

20
Q

A relation is in 2NF if it is in 1NF and all its non-key attributes are:

i. Dependant on part of the key
ii. Dependant on [all] of the key
iii. Independent of the key
iv. Independent of each other
v. Independent of any other relation

A

ii. Dependant on [all] of the key

21
Q

Which if the following is a requirement is a requirement of 3NF?

i. Must contain a partial dependency
ii. Must contain a composite key
iii. Must contain no partial dependencies
iv. Must contain no transitive dependencies
v. Must contain a multi-valued dependency

A

iv. Must contain no transitive dependencies

22
Q

A “candidate key” is:

i. A primary key.
ii. Any group of attributes that are a determinant.
iii. Functionally dependent on the non-key attributes.
iv. An attribute or a group of attributes that can be the key.
v. The primary key selected to be the key of a relation.

A

iv. An attribute or a group of attributes that can be the key.

23
Q

A relation is in Boyce-Codd normal form if it is in 3NF and:

i. Every determinant is a full candidate key.
ii. Every determinant is the full one and only primary key.
iii. Every attribute is a candidate key.
iv. There is more than one candidate key.
v. There is more than on primary key.

A

i. Every determinant is a full candidate key.

24
Q

A relation is in fourth normal form if it is in BCNF and it has no:

i. Transitive dependencies
ii. Multi-valued dependencies
iii. Partial dependencies
iv. Deletion dependencies
v. Referential integrity conflicts

A

ii. Multi-valued dependencies

25
The anomalies addressed by moving from BCNF to 4NF generally deal with: i. Excessive updates and redundancy of data for each entity. ii. Inability to uniquely identify an entity. iii. Inability to reconstruct relations once they have been decomposed. iv. Creation of identical rows in a relation v. Elimination of functional dependencies.
i. Excessive updates and redundancy of data for each entity.