SQL MCQs – Database Design and Normalization

21.) Which type of dependency exists when a non-prime attribute depends on another non-prime attribute?

A) Partial dependency
B) Transitive dependency
C) Multivalued dependency
D) Circular dependency

Answer: Option B

Explanation: Transitive dependency occurs when non-prime attributes depend on other non-prime attributes.

22.) What is the result of normalization up to BCNF?

A) Completely eliminates redundancy
B) Optimizes performance for all queries
C) Ensures every determinant is a candidate key
D) Allows multivalued attributes

Answer: Option C

Explanation: BCNF eliminates redundancy caused by non-candidate key determinants.

23.) Why are foreign keys important in database design?

A) They reduce redundancy
B) They enforce referential integrity
C) They improve query performance
D) They act as composite keys

Answer: Option B

Explanation: Foreign keys ensure data consistency across related tables.

24.) Which normal form deals with multivalued dependencies?

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

Answer: Option C

Explanation: 4NF handles and eliminates multivalued dependencies.

25.) What is the main drawback of normalization?

A) Increases redundancy
B) Slower write operations due to more joins
C) Reduces data integrity
D) Reduces database size

Answer: Option B

Explanation: Normalization may lead to complex queries involving multiple joins.

26.) In database design, what does “schema” refer to?

A) A graphical representation of data
B) A database backup method
C) A query optimization technique
D) The structure of a database, including tables and relationships

Answer: Option D

Explanation: A schema defines the structure and relationships in a database.

Leave a Reply

Your email address will not be published. Required fields are marked *