Free Practice Quiz Question List

5 Normalization and Data Integrity Online Quiz Questions

Use this free practice quiz with 20 questions to review 5 Normalization and Data Integrity, test your knowledge, and prepare for your next test or exam.

20 questions
01
True or false
1 point

A table can be in first normal form even if it still repeats order dates across multiple rows.

  1. A

    True

  2. B

    False

02
Choose one
1 point

A relation is in 1NF, and all its candidate keys contain a single attribute. What follows about its second normal form status?

  1. A

    It has no functional dependencies.

  2. B

    It is automatically in 2NF.

  3. C

    Every attribute is a primary key.

  4. D

    It has no foreign keys.

03
Written response
1 point

In a functional dependency, what is the database term for the attribute set that determines another attribute set?

04
Choose one
1 point

A database design prevents staff from recording a new supplier until they also add a product supplied by that supplier. Which problem does this illustrate?

  1. A

    Update anomaly

  2. B

    Insertion anomaly

  3. C

    Deletion anomaly

  4. D

    Partial dependency

05
Fill in the blank
1 point

In an OrderItems table, the combination of OrderID and ProductID identifies each row. This is a .

06
Choose all
1 point

Select all statements that accurately describe database constraints.

  1. A

    A primary key identifies rows.

  2. B

    A foreign key ensures that every referenced value is non-null.

  3. C

    A foreign key ensures that references point to existing rows.

  4. D

    A UNIQUE constraint allows duplicate values by design.

  5. E

    NOT NULL enforces alternate uniqueness rules.

07
Written response
1 point

In an OrderLine table keyed by OrderID and ProductID, ProductID alone determines ProductName. What is this type of dependency called?

08
True or false
1 point

If every cell contains a single value, then the table cannot have any redundant data.

  1. A

    True

  2. B

    False

09
Fill in the blank
1 point

To avoid repeating supplier names for products from the same supplier, store SupplierID and SupplierName in a separate relation.

10
Choose one
1 point

When deciding whether a product determines its supplier, what should guide the functional dependency?

  1. A

    Infer dependencies only from repeated patterns in a small sample.

  2. B

    Treat every attribute as determining every other attribute.

  3. C

    Use rules that describe the real-world situation.

  4. D

    Assume dependencies are irrelevant if a table has a primary key.

11
Choose all
1 point

When decomposing a relation, select all design properties that should be checked.

  1. A

    The decomposed tables can be joined without losing or inventing information.

  2. B

    Every original attribute must appear in every resulting table.

  3. C

    All functional dependencies must be discarded.

  4. D

    Important dependencies can still be enforced where needed.

12
Open ended
1 point

An OrderLine relation has attributes OrderID, ProductID, OrderDate, ProductName, SupplierID, SupplierName, and Quantity. Its key is the pair OrderID and ProductID. The business rules are: OrderID determines OrderDate; ProductID determines ProductName, SupplierID, and SupplierName; and the full key determines Quantity. Decompose this relation into tables that remove partial dependencies for 2NF, and explain how the attributes are grouped.

13
Choose one
1 point

A database must enforce a rule that an alternate identifier cannot be duplicated, even though it is not the primary key. Which constraint is appropriate?

  1. A

    NOT NULL

  2. B

    UNIQUE

  3. C

    Foreign key

  4. D

    Check constraint

14
Choose one
1 point

A database stores a service fee on every invoice for that service. When the fee changes, an employee updates only some of the invoice rows, leaving different fee values for the same service. What kind of anomaly does this illustrate?

  1. A

    Deletion anomaly

  2. B

    Update anomaly

  3. C

    Insertion anomaly

  4. D

    A violation of the rule that each cell contain a single value

15
Choose one
1 point

A table stores course descriptions only on class-offering rows. If the last offering of a course is deleted, the course description disappears too. Which problem does this illustrate?

  1. A

    Update anomaly

  2. B

    Insertion anomaly

  3. C

    Deletion anomaly

  4. D

    A partial dependency

16
Choose one
1 point

In a relation with attributes ProductIDProductID, CategoryIDCategoryID, and CategoryNameCategoryName, assume ProductIDProductID is the key, CategoryIDCategoryID is not a key, and ProductIDProductID determines CategoryIDCategoryID, which determines CategoryNameCategoryName. What kind of dependency involving CategoryNameCategoryName makes the relation fail the informal 3NF rule?

  1. A

    A partial dependency on part of a composite key

  2. B

    A transitive dependency through a non-key attribute

  3. C

    A dependency on a prime attribute that violates 3NF

  4. D

    A repeating group that violates 1NF

17
Choose one
1 point

A relation has attributes AA, BB, CC, and DD, with exactly two candidate keys: {A,B}\{A, B\} and {C}\{C\}. Which listed nontrivial functional dependency has a determinant that is not a superkey but still satisfies the formal 3NF condition?

  1. A

    A→DA \to D

  2. B

    B→DB \to D

  3. C

    AB→DAB \to D

  4. D

    B→AB \to A

18
True or false
1 point

True or false: A database design is guaranteed to enforce every real-world data rule merely because its relations are normalized.

  1. A

    True

  2. B

    False

19
Written response
1 point

A customer’s mailing address is stored on several order rows. After the customer moves, only some rows are changed, so the database shows two addresses. What is the name of this anomaly?

20
Written response
1 point

An attribute belongs to at least one candidate key in a relation. What is this attribute called?