Unit 4 - Practice Quiz

INT306

1 Which of the following is the primary goal of Normalization in a Relational Database?

A. To maximize data redundancy
B. To minimize data redundancy and insertion/update/deletion anomalies
C. To create as many tables as possible
D. To ensure query performance is always maximized regardless of disk space

2 If an attribute of a composite primary key determines a non-prime attribute, which normalization form is violated?

A. 1NF
B. 2NF
C. 3NF
D. BCNF

3 Which normal form deals with the atomicity of domain values?

A. First Normal Form (1NF)
B. Second Normal Form (2NF)
C. Third Normal Form (3NF)
D. Boyce-Codd Normal Form (BCNF)

4 A functional dependency is considered trivial if:

A.
B.
C.
D. is a primary key

5 Which of the following statements about BCNF is true?

A. Every BCNF relation is in 3NF
B. Every 3NF relation is in BCNF
C. BCNF allows transitive dependencies
D. BCNF allows partial dependencies

6 In the context of Armstrong's Axioms, if and , then . This rule is known as:

A. Reflexivity
B. Augmentation
C. Transitivity
D. Union

7 A relation is in 3NF if it is in 2NF and:

A. It has no partial dependencies
B. It has no transitive dependencies for non-prime attributes
C. It contains no multivalued dependencies
D. Every determinant is a candidate key

8 Consider relation with FDs: , . The key is . Which normal form is this relation currently in?

A. 1NF
B. 2NF
C. 3NF
D. BCNF

9 Which normal form addresses the issue of Multivalued Dependencies (MVD)?

A. 3NF
B. BCNF
C. 4NF
D. 5NF

10 Fifth Normal Form (5NF) deals with which of the following?

A. Functional Dependencies
B. Multivalued Dependencies
C. Join Dependencies
D. Domain-Key Normal Form

11 What is a spurious tuple?

A. A tuple that contains NULL values
B. A tuple created by joining two tables that does not represent a valid fact in the real world
C. A duplicate tuple in a relation
D. A tuple that violates domain constraints

12 Which integrity rule states that no primary key attribute can be NULL?

A. Referential Integrity
B. Entity Integrity
C. Domain Integrity
D. Key Integrity

13 A functional dependency holds in a relation if:

A. For every tuple, the value of is unique
B. Whenever two tuples agree on , they also agree on
C. Whenever two tuples agree on , they also agree on
D. is a subset of

14 Which of the following is NOT a pitfall in Relational Database Design?

A. Redundancy
B. Update Anomalies
C. Loss of functional dependencies during decomposition
D. Lossless Join Decomposition

15 Given the relation and FDs: , , and . What is the closure of attributes ?

A.
B.
C.
D.

16 In BCNF, for every non-trivial functional dependency , must be:

A. A composite key
B. A super key
C. A partial key
D. A foreign key

17 Which symbol represents a Multivalued Dependency?

A.
B.
C.
D.

18 A decomposition of a relation into and is lossless if:

A.
B.
C. or
D. contains more tuples than

19 If a relation is in 3NF but not in BCNF, what specific condition exists?

A. There is a partial dependency
B. There is a transitive dependency involving non-prime attributes
C. There is a non-trivial dependency where is not a super key and is a prime attribute
D. There are repeating groups

20 Referential Integrity is essentially ensuring:

A. That every primary key is unique
B. That foreign key values match primary key values in the related table or are NULL
C. That data types match in columns
D. That no transitive dependencies exist

21 Which of the following is an Update Anomaly?

A. Ideally, data should be updated in one place, but due to redundancy, multiple rows must be updated to maintain consistency
B. Unable to insert data because a primary key value is missing
C. Losing legitimate data when deleting a row
D. Creating spurious tuples during join

22 Data Integrity Rules primarily ensure:

A. Data security and encryption
B. Data accuracy and consistency
C. Data compression
D. Fast data retrieval

23 A relation scheme is in 2NF. It has a composite Primary Key and a non-prime attribute . Which of the following dependencies would violate 2NF?

A.
B.
C.
D.

24 Armstrong's axiom of Augmentation states that if , then:

A.
B.
C.
D.

25 A table containing a column with a list of comma-separated phone numbers violates which form?

A. 1NF
B. 2NF
C. 3NF
D. 4NF

26 Which statement implies that a relation is definitely in BCNF?

A. It is in 3NF and has no composite candidate keys
B. It is in 3NF and has at least one foreign key
C. It has only one candidate key
D. It is a binary relation (has only 2 attributes)

27 In the context of 4NF, a multivalued dependency is trivial if:

A. or is the whole relation scheme
B. is a proper subset of
C. is not empty
D. is a single attribute

28 What is the result of decomposing a relation into using 5NF?

A. Elimination of all functional dependencies
B. Elimination of all join dependencies not implied by candidate keys
C. Removal of primary keys
D. Creation of a universal relation

29 Which of the following describes a Deletion Anomaly?

A. Data is lost because the database crashes
B. When a record is deleted, other useful data stored in that record is unintentionally lost
C. A record cannot be deleted because of a foreign key constraint
D. Deleting a record takes too much time

30 An attribute is called a prime attribute if:

A. It is unique for every tuple
B. It is a member of some candidate key
C. It is an integer
D. It is a foreign key

31 Dependency Preservation in normalization means:

A. We can enforce all original FDs by examining the individual decomposed relations without joining them
B. All dependencies are removed
C. Only primary key dependencies are kept
D. Dependencies are stored in a separate table

32 If a relation has no functional dependencies where is not a super key, it is in:

A. 2NF
B. 3NF
C. BCNF
D. 1NF

33 Which of the following is FALSE regarding Armstrong's Axioms?

A. They are sound (do not generate incorrect FDs)
B. They are complete (can generate all implied FDs)
C. Pseudo-transitivity is a derived rule
D. Reflexivity only applies to primary keys

34 Consider with FDs: , , . What is the candidate key?

A.
B.
C.
D.

35 The concept of Join Dependency (JD) is denoted as:

A.
B.
C.
D.

36 Which normal form allows relation decomposition to be always lossless and dependency preserving?

A. BCNF
B. 3NF
C. 4NF
D. 5NF

37 A relation schema is defined to be in Fourth Normal Form (4NF) if, for every non-trivial multivalued dependency :

A. is a super key of
B. is a prime attribute
C. is a subset of
D. determines functionally

38 In the context of 4NF, MVDs arise when:

A. Two or more independent multivalued facts are stored in the same table about the same entity
B. A transitive dependency exists
C. A partial dependency exists
D. The primary key is simple

39 Which of the following is a symptom of a Lossy (or Loss-full) Decomposition?

A.
B. (contains spurious tuples)
C.
D. The table size decreases

40 The rule allows us to determine if we know:

A. Any value of
B. The value of
C. The value of a third attribute
D. The count of tuples

41 If a relation is in BCNF, does it guarantee that it is free of all anomalies?

A. Yes, absolutely
B. No, it might still have anomalies due to MVDs or JDs
C. No, because BCNF allows partial dependencies
D. Yes, because BCNF is the highest normal form

42 The property that guarantees is:

A. Dependency Preservation
B. Lossless Join Property
C. Atomicity
D. Isolation

43 Consider a relation Enrollment(Student, Course, Instructor). A student takes a course, and a course can be taught by multiple instructors, but a student is assigned one specific instructor for a course. FDs: . If we also have . Which normal form is violated?

A. 3NF
B. BCNF
C. 2NF
D. 1NF

44 When checking for 2NF, we primarily look at:

A. Relations with composite primary keys
B. Relations with single-attribute primary keys
C. Relations with no primary keys
D. Relations with only foreign keys

45 Which of the following describes the Union rule of Armstrong's Axioms?

A. If and , then
B. If and , then
C. If , then
D. If , then

46 What is the canonical cover of a set of functional dependencies?

A. A simplified set of FDs that is equivalent to the original set, free of extraneous attributes and redundant FDs
B. The set of all possible FDs implied by the original set
C. The set of all super keys
D. The set of prime attributes

47 Which normal form deals with cyclic dependencies among three or more attributes in a composite key?

A. 2NF
B. 3NF
C. 4NF
D. 5NF

48 Domain constraints specify:

A. Relationships between tables
B. Uniqueness of rows
C. Valid set of values for an attribute
D. Functional dependencies

49 If we have a relation and , this implies:

A.
B.
C.
D. is definitely true

50 Pitfalls in database design such as redundancy lead to inconsistency primarily because:

A. Storage is expensive
B. It is difficult to maintain the same value for a data item in multiple places during updates
C. SQL queries become too short
D. Primary keys cannot be defined