0
0
DBMS Theoryknowledge~20 mins

Functional dependency definition in DBMS Theory - Practice Problems & Coding Challenges

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

Which of the following best describes a functional dependency in a database?

AA process of normalizing data to reduce redundancy.
BA rule that allows multiple values for a single attribute in a table.
CA constraint that enforces referential integrity between tables.
DA relationship where one attribute uniquely determines another attribute.
Attempts:
2 left
💡 Hint

Think about how one piece of data can determine another in a table.

📋 Factual
intermediate
2:00remaining
Identifying Functional Dependency Notation

In the notation A → B, what does this represent in terms of functional dependency?

AAttribute B functionally determines attribute A.
BAttributes A and B are independent of each other.
CAttribute A functionally determines attribute B.
DAttributes A and B are both primary keys.
Attempts:
2 left
💡 Hint

Look at the arrow direction carefully.

🚀 Application
advanced
2:00remaining
Applying Functional Dependency in a Table

Given a table with columns StudentID, StudentName, and Major, which functional dependency is correct?

AStudentID → StudentName
BStudentName → Major
CMajor → StudentID
DStudentName → StudentID
Attempts:
2 left
💡 Hint

Consider which attribute uniquely identifies a student.

🔍 Analysis
advanced
2:00remaining
Analyzing Functional Dependency Impact

What is the impact of violating a functional dependency in a database table?

AIt ensures data is always normalized.
BIt causes data redundancy and inconsistency.
CIt allows multiple primary keys in a table.
DIt improves query performance.
Attempts:
2 left
💡 Hint

Think about what happens when one attribute does not uniquely determine another.

Reasoning
expert
2:00remaining
Determining Functional Dependency from Data

Consider the following data in a table:

EmployeeID | Department
1          | Sales
2          | Sales
3          | HR
4          | HR
5          | Sales

Which functional dependency is true based on this data?

AEmployeeID → Department
BDepartment → EmployeeID
CEmployeeID and Department are independent
DDepartment uniquely determines EmployeeID
Attempts:
2 left
💡 Hint

Check if one attribute value always leads to exactly one value of the other.