Unit 4 - Practice Quiz

INT306 60 Questions
0 Correct 0 Wrong 60 Left
0/60

1 Which data integrity rule states that no part of a primary key can be null?

data integrity rules Easy
A. Entity integrity
B. Referential integrity
C. Domain integrity
D. User-defined integrity

2 Which rule ensures that a foreign key value must match an existing primary key value in the referenced table, or be null?

data integrity rules Easy
A. Column integrity
B. Referential integrity
C. Domain integrity
D. Entity integrity

3 In the context of relational databases, what does the notation represent?

functional dependency Easy
A. is equal to
B. is a subset of
C. functionally determines
D. functionally determines

4 A functional dependency is considered trivial if:

functional dependency Easy
A. and are disjoint
B. is a subset of
C. is a subset of
D. is a primary key

5 According to Armstrong's axioms, if and , then . What is this rule called?

functional dependency Easy
A. Union rule
B. Augmentation rule
C. Reflexivity rule
D. Transitivity rule

6 What is the primary objective of database normalization?

need of normalization Easy
A. To combine all tables into one large table
B. To increase data redundancy
C. To minimize data redundancy and avoid anomalies
D. To speed up data retrieval by avoiding joins

7 Which of the following occurs when deleting a row in a table unintentionally causes the loss of other independent data?

need of normalization Easy
A. Insertion anomaly
B. Update anomaly
C. Deletion anomaly
D. Redundancy anomaly

8 A relation is in First Normal Form (1NF) if every attribute contains:

first normal form Easy
A. Only atomic (indivisible) values
B. Repeating groups
C. Composite values
D. Transitive dependencies

9 Which of the following is explicitly forbidden in First Normal Form (1NF)?

first normal form Easy
A. Null values
B. Primary keys
C. Foreign keys
D. Repeating groups or arrays

10 For a table to be in Second Normal Form (2NF), it must first be in 1NF and free of:

second normal form Easy
A. Transitive dependencies
B. Partial dependencies
C. Multivalued dependencies
D. Functional dependencies

11 When does a partial dependency occur?

second normal form Easy
A. When a non-prime attribute depends on only a part of a composite primary key
B. When a non-prime attribute depends on a non-prime attribute
C. When a prime attribute depends on a non-prime attribute
D. When a table has no primary key

12 A table is in Third Normal Form (3NF) if it is in 2NF and has no:

third normal form Easy
A. Partial dependencies
B. Primary keys
C. Atomic values
D. Transitive dependencies

13 In 3NF, for every non-trivial functional dependency , which of the following must be true?

third normal form Easy
A. is a superkey OR is a prime attribute
B. is a subset of
C. is a prime attribute AND is a superkey
D. is a foreign key

14 Boyce-Codd Normal Form (BCNF) is widely considered to be a stronger version of which normal form?

boyce codd normal form Easy
A. 3NF
B. 2NF
C. 1NF
D. 4NF

15 For a relation to be in BCNF, for every non-trivial functional dependency , what must be?

boyce codd normal form Easy
A. A superkey
B. A foreign key
C. A composite attribute
D. A prime attribute

16 Which normal form removes the 3NF allowance that the dependent attribute can be a prime attribute when the determinant is not a candidate key?

boyce codd normal form Easy
A. 1NF
B. 2NF
C. BCNF
D. 4NF

17 Which symbol is used to denote a multivalued dependency between attributes and ?

multivalued dependencies Easy
A.
B.
C.
D.

18 A multivalued dependency occurs when there are at least how many attributes in a relation?

multivalued dependencies Easy
A. Three
B. It depends on the primary key size
C. One
D. Two

19 A table is in Fourth Normal Form (4NF) if it is in BCNF and contains no:

fourth normal form Easy
A. Functional dependencies
B. Transitive dependencies
C. Partial dependencies
D. Multivalued dependencies

20 If a relation has two independent multivalued attributes (e.g., an employee's skills and their hobbies), putting them in the same table usually violates which normal form?

fourth normal form Easy
A. 3NF
B. 4NF
C. 1NF
D. 2NF

21 Which data integrity rule is violated if a foreign key in a child table references a primary key value in a parent table that does not exist?

data integrity rules Medium
A. Entity Integrity Rule
B. Key Integrity Rule
C. Domain Integrity Rule
D. Referential Integrity Rule

22 According to the Entity Integrity Rule, why must a primary key attribute never contain a NULL value?

data integrity rules Medium
A. Because a primary key is used to uniquely identify individual tuples, and NULL implies an unknown or unassigned identity.
B. Because NULL values consume too much storage space in the database block.
C. Because indexing structures like B-Trees crash when encountering NULL primary keys.
D. Because foreign keys cannot reference composite primary keys if any part is NULL.

23 Given a relation and the functional dependencies and , which of Armstrong's axioms logically implies that ?

functional dependency Medium
A. Augmentation Rule
B. Decomposition Rule
C. Transitivity Rule
D. Reflexivity Rule

24 If a functional dependency is considered 'trivial', what must be the relationship between sets of attributes and ?

functional dependency Medium
A. and together form a superkey
B. is a subset of
C. is a proper subset of
D. and have no attributes in common

25 Suppose holds in a relation . According to the Augmentation Rule, what additional functional dependency is guaranteed to hold for any attribute ?

functional dependency Medium
A.
B.
C.
D.

26 In an unnormalized database, updating a student's address might require changing multiple rows if the student is enrolled in multiple courses. What type of problem is this?

need of normalization Medium
A. Insertion anomaly
B. Referential anomaly
C. Deletion anomaly
D. Update anomaly

27 Which of the following best describes a 'deletion anomaly' in a relational database?

need of normalization Medium
A. Being unable to add a new record because it lacks a primary key value.
B. The unintentional loss of data about one entity when deleting a record about another entity.
C. A failure that occurs when attempting to delete a primary key referenced by a foreign key.
D. Data inconsistencies resulting from partially completed transaction rollbacks.

28 A relation has an attribute Skills that contains values like 'Java, Python, SQL' in a single tuple. To bring into First Normal Form (1NF), what must the designer do?

first normal form Medium
A. Remove all transitive dependencies from the relation.
B. Create a new primary key that includes the Skills attribute.
C. Ensure all non-key attributes are dependent on the primary key.
D. Modify the schema so that every attribute contains only atomic (indivisible) values.

29 Which of the following conditions is a strict requirement for a table to be in First Normal Form (1NF)?

first normal form Medium
A. All columns must have unique names and hold values of the same domain.
B. Every non-prime attribute must depend on the whole primary key.
C. There must be no partial functional dependencies.
D. There must be no composite candidate keys.

30 A relation has a composite primary key . A functional dependency exists. Which normal form is violated by this relation?

second normal form Medium
A. 3NF
B. BCNF
C. 2NF
D. 1NF

31 If a relation has a single-attribute primary key and is already in 1NF, what can be immediately concluded about its 2NF status?

second normal form Medium
A. It is in 2NF only if there are no transitive dependencies.
B. It is automatically in 2NF because partial dependencies are impossible.
C. It requires a check for multivalued dependencies to confirm 2NF status.
D. It automatically violates 2NF and must be decomposed.

32 A relation has primary key . The dependencies are and . To normalize this to 3NF, how should the relation be decomposed?

third normal form Medium
A. and
B. and
C. No decomposition is needed; it is already in 3NF.
D. and

33 According to the formal definition of 3NF, for every non-trivial functional dependency , either must be a superkey, OR which of the following must be true?

third normal form Medium
A. must be a prime attribute (part of a candidate key).
B. and must be disjoint sets.
C. must be functionally dependent on a non-prime attribute.
D. must be a single attribute.

34 A table Orders has attributes OrderID, CustomerID, and CustomerName. The functional dependencies are OrderID CustomerID, CustomerName and CustomerID CustomerName. What anomaly is most likely if this remains unnormalized?

third normal form Medium
A. Updating a customer's name requires changing multiple order records.
B. Querying the customer's name will return multiple different strings.
C. Deleting an order prevents the addition of new customers.
D. Inserting a new order will accidentally delete customer information.

35 What is the defining rule that distinguishes Boyce-Codd Normal Form (BCNF) from Third Normal Form (3NF)?

boyce codd normal form Medium
A. BCNF prohibits partial dependencies, whereas 3NF allows them.
B. BCNF eliminates multivalued dependencies, which 3NF ignores.
C. BCNF requires all attributes to be atomic.
D. BCNF does not allow the right side of a dependency to be a prime attribute unless the left side is a superkey.

36 Under which specific condition is a relation guaranteed to be in BCNF if it is already in 3NF?

boyce codd normal form Medium
A. If the relation has overlapping candidate keys.
B. If the relation has at least three attributes.
C. If the relation has only one candidate key.
D. If the relation contains no composite keys.

37 In a relation , a multivalued dependency exists. What does this imply about the relationship between attributes and ?

multivalued dependencies Medium
A. and are entirely independent of one another, but both are determined by .
B. is a subset of .
C. functionally determines .
D. and must together form a candidate key.

38 Suppose a Professor teaches multiple Courses and enjoys multiple Hobbies. If Courses and Hobbies are independent, representing this in a single table (Prof_ID, Course, Hobby) creates which issue?

multivalued dependencies Medium
A. A violation of the domain integrity rule
B. Partial dependency
C. Transitive dependency
D. Multivalued dependency resulting in a Cartesian product of courses and hobbies

39 A relation is said to be in Fourth Normal Form (4NF) if it is in BCNF and contains no:

fourth normal form Medium
A. Overlapping candidate keys
B. Non-trivial multivalued dependencies
C. Trivial multivalued dependencies
D. Non-trivial functional dependencies

40 To resolve a 4NF violation in the table where an employee has multiple independent skills and speaks multiple independent languages, how should be decomposed?

fourth normal form Medium
A. and
B. with a new surrogate primary key
C. and
D. and

41 Consider a relation schema and the set of functional dependencies . Which of the following sets correctly identifies ALL the candidate keys of ?

functional dependency Hard
A.
B.
C.
D.

42 Which of the following represents the canonical cover (minimal cover) for the set of functional dependencies ?

functional dependency Hard
A.
B.
C.
D.

43 Given the functional dependencies and for a relation . According to Armstrong's Axioms, which of the following is a valid logical implication?

functional dependency Hard
A.
B.
C.
D.

44 In a relational database, Table A and Table B have a cyclic referential integrity constraint (Table A references Table B, and Table B references Table A). Both tables are initially empty. Which of the following is the standard SQL mechanism to successfully insert the first row without violating data integrity rules?

data integrity rules Hard
A. Insert the rows using a FULL OUTER JOIN statement.
B. Use the ON UPDATE CASCADE clause on both foreign keys.
C. Use DEFERRED constraint checking during a transaction.
D. It is impossible; the schema must be redesigned to remove the cycle.

45 Consider a self-referencing table Employee(EmpID, Name, ManagerID) where ManagerID is a foreign key referencing EmpID. The foreign key is configured with ON DELETE CASCADE. If the database contains a strict hierarchy of 10 employees under one CEO, and the CEO's record (where ManagerID is NULL) is deleted, what is the outcome?

data integrity rules Hard
A. The database will throw a cycle violation error and abort the transaction.
B. All 11 records (CEO + 10 employees) will be deleted.
C. The deletion will fail due to entity integrity rules.
D. Only the CEO's record is deleted; the employees' ManagerID becomes NULL.

46 A relation is decomposed into and . Which of the following conditions strictly guarantees that this decomposition is a lossless-join decomposition?

need of normalization Hard
A. The union of attributes in and is equal to .
B. The functional dependency or is in .
C. The intersection of attributes in and is not empty.
D. and are in .

47 Which of the following scenarios best illustrates the presence of 'spurious tuples' caused by an inadequate database design?

need of normalization Hard
A. Failing to update all instances of a redundant value, leading to inconsistent data.
B. A query returning duplicate rows because DISTINCT was not used.
C. Joining two decomposed relations on an attribute that is not a candidate key in either relation.
D. Inserting a partial record into a relation containing multiple independent themes.

48 A relation has a primary key . Attribute contains a set of values (a repeating group). To convert to First Normal Form (1NF), a new tuple is created for every value in . What is the primary key of the resulting 1NF relation?

first normal form Hard
A. The composite key
B. The original key
C. A newly generated surrogate key is strictly required.
D. The composite key

49 Consider a relation schema with functional dependencies , , and . The only candidate key is . Which specific functional dependency causes a violation of Second Normal Form (2NF)?

second normal form Hard
A.
B. None, it is in 2NF.
C.
D.

50 If a relation is in First Normal Form (1NF) and its primary key consists of a single attribute, which of the following statements is unconditionally true?

second normal form Hard
A. The relation is automatically in Second Normal Form (2NF).
B. The relation contains no transitive dependencies.
C. The relation cannot have any multivalued dependencies.
D. The relation is automatically in Third Normal Form (3NF).

51 Consider the relation and the set of functional dependencies . What is the highest normal form satisfied by relation ?

third normal form Hard
A. 1NF
B. 2NF
C. BCNF
D. 3NF

52 In the context of the 3NF synthesis algorithm (Bernstein's algorithm), which of the following guarantees is provided that is NOT always possible when decomposing into Boyce-Codd Normal Form (BCNF)?

third normal form Hard
A. Dependency Preservation
B. Removal of multi-valued dependencies
C. Elimination of all update anomalies
D. Lossless Join

53 A relation is strictly in 3NF but not in BCNF. According to the definitions of normal forms, which of the following conditions MUST exist in ?

third normal form Hard
A. A non-prime attribute is partially dependent on a composite candidate key.
B. A non-prime attribute is functionally dependent on a non-superkey.
C. A non-trivial multivalued dependency exists.
D. A prime attribute is functionally dependent on a non-superkey.

54 Consider a relation with functional dependencies and . If we attempt to decompose to achieve BCNF, what is the primary consequence of this decomposition?

boyce codd normal form Hard
A. The resulting tables will violate 4NF.
B. The functional dependency will be lost.
C. The decomposition will result in a lossy join.
D. The functional dependency will be lost.

55 Let be a relation with exactly one candidate key, . Which of the following functional dependencies would NOT cause a violation of BCNF?

boyce codd normal form Hard
A.
B.
C.
D.

56 Which of the following statements about relations with exactly two attributes is strictly mathematically proven?

boyce codd normal form Hard
A. A relation with exactly two attributes can violate BCNF if there is a transitive dependency.
B. Any relation with exactly two attributes is always in BCNF.
C. A relation with two attributes is in BCNF only if both attributes form the primary key.
D. A relation with exactly two attributes may be in 3NF but fail BCNF.

57 Given a relation schema . If the multivalued dependency holds, what other dependency is logically guaranteed to hold according to the complementation rule of multivalued dependencies?

multivalued dependencies Hard
A.
B.
C.
D.

58 A multivalued dependency in a relation is defined as 'trivial' if and only if which of the following conditions is met?

multivalued dependencies Hard
A. is a candidate key of
B. or
C. is a single attribute
D. and

59 Consider a relation CourseInfo(Course, Teacher, Book). A course can have multiple teachers and multiple recommended books. Teachers and books are completely independent of each other for a given course. The relation currently has no functional dependencies. Which normal form does CourseInfo violate?

fourth normal form Hard
A. Third Normal Form (3NF)
B. Boyce-Codd Normal Form (BCNF)
C. Second Normal Form (2NF)
D. Fourth Normal Form (4NF)

60 Let be a relation schema that is certified to be in Fourth Normal Form (4NF). Which of the following MUST necessarily be true regarding ?

fourth normal form Hard
A. cannot be decomposed any further without losing data.
B. For every non-trivial functional dependency , is a superkey.
C. has exactly one candidate key.
D. There are no functional dependencies of any kind in .