Bird
Raised Fist0
DBMS Theoryknowledge~20 mins

Armstrong's axioms in DBMS Theory - Practice Problems & Coding Challenges

Choose your learning style10 modes available
Challenge - 5 Problems
🎖️
Armstrong's Axioms Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Armstrong's Axioms: Reflexivity

Which of the following best describes the Reflexivity axiom in Armstrong's axioms for functional dependencies?

AIf X functionally determines Y and Y functionally determines Z, then X functionally determines Z.
BIf X functionally determines Y, then Y functionally determines X.
CIf X functionally determines Y, then X combined with any attribute Z functionally determines Y.
DIf Y is a subset of X, then X functionally determines Y (X → Y).
Attempts:
2 left
💡 Hint

Think about when a set of attributes determines itself or its parts.

🧠 Conceptual
intermediate
2:00remaining
Applying Armstrong's Axioms: Augmentation

Which statement correctly explains the Augmentation axiom?

AIf X functionally determines Y and Y functionally determines Z, then X functionally determines Z.
BIf X functionally determines Y, then Y functionally determines X.
CIf X functionally determines Y, then adding Z to the left side preserves the dependency: XZ → Y.
DIf Y is a subset of X, then X functionally determines Y.
Attempts:
2 left
💡 Hint

Consider what happens when you add extra attributes to both sides of a dependency.

❓ Reasoning
advanced
2:00remaining
Using Armstrong's Axioms: Transitivity Application

Given the functional dependencies: A → B and B → C, what can be concluded using Armstrong's axioms?

AC → A
BA → C
CB → A
DC → B
Attempts:
2 left
💡 Hint

Think about chaining dependencies to find indirect relationships.

🔍 Analysis
advanced
2:00remaining
Identifying Invalid Functional Dependency

Which of the following functional dependencies violates Armstrong's axioms?

AIf X → Y, then Y → X.
BIf X → Y and Y → Z, then X → Z.
CIf Y is subset of X, then X → Y.
DIf X → Y, then XZ → YZ.
Attempts:
2 left
💡 Hint

Recall which axioms allow reversing dependencies.

❓ Comparison
expert
2:00remaining
Comparing Armstrong's Axioms and Derived Rules

Which of the following is a derived rule that can be proven using Armstrong's axioms but is not one of the original axioms?

AUnion: If X → Y and X → Z, then X → YZ.
BTransitivity: If X → Y and Y → Z, then X → Z.
CAugmentation: If X → Y, then XZ → YZ.
DReflexivity: If Y is subset of X, then X → Y.
Attempts:
2 left
💡 Hint

Think about which rules are basic axioms and which are proven from them.

Practice

(1/5)
1. Which of the following is NOT one of Armstrong's axioms used in database theory?
easy
A. Reflexivity
B. Augmentation
C. Transitivity
D. Normalization

Solution

  1. Step 1: Recall Armstrong's axioms

    Armstrong's axioms include Reflexivity, Augmentation, and Transitivity.
  2. Step 2: Identify the option not in the axioms

    Normalization is a database design process, not an axiom.
  3. Final Answer:

    Normalization -> Option D
  4. Quick Check:

    Armstrong's axioms exclude Normalization [OK]
Hint: Remember the three axioms: Reflexivity, Augmentation, Transitivity [OK]
Common Mistakes:
  • Confusing normalization with axioms
  • Thinking all database terms are axioms
  • Mixing up augmentation with normalization
2. Which Armstrong's axiom states that if Y is a subset of X, then X functionally determines Y?
easy
A. Reflexivity
B. Transitivity
C. Augmentation
D. Decomposition

Solution

  1. Step 1: Understand the axiom definitions

    Reflexivity states if Y is subset of X, then X determines Y.
  2. Step 2: Match the statement to the axiom

    The given statement matches Reflexivity exactly.
  3. Final Answer:

    Reflexivity -> Option A
  4. Quick Check:

    Subset implies functional dependency by Reflexivity [OK]
Hint: Subset implies dependency = Reflexivity [OK]
Common Mistakes:
  • Confusing reflexivity with transitivity
  • Choosing decomposition which is not an axiom
  • Mixing augmentation with reflexivity
3. Given the functional dependencies: A -> B and B -> C, what can we infer using Armstrong's axioms?
medium
A. A -> C
B. B -> A
C. C -> A
D. C -> B

Solution

  1. Step 1: Identify the given dependencies

    We have A determines B, and B determines C.
  2. Step 2: Apply Transitivity axiom

    Transitivity says if A -> B and B -> C, then A -> C.
  3. Final Answer:

    A -> C -> Option A
  4. Quick Check:

    Transitivity gives A -> C [OK]
Hint: Chain dependencies to find indirect ones using Transitivity [OK]
Common Mistakes:
  • Reversing dependencies incorrectly
  • Ignoring transitivity rule
  • Assuming dependencies go backward
4. Identify the error in this application of Armstrong's axioms: Given A -> B, the conclusion is B -> A.
medium
A. Correct use of augmentation
B. Proper use of reflexivity
C. Mistakenly reversed dependency
D. Valid transitivity application

Solution

  1. Step 1: Analyze the given dependency

    A -> B means A determines B, not the other way around.
  2. Step 2: Check the conclusion

    Concluding B -> A reverses the dependency, which Armstrong's axioms do not allow.
  3. Final Answer:

    Mistakenly reversed dependency -> Option C
  4. Quick Check:

    Dependencies do not reverse automatically [OK]
Hint: Dependencies don't reverse unless explicitly stated [OK]
Common Mistakes:
  • Assuming dependencies are symmetric
  • Confusing augmentation with reversal
  • Ignoring direction of functional dependency
5. If you have A -> B and A -> C, which Armstrong's axiom allows you to combine these into A -> BC?
hard
A. Transitivity
B. Union
C. Decomposition
D. Augmentation

Solution

  1. Step 1: Understand the given dependencies

    A determines B and A determines C separately.
  2. Step 2: Apply the Union axiom

    Union allows combining A -> B and A -> C into A -> BC.
  3. Final Answer:

    Union -> Option B
  4. Quick Check:

    Union combines dependencies into one [OK]
Hint: Combine dependencies with same left side using Union [OK]
Common Mistakes:
  • Confusing union with augmentation
  • Using decomposition instead of union
  • Applying transitivity incorrectly here
Recommended

Ready to prove it?

Pass the test and this pattern moves unknown strong while earning +1 Grip toward your certificate.

10 questions~5 mineasy hard