Database Design & Normalization MCQs for NSCT

By the NSCT Exam Editorial Team · Updated 2026-11-24 · Facts checked against official sources on 2026-11-24

Normalisation is the step-by-step process of splitting a relation into smaller ones so that each fact is stored once. It is driven by functional dependencies and measured by normal forms: 1NF, 2NF, 3NF and BCNF. Database Design & Normalization is topic 8 of the Databases area, which carries 10% of the NSCT according to HEC's Areas of Competencies. In 2026 candidates averaged 42.3% in Databases, per the HEC NSCT report and APP.

Almost every question follows the same recipe: find the closures, find the candidate keys, then test each normal form in order. Every closure, key and normal form on this page and in the quiz was computed with a Python implementation of the closure algorithm. Our treatment follows Elmasri-Navathe and Silberschatz.

Why normalise: anomalies

Take Course(CourseID, Title, Instructor, InstructorPhone). Each phone number is repeated in every course row for that instructor, which causes three problems.

Anomaly What goes wrong
Update You change the phone in one row and forget the others
Insertion You cannot record a new instructor's phone until they teach a course
Deletion Deleting an instructor's only course loses their phone

Splitting the table into Course(CourseID, Title, Instructor) and Instructor(Instructor, InstructorPhone) removes all three. Exam angle: be ready to name the anomaly from a one-line story.

Functional dependencies

A functional dependency (FD) X → Y means that any two rows that agree on X also agree on Y. The closure X⁺ is everything X determines. To compute it, start with X and keep applying FDs whose left side is already inside the set.

With F = {A → B, BC → D, D → E, E → A}, the closure of BC grows step by step. BC → D adds D, D → E adds E and E → A adds A, giving (BC)⁺ = {A, B, C, D, E}. So BC is a superkey, and because neither B nor C alone reaches everything, it is a candidate key. An attribute that belongs to any candidate key is prime.

Armstrong's axioms (reflexivity, augmentation, transitivity) derive every implied FD. Union and decomposition are derived rules. Exam angle: attributes that never appear on a right-hand side must be in every key, so start your key search with them.

1NF

A relation is in First Normal Form when every cell holds one atomic value: no lists, no repeating groups. Student(ID, Phones = '0300-1111, 0321-2222') breaks it. The fix is StudentPhone(ID, Phone) with key (ID, Phone), not columns Phone1, Phone2 and Phone3. Exam angle: in the relational model every relation is in 1NF by definition, so most questions start there.

2NF

2NF = 1NF + no partial dependency: no non-prime attribute may depend on part of a candidate key. In R(A, B, C, D) with F = {A → C, AB → D}, the key is AB and A → C is partial, so R is only in 1NF. Exam angle: if every candidate key is a single attribute, a partial dependency is impossible, so the relation is automatically in 2NF.

3NF

3NF = 2NF + no transitive dependency of a non-prime attribute on a key. Formally, for every non-trivial FD X → A, either X is a superkey or A is prime. Student(StudentID, Name, DeptID, DeptName) with DeptID → DeptName is in 2NF but not 3NF, so you move (DeptID, DeptName) out. Exam angle: the "or A is prime" clause is easy to forget. It lets some relations reach 3NF even though they fail BCNF.

BCNF

Boyce-Codd Normal Form requires every non-trivial FD X → Y to have a superkey on the left, with no exceptions. Take R(A, B, C) with F = {AB → C, C → B}. The keys are AB and AC, so every attribute is prime and R is in 3NF. But C → B has a non-key left side, so R is not in BCNF.

3NF BCNF
Rule for X → A X superkey or A prime X superkey
Lossless decomposition Always possible Always possible
Dependency-preserving Always possible Not always

Exam angle: splitting that R into (C, B) and (A, C) is lossless, but AB → C can no longer be checked inside one table. That is the classic BCNF trade-off.

Decomposition properties

A split of R into R1 and R2 is lossless if R1 ∩ R2 → R1 or R1 ∩ R2 → R2, meaning the shared attributes form a key of one side. It is dependency-preserving if every FD can still be enforced inside a single fragment. 3NF synthesis gives both properties. You make one relation per FD in a minimal cover, then add a relation containing a key if none has one. Beyond BCNF, 4NF removes multivalued dependencies.

Common traps

Worked examples

Understanding. Why is every BCNF relation also in 3NF? Answer: BCNF demands a superkey on the left of every non-trivial FD. 3NF accepts that same condition or a prime right side, so any relation that passes BCNF passes 3NF automatically.

Application. R(A, B, C, D, E) has F = {AB → C, C → D, B → E}. What is its highest normal form? Answer: 1NF. A and B appear on no right side, and AB⁺ = {A, B, C, D, E}, so AB is the only key. B → E is a partial dependency of the non-prime E, so 2NF fails.

Analysis. R(A, B, C) has F = {A → B, B → C} and is split into (A, B) and (A, C). Is the split lossless and dependency-preserving? Answer: lossless but not dependency-preserving. A is common to both and A → B makes it a key of (A, B), so the join is lossless. B → C has B and C in different fragments, so it cannot be checked locally. Splitting into (A, B) and (B, C) achieves both properties.

Practise

The quiz below has 99 Database Design & Normalization questions, filterable by tier and difficulty. For long key-finding drills, see normalisation practice.

Practise: 99 questions

Interactive quiz loading. The first 10 questions are shown below.

  1. What does the functional dependency X → Y mean for a relation R?

    1. Any two tuples that agree on Y must also agree on X
    2. X and Y must both be candidate keys
    3. Any two tuples of R that agree on X must also agree on Y
    4. Every value of X appears exactly once in R
    Show answer

    Answer: C. Any two tuples of R that agree on X must also agree on Y

    X → Y says X determines Y: if two rows share the same X values, they must share the same Y values. It does not work backwards, and it does not need X to be unique; X only needs to be unique when X → R, which makes X a superkey.

  2. A relation is in First Normal Form (1NF) when:

    1. It has no partial dependencies on the primary key
    2. Every determinant is a candidate key
    3. Every attribute holds a single atomic value, with no repeating groups or multi-valued cells
    4. It has no transitive dependencies
    Show answer

    Answer: C. Every attribute holds a single atomic value, with no repeating groups or multi-valued cells

    1NF is about the shape of the data: each cell holds one indivisible value, so a cell like '0300-1, 0321-2' breaks 1NF. The other options describe 2NF, BCNF and 3NF.

  3. Which problem does Second Normal Form (2NF) remove?

    1. Non-prime attributes that depend on only part of a composite candidate key
    2. Cells that hold more than one value
    3. Non-prime attributes that depend on another non-prime attribute
    4. Multivalued dependencies between independent attributes
    Show answer

    Answer: A. Non-prime attributes that depend on only part of a composite candidate key

    2NF = 1NF plus no partial dependency: no non-prime attribute may be determined by a proper subset of a candidate key. In Enrol(StudentID, CourseID, CourseTitle), CourseID → CourseTitle is partial, so the relation is not in 2NF.

  4. Third Normal Form (3NF) mainly removes which kind of dependency?

    1. Partial dependencies on a composite key
    2. Transitive dependencies of non-prime attributes on a key
    3. Multivalued dependencies
    4. Join dependencies
    Show answer

    Answer: B. Transitive dependencies of non-prime attributes on a key

    In Emp(EmpID, DeptID, DeptName), EmpID → DeptID and DeptID → DeptName, so DeptName depends on the key only through DeptID. That transitive dependency is what 3NF removes. Multivalued dependencies are 4NF and join dependencies are 5NF.

  5. A relation R is in Boyce-Codd Normal Form (BCNF) if, for every non-trivial functional dependency X → Y that holds in R:

    1. X is a superkey of R
    2. X is a superkey of R or Y is a prime attribute
    3. Y is part of a candidate key
    4. X is a single attribute
    Show answer

    Answer: A. X is a superkey of R

    BCNF requires every determinant of a non-trivial FD to be a superkey, with no exceptions. 3NF adds the escape clause 'or every attribute of Y is prime', which is why 3NF is weaker than BCNF.

  6. An attribute is called prime when it:

    1. Belongs to the primary key chosen by the designer, and to no other key
    2. Is functionally determined by every other attribute
    3. Has no NULL values
    4. Belongs to at least one candidate key
    Show answer

    Answer: D. Belongs to at least one candidate key

    Prime means 'member of some candidate key', not only of the chosen primary key. If R has keys AB and BC, then A, B and C are all prime. Getting this right decides 2NF and 3NF answers.

  7. A table repeats each instructor's phone number in every course row. A clerk changes the number in one row and forgets the others. Which anomaly is this?

    1. Insertion anomaly
    2. Deletion anomaly
    3. Update anomaly
    4. Phantom anomaly
    Show answer

    Answer: C. Update anomaly

    When the same fact is stored in several rows, changing only some copies leaves the data inconsistent: an update anomaly. An insertion anomaly is being unable to add a fact without unrelated data; a deletion anomaly is losing a fact when you delete a row. 'Phantom' belongs to transactions, not design.

  8. Which of these is NOT one of Armstrong's three basic axioms?

    1. Reflexivity: if Y ⊆ X, then X → Y
    2. Augmentation: if X → Y, then XZ → YZ
    3. Transitivity: if X → Y and Y → Z, then X → Z
    4. Union: if X → Y and X → Z, then X → YZ
    Show answer

    Answer: D. Union: if X → Y and X → Z, then X → YZ

    Armstrong's axioms are reflexivity, augmentation and transitivity. They are sound and complete. Union, decomposition and pseudotransitivity are derived rules that can be proved from those three.

  9. R is decomposed into R1 and R2. Under which condition is the decomposition guaranteed lossless?

    1. The common attributes R1 ∩ R2 functionally determine all of R1 or all of R2
    2. R1 and R2 have the same number of attributes
    3. R1 ∪ R2 = R, whatever the common attributes are
    4. Each FD of R holds entirely inside R1 or inside R2
    Show answer

    Answer: A. The common attributes R1 ∩ R2 functionally determine all of R1 or all of R2

    The binary test: R1 ∩ R2 → R1 or R1 ∩ R2 → R2, meaning the shared attributes are a superkey of one side. Covering all attributes is necessary but not enough. Keeping each FD inside one fragment is dependency preservation, a different property.

  10. R is in 1NF and every candidate key of R has exactly one attribute. What can you conclude?

    1. R is in 3NF
    2. R is in BCNF
    3. Nothing beyond 1NF
    4. R is in 2NF
    Show answer

    Answer: D. R is in 2NF

    A partial dependency needs a proper subset of a key, and a single-attribute key has no non-empty proper subset. So R is automatically in 2NF. It can still have transitive dependencies, so 3NF and BCNF are not guaranteed.

FAQs

How do I find all candidate keys quickly?

List the attributes that never appear on any right-hand side; they must be in every key. Compute their closure. If it covers the relation, that set is the only key. Otherwise add one attribute at a time from those that appear on both sides, compute closures, and keep only the minimal sets that reach every attribute.

Is 3NF enough in practice?

Usually yes. 3NF always allows a lossless, dependency-preserving design, and most real tables that are in 3NF are also in BCNF. The two differ only when a non-key attribute determines part of a key, as with overlapping composite keys. Designers then choose between BCNF's cleaner structure and 3NF's ability to enforce every dependency locally.

When is denormalisation justified?

Denormalisation is justified when measured read performance matters more than update cost, as in reporting tables and data warehouses. You deliberately store redundant data, such as a department name inside an employee table, to avoid joins. The price is the return of update anomalies, which triggers or batch jobs must then control.

Next step

Continue with Transaction Management MCQs, go back to the Databases hub, or try a timed NSCT mock test.