0
0
DBMS Theoryknowledge~20 mins

Second Normal Form (2NF) in DBMS Theory - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
2NF Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding the Definition of 2NF

Which of the following best describes the Second Normal Form (2NF) in database normalization?

AA table is in 2NF if it is in 1NF and all non-key attributes are fully functionally dependent on the entire primary key.
BA table is in 2NF if it contains only atomic values and no nulls.
CA table is in 2NF if it has no transitive dependencies between non-key attributes.
DA table is in 2NF if it has no repeating groups and all attributes depend on the primary key.
Attempts:
2 left
💡 Hint

Recall that 2NF builds on 1NF by focusing on how attributes depend on the primary key.

🚀 Application
intermediate
2:00remaining
Identifying Partial Dependency

Consider a table with a composite primary key (StudentID, CourseID) and attributes: StudentName, CourseName, and Grade. Which attribute violates 2NF?

ACourseID
BGrade
CStudentName
DCourseName
Attempts:
2 left
💡 Hint

Think about which attributes depend on only part of the composite key.

🔍 Analysis
advanced
2:00remaining
Evaluating Table Normalization Status

Given a table with primary key (OrderID, ProductID) and attributes: OrderDate, ProductName, Quantity, and SupplierName. Which attribute(s) cause the table to not be in 2NF?

AOrderDate and SupplierName
BProductName and SupplierName
CQuantity only
DOrderDate only
Attempts:
2 left
💡 Hint

Consider which attributes depend on only part of the composite key.

Comparison
advanced
2:00remaining
Difference Between 1NF and 2NF

Which statement correctly contrasts First Normal Form (1NF) and Second Normal Form (2NF)?

A1NF requires atomic values; 2NF requires no partial dependency on a composite key.
B1NF requires no partial dependency; 2NF requires atomic values.
C1NF requires no transitive dependency; 2NF requires no repeating groups.
D1NF requires full functional dependency; 2NF requires no null values.
Attempts:
2 left
💡 Hint

Think about what each normal form focuses on.

Reasoning
expert
2:00remaining
Impact of Partial Dependency on Data Integrity

Why can partial dependency in a table with a composite primary key lead to data anomalies?

ABecause transitive dependencies cause redundant data storage.
BBecause atomic values are not enforced, leading to duplicate rows.
CBecause the table cannot have a primary key defined, causing errors in queries.
DBecause changes to a non-key attribute dependent on part of the key may require multiple updates, causing inconsistency.
Attempts:
2 left
💡 Hint

Consider how partial dependency affects update operations.