Normalization & Keys
JKSSB Sub-Inspector (Telecommunication) · Database Management Systems · 19 practice questions with answers and explanations: 9 Easy, 10 Medium, 0 Hard.
Sample questions
Sample Easy question 1
Which key is chosen from the candidate keys to identify rows?
- Composite key
- Foreign key
- Super key
- Primary key
Show answer
Answer: D. One candidate key is selected as the primary key; the others become alternate keys.
Sample Easy question 2
A candidate key is:
- A minimal set of columns that can uniquely identify a row
- A key shared by all tables
- A key that may contain NULL values freely
- Any set of columns in the table
Show answer
Answer: A. A candidate key is a minimal super key.
Sample Easy question 3
If X → Y and Y → Z hold, then X → Z holds. This rule is called:
- Augmentation
- Reflexivity
- Transitivity
- Decomposition
Show answer
Answer: C. Armstrong's transitivity rule.
Sample Medium question 4
A relation R(A, B, C) has A as its only candidate key. How many super keys does it have?
- 4
- 6
- 8
- 3
Show answer
Answer: A. Every super key must contain A: {A}, {A,B}, {A,C} and {A,B,C}.
Sample Medium question 5
Which anomaly occurs when deleting a row accidentally removes other useful facts?
- Update anomaly
- Selection anomaly
- Insertion anomaly
- Deletion anomaly
Show answer
Answer: D. Redundant, unnormalised tables can lose facts when a row is deleted.
Sample Medium question 6
In R(A, B, C, D) the dependencies are A → B, B → C and C → D. What is the candidate key?
- B
- A
- C
- D
Show answer
Answer: B. A+ = {A, B, C, D}, and no other single attribute determines A.