Sample questions
Question 1Easy
Which normal form deals with multivalued dependencies?
- 4NF
- BCNF
- 2NF
- 3NF
Answer: A. 4NF
Explanation
4NF requires that every non-trivial multivalued dependency X ->> Y has X as a super key. 5NF deals with join dependencies.
Step-by-step solution
- A multivalued dependency X ->> Y means Y-values are independent of other attributes for each X.
- 4NF requires every non-trivial MVD to have a super-key left side.
- So 4NF handles multivalued dependencies.
Why the other options are wrong
- B. BCNF deals with functional dependencies only.
- C. 2NF deals with partial dependencies.
- D. 3NF deals with transitive dependencies.
Tip: FDs up to BCNF; MVDs -> 4NF; join dependencies -> 5NF.
Question 2Easy
3NF removes which kind of dependency (beyond 2NF)?
- Partial dependency
- Transitive dependency of non-prime attributes on a key
- Multivalued dependency
- Trivial dependency
Answer: B. Transitive dependency of non-prime attributes on a key
Explanation
In 3NF no non-prime attribute depends on the key through another non-prime attribute.
Step-by-step solution
- After 2NF there are no partial dependencies.
- 3NF also forbids Key -> X -> Y where X and Y are non-prime.
- That chain is a transitive dependency, so 3NF removes it.
Why the other options are wrong
- A. Partial dependencies are already removed by 2NF.
- C. Multivalued dependencies are handled by 4NF.
- D. Trivial dependencies (X -> subset of X) are always allowed.
Tip: 3NF: non-key attributes depend on nothing but the key.
Question 3Easy
A course's fee is stored in hundreds of enrollment rows; changing it requires editing all of them. This is a(n):
- Insertion anomaly
- Dangling-tuple anomaly
- Deletion anomaly
- Update anomaly
Answer: D. Update anomaly
Explanation
Redundant copies must all be changed together, otherwise the data becomes inconsistent.
Step-by-step solution
- The fee is copied in many rows.
- Changing it means editing every copy, and missing one makes data inconsistent.
- This is an update anomaly.
Why the other options are wrong
- A. Insertion anomaly is about not being able to add a fact.
- B. Dangling tuples relate to joins, not repeated values.
- C. Deletion anomaly is about losing facts on delete.
Tip: Many copies to change = update anomaly.
Question 4Easy
Which anomaly occurs when deleting a student's only enrollment also removes the only record of a course's instructor?
- Deletion anomaly
- Update anomaly
- Join anomaly
- Insertion anomaly
Answer: A. Deletion anomaly
Explanation
Unrelated facts stored in the same row disappear together when that row is deleted.
Step-by-step solution
- Instructor details exist only inside enrollment rows.
- Deleting the last enrollment also loses the instructor fact.
- Losing unrelated facts on delete is a deletion anomaly.
Why the other options are wrong
- B. An update anomaly is about changing many copies.
- C. "Join anomaly" is not one of the three standard anomalies.
- D. An insertion anomaly is being unable to add a fact without unrelated data.
Tip: Delete one thing, lose another = deletion anomaly.
Question 5Medium
R(A, B, C, D, E) with FDs {A->BC, C->DE} is decomposed into R1(A, B, C) and R2(C, D, E). Is the decomposition lossless?
- Yes, it is lossless
- No, it is lossy
- Lossless only if R1 and R2 are in BCNF
- Cannot be decided from FDs
Answer: A. Yes, it is lossless
Explanation
The common attribute is C, and C -> DE makes C a key of R2(C, D, E), so the join cannot create spurious tuples.
Step-by-step solution
- R1 ∩ R2 = {C}.
- C -> DE, so C is a key of R2(C, D, E).
- The common attribute is a key of one part, so it is lossless.
Why the other options are wrong
- B. The common attribute C is a key of R2.
- C. Losslessness does not depend on BCNF.
- D. The FDs are enough to decide.
Tip: Split on X -> Y keeping X in both parts: lossless.
Question 6Medium
R(A, B, C, D) has FDs {AB->C, B->D}. What is the highest normal form that R satisfies (assume all attributes are atomic)?
- 2NF
- 1NF
- 3NF
- BCNF
Answer: B. 1NF
Explanation
Candidate key(s): AB. B -> D is a partial dependency of the non-prime attribute D on part of the key AB, so R is only in 1NF.
Step-by-step solution
- AB is the only candidate key.
- B -> D: D depends on part of the key AB.
- That partial dependency breaks 2NF, so R is in 1NF.
Why the other options are wrong
- A. B -> D is a partial dependency.
- C. 3NF needs 2NF first.
- D. B is not a superkey.
Tip: Composite key + FD from part of it = 1NF only.
Question 7Medium
R(A, B, C, D) has candidate key AB and the FDs AB -> C, AB -> D, C -> D. What should be done to reach 3NF?
- Nothing; R is already in 3NF
- Decompose into (A, B) and (C, D)
- Decompose into (A, B, C) and (C, D)
- Decompose into (A, C) and (B, D)
Answer: C. Decompose into (A, B, C) and (C, D)
Explanation
C -> D is transitive (AB -> C -> D). Moving it into its own relation removes the violation, and C is the common key, so the split is lossless.
Step-by-step solution
- AB -> C -> D: D depends transitively on the key.
- Move C -> D into its own relation (C, D).
- Keep (A, B, C) with C as a foreign key.
Why the other options are wrong
- A. C -> D is transitive, so 3NF fails.
- B. Splitting C away from AB loses AB -> C and is lossy.
- D. This split loses the FDs and is lossy.
Tip: Peel off the transitive FD into its own table.
Question 8Medium
3NF synthesis (from a minimal cover) guarantees which pair of properties?
- Lossless join and dependency preservation
- BCNF and no multivalued dependencies
- Dependency preservation and BCNF
- Lossless join and complete absence of redundancy in every relation
Answer: A. Lossless join and dependency preservation
Explanation
Synthesis creates one relation per FD in the cover and adds a key relation if needed, so both properties hold; BCNF decomposition may lose dependencies.
Step-by-step solution
- Make one relation per FD in the minimal cover.
- Add a relation containing a candidate key if none has one.
- This guarantees lossless join and dependency preservation.
Why the other options are wrong
- B. 3NF synthesis does not guarantee BCNF or 4NF.
- C. BCNF is not guaranteed.
- D. Some redundancy can remain in 3NF.
Tip: 3NF: lossless + dependency-preserving, always possible.
Question 9Hard
R(A, B, C, D, E) has FDs {AB->C, C->D, B->E}. What is the highest normal form that R satisfies (assume all attributes are atomic)?
- 2NF
- BCNF
- 1NF
- 3NF
Answer: C. 1NF
Explanation
Candidate key(s): AB. B -> E makes the non-prime attribute E depend on part of the key AB, a partial dependency, so R is in 1NF only.
Step-by-step solution
- AB is the only key.
- B -> E: E depends on part of the key.
- That partial dependency means R is only in 1NF.
Why the other options are wrong
- A. B -> E is a partial dependency.
- B. C, B are not superkeys.
- D. 3NF needs 2NF.
Tip: Test 2NF before 3NF.
Question 10Hard
R(A, B, C, D) has FDs {A -> B, B -> A, A -> C, C -> D}. Which of the following is a valid lossless decomposition of R into BCNF?
- (A, B, C) and (C, D)
- (A, C, D) and (B, D)
- (A, B) and (C, D)
- (A, B, C, D) unchanged
Answer: A. (A, B, C) and (C, D)
Explanation
C -> D violates BCNF (C is not a key), so split on it: (C, D) with key C, and (A, B, C) where A and B are both keys. The shared attribute C is a key of (C, D), so the join is lossless.
Step-by-step solution
- Keys are A and B (A <-> B). C -> D breaks BCNF, since C is not a key.
- Split on C -> D: (C, D) and (A, B, C).
- In (A, B, C) the determinants A and B are keys; in (C, D), C is the key.
- Common attribute C is a key of (C, D), so the split is lossless.
Why the other options are wrong
- B. Common attribute D is not a key of either part, so it is lossy.
- C. No common attribute links the parts, so it is lossy.
- D. C -> D violates BCNF in R.
Tip: Violating X -> Y: make (XY) and (R − Y).
Practise all 45 questions free
The full question bank with timed practice, progress tracking and Vidya, your AI tutor. Free, no ads.
Open this topic in the app →