Unit 4 - Practice Quiz

INT306 50 Questions
0 Correct 0 Wrong 50 Left
0/50

1 Which of the following data integrity rules states that no primary key attribute may be NULL?

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

2 In the context of Relational Database Design, what does the notation represent?

A. Multivalued Dependency
B. Transitive Dependency
C. Functional Dependency
D. Join Dependency

3 Which specific anomaly occurs when valid data cannot be recorded in the database because the primary key for that record is not yet available?

A. Update Anomaly
B. Deletion Anomaly
C. Insertion Anomaly
D. Modification Anomaly

4 A relation is said to be in First Normal Form (1NF) if and only if:

A. All attributes share a single primary key
B. There are no transitive dependencies
C. Every attribute contains only atomic (indivisible) values
D. There are no partial dependencies

5 Given a relation schema with the Functional Dependency set . Which axiom allows us to infer ?

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

6 Which Normal Form eliminates Partial Functional Dependencies?

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

7 Consider a relation where is the primary key. If there exists a dependency , which normal form is violated?

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

8 A functional dependency is considered trivial if:

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

9 Which of the following conditions must be met for a relation to be in Third Normal Form (3NF)?

A. It must be in BCNF
B. It must be in 2NF and contain no multivalued dependencies
C. It must be in 2NF and contain no transitive dependencies
D. It must allow repeating groups but no partial dependencies

10 In the context of 3NF, for a functional dependency (where is not in ) to be valid, which condition is sufficient?

A. is a prime attribute (part of a candidate key)
B. is a proper subset of a candidate key
C. is a composite attribute
D. is a non-prime attribute

11 Boyce-Codd Normal Form (BCNF) is considered stricter than 3NF because:

A. It does not allow multivalued dependencies
B. It requires every determinant to be a candidate key
C. It prohibits the right-hand side of a dependency from being a prime attribute
D. It requires relations to be in 4NF first

12 Identify the scenario where 3NF allows a dependency but BCNF does not.

A. A non-prime attribute determining another non-prime attribute
B. A proper subset of a candidate key determining a non-prime attribute
C. A non-key attribute determining a part of a candidate key
D. A candidate key determining a non-prime attribute

13 Which symbol is used to denote a Multivalued Dependency?

A.
B.
C.
D.

14 Fourth Normal Form (4NF) deals specifically with the elimination of:

A. Transitive dependencies
B. Partial dependencies
C. Non-trivial Multivalued dependencies
D. Join dependencies

15 If a relation scheme is decomposed into and , the decomposition is said to be lossless if:

A.
B.
C. or
D. contains the same number of tuples as

16 Referential integrity constraints are primarily used to maintain consistency between:

A. Two distinct databases
B. Two tables in a relationship
C. Two columns in the same table
D. The database and the application layer

17 Which of the following is true regarding Armstrong's Axiom of Reflexivity?

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

18 What is the closure of a set of attributes (denoted as )?

A. The set of all candidate keys in the relation
B. The set of all attributes that are functionally determined by
C. The set of all attributes that determine
D. The set of attributes required to normalize the relation

19 Consider relation with FDs: . What is the closure of ?

A.
B.
C.
D.

20 Which normal form protects against data inconsistency caused by Update Anomalies?

A. Only 1NF
B. Normalization in general (2NF, 3NF, etc.)
C. Unnormalized forms
D. Denormalization

21 A table is considered to be in BCNF if:

A. It is in 2NF and has no transitive dependencies
B. For every functional dependency , is a superkey
C. It has no composite primary keys
D. It is in 3NF and has no multivalued dependencies

22 What defines a Multivalued Dependency in a relation ?

A. For a value of , there is a specific single value of
B. For a value of , there is a set of values for , and this set is dependent on
C. For a value of , there is a set of values for , and this set is independent of
D. determines and determines

23 If a relation has only two attributes, it is always in at least which Normal Form?

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

24 Which of the following statements about Prime Attributes is true?

A. They are attributes that are not part of any candidate key
B. They are attributes that contain NULL values
C. They are attributes that are a member of some candidate key
D. They are always integer types

25 Consider the relation with and . This relation violates 3NF because of:

A. Partial dependency
B. Transitive dependency
C. Multivalued dependency
D. Cyclic dependency

26 The process of decomposing a relation with a Multivalued Dependency into two relations usually results in schemas:

A. and
B. and
C. and
D. and

27 Which rule allows us to combine and into ?

A. Decomposition Rule
B. Union Rule
C. Pseudo-transitivity Rule
D. Reflexivity Rule

28 A functional dependency is a full functional dependency if:

A. Removal of any attribute from means the dependency no longer holds
B. Removal of any attribute from means the dependency no longer holds
C. and are composite attributes
D. is the primary key

29 Which of the following implies that a relation is definitely in 1NF?

A. The relation has a composite primary key
B. The relation has no foreign keys
C. The intersection of any two rows is empty
D. All underlying domains contain atomic values only

30 If a relation is in BCNF, it is also automatically in:

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

31 What is the primary purpose of Domain Integrity constraints?

A. To ensure rows are unique
B. To ensure data values fall within a defined valid range or set
C. To link tables together
D. To prevent hardware failures

32 Consider with Key . Which dependency represents a Partial Dependency?

A.
B.
C.
D.

33 Armstrong's Axioms are said to be sound and complete. What does 'complete' mean?

A. The rules contain no errors
B. They can generate all implied functional dependencies from a set
C. They apply to all databases
D. They automatically normalize the database

34 Given . What is the Pseudo-transitivity rule application if we also know ?

A.
B.
C.
D.

35 A relation schema is in 4NF if it is in BCNF and:

A. Every join dependency is trivial
B. Every multivalued dependency is a functional dependency
C. For every non-trivial MVD , is a superkey
D. It contains no composite keys

36 Which of the following is NOT an Armstrong Axiom?

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

37 When converting a 1NF relation to 2NF, what is the primary action taken?

A. Remove columns with NULL values
B. Remove subsets of data that apply to multiple rows and place them in separate tables
C. Create separate tables for sets of values that apply to a part of the primary key
D. Combine tables to reduce joins

38 In a relation , if and are independent multivalued attributes, meaning and , which normal form is violated if all are in one table?

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

39 Which axiom states: If , then ?

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

40 If an attribute is a determinant in a dependency , it means:

A. determines the value of
B. determines the value of
C. and are logically unrelated
D. is a Foreign Key

41 Why is the dependency preserving property desirable in decomposition?

A. It reduces storage space
B. It ensures constraints can be checked without joining relations
C. It ensures the original relation can be reconstructed
D. It eliminates all null values

42 Which of the following is true about a trivial Multivalued Dependency ?

A. is the entire relation schema
B.
C. Both A and B
D. Neither A nor B

43 What is a 'Superkey'?

A. A minimal set of attributes that uniquely identifies a tuple
B. Any set of attributes that uniquely identifies a tuple
C. A foreign key that references a primary key
D. A key used for encryption

44 Data Integrity Rules are generally enforced by:

A. The Operating System
B. The Database Management System (DBMS)
C. The End User
D. The Network Layer

45 Consider . Functional Dependencies: and . The key is . Is this in BCNF?

A. Yes, because determinants are superkeys
B. No, because holds and Instructor is not a superkey
C. Yes, because all attributes are prime
D. No, because of multivalued dependency

46 Redundancy in a database often leads to:

A. Faster query processing
B. Reduced storage costs
C. Data inconsistencies
D. Higher security

47 Which operation is used to compute the closure of a set of functional dependencies ?

A. Applying Armstrong's Axioms repeatedly
B. Performing a Natural Join
C. Calculating the Cartesian Product
D. Dividing the relation

48 In the Decomposition Rule: If , then:

A. and
B. and
C.
D. only

49 A Candidate Key is:

A. A Superkey with no proper subset that is also a Superkey
B. Any set of attributes with the Unique constraint
C. The primary key chosen by the database administrator
D. A key that allows NULL values

50 If a relation is in 3NF but not BCNF, what specific structure must exist?

A. A non-trivial MVD
B. Two overlapping candidate keys
C. A partial dependency
D. All attributes must be non-prime