wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Normalization

Total questions: 65

Worksheet time: 34mins

Name
Class
Date
1.

An entity is represented by what in a database?

a)

Table

b)

Row

c)

Column

d)

Cell

2.

An attribute is represented by what in a database?

a)

Table

b)

Row

c)

Column

d)

Cell

3.

The purposes of normalization are :

a)

To ensure that the anomalies doesn’t occur

b)

To reduce data or storage redundancy

c)

To ensure easy for record searching/finding

d)

All the above

4.

"Occurs when an attribute is functionally dependent on another non-key attribute."


The above statement is referring to :

a)

Full Functional Dependency

b)

Partial Functional Dependency

c)

Transitive Dependencies

5.

A table is in 2NF if the table is in 1NF and what other condition is met?

a)

There are no functional dependencies.

b)

There are no null values in primary key fields.

c)

There are no repeating groups.

d)

There are no attributes that are not functionally dependent on the relation's primary key.

6.

When you normalize a relation by breaking it into two smaller relations, what must you do to maintain data integrity?

a)

Remove any functional dependencies from both relations

b)

Assign both relations the same primary key field(s)

c)

Create a primary key(s) for the new relation

7.

Which of these are required for a relational database to meet 3rd normal form?

a)

Must meet 2nd normal form

b)

All the non-key attributes must depend on another non-key attribute

c)

All the non-key attributes must not depend on another non-key attribute

d)

Must meet 4th normal form

8.

A 2NF table can exhibit ____ dependency.

a)

partial

b)

complete

c)

transitive

d)

indirect

9.

Identify the types of Data Anomalies:

a)

Add, Delete and Save anomalies

b)

Insert, Add and Save anomalies

c)

Update, Save and Insert anomalies

d)

Insert, Delete and Update anomalies

10.

Consider the relation scheme R = {D, E, F, G, H, I, J, K, L, M, N} and the set of functional dependencies {{E, F} -> {G}, {F} -> {I, J}, {E, H} -> {K, L}, K -> {M}, L -> {N} on R. What is the key for R?

a)

{E, F}

b)

{E, F, H}

c)

{D, E, F, H}

d)

{E, F, H, K, L}

11.

Relation R has eight attributes ABCDEFGH. F = {CH -> G, A -> BC, B -> CFH, E -> A, F -> EG} is a set of functional dependencies (FDs) so that F+ is exactly the set of FDs that hold for R. How many candidate keys does the relation R have?

a)

5

b)

3

c)

4

d)

6

12.

In a schema with attributes A, B, C, D and E following set of functional dependencies are given

{A -> B, A -> C, CD -> E, B -> D, E -> A}

Which of the following functional dependencies is NOT implied by the above set?

a)

CD -> AC

b)

BC -> CD

c)

AC -> BC

d)

BD -> CD

13.

Expand BCNF

(a)  

14.

Which one of the following is a wrong informal design guidelines for relational schema?

a)

Semantics of the Attributes

b)

Reducing the Redundant Value in Tuples

c)

Reducing Null values in Tuples

d)

Allowing spurious Tuples.

15.

If A->B holds and Y is attribute set, then AY->BY also holds. Name this rule

(a)  

16.

if A->B holds and B->C holds,

then A->C also holds.Name this rule

(a)  

17.

• If there are more than one attributes in primary key and ‘A’ be a non prime key attribute. If ‘A’ is not dependent upon all prime key attributes then ------exists.

(a)  

18.

In any relation R, if for a particular value of X, Y has more than one value.Name this functional dependency

(a)  

19.

In any relation R, X -> Y is ------------ if Y is a subset of X.

(a)  

20.

A relation is in second normal form if it is in 1NF and all non prime key attributes must be (a)   dependent upon primary key attributes

21.

For R(A,B,C,D), the set of FDs F(A-> B, B-> C, C-> A). Which of the following is/are the candidate key(s)

a)

AD

b)

ABC

c)

A

d)

D

22.

For R(A,B,C, D), the set of FDs F(AB-> B, BC-> C, CD-> A). Which of the following is a candidate key

a)

ACD

b)

ABC

c)

BC

d)

BCD

23.

Which of the following FD is redundant. For R(A,B,C), the set of FDs F(A-> AB, B-> C, A->B, C->B, B->A).

a)

A->AB

b)

B->C

c)

B->A

d)

None of the above

24.

For R(A,B,C), the set of FDs F(A-> B, B-> C). Which of the following is NOT a SUPER key

a)

ABC

b)

AC

c)

BC

d)

AB

25.

Following is the example of which axiom If X -> Y, then XZ -> YZ also XZ -> Y

a)

Reflexive

b)

Augmentation

c)

Transitive

d)

Union

26.

Following is the example of which axiom If X -> YZ, then X -> Y and X -> Z

a)

Reflexive

b)

Transitive

c)

Decomposition

d)

Union

27.

What are the prime attributes for the R = {A,B,C,D,E} with set of Fds Z={D -> E , CE-> A}

a)

BCD

b)

AE

c)

CDE

d)

CE

28.

What are the NON-prime attributes for the R = {A,B,C,D,E,F,G} with candidate keys ABC, DF, ACG

a)

E

b)

A

c)

ABC

d)

DF

29.

What are the prime attributes for the R = {A,B,C,D,E,F,G} with candidate keys ABC, DF, ACG

a)

ABCD

b)

ABCDF

c)

ABCDFG

d)

E

30.

What are the NON-prime attributes for the R = {A,B,C,D,E,F,G} with candidate keys DCF & GCF

a)

AB

b)

ABE

c)

C

d)

CF

31.

Which of the following statements is true regarding functional dependencies?

a)

All attributes must be functionally dependent on a candidate key

b)

Every attribute is functionally dependent on the primary key

c)

Functional dependencies can exist without a primary key

d)

Functional dependencies are only applicable in 1NF

32.

Which functional dependency types is/are not present in the following dependencies?
Empno -> EName, Salary, Deptno, DName
DeptNo -> DName
EmpNo -> DName

a)

Full functional dependency

b)

Partial functional dependency

c)

Transitive functional dependency

d)

Both B and C

33.

Which functional dependency types is/are not present in following dependencies?
StaffNo, BranchNo -> StaffName, BranchName, Position, DOB
StaffNo -> StaffName, Position, DOB
BranchNo -> BranchName

a)

Full functional dependency

b)

Partial functional dependency

c)

Transitive functional dependency

d)

Both B and C

34.

A BCNF:

a)

is always both loss less join and dependency preserving

b)

always loss less join but may dependency preserving

c)

may not loss less join but always dependency preserving

d)

None of these

35.

What is a composite primary key?

a)

A primary key that can be duplicated in the same table

b)

An attribute that is a primary key in another table

c)

A foreign key that is a primary key in more than one other table

d)

A primary key made up from two or more attributes

36.

When you normalize a relation by breaking it into two smaller relations, what must you do to maintain data integrity?

a)

Remove any functional dependencies from both relations

b)

Assign both relations the same primary key field(s)

c)

Create a primary key(s) for the new relation

37.

Collection of tables

a)

Entity

b)

Attribute

c)

Table

d)

Database

e)

Relationship

38.

Collection of records

a)

Entity

b)

Attribute

c)

Table

d)

Database

e)

Relationship

39.

BCNF is

a)

when the table has no partial dependencies

b)

when every determinant in a table is a candidate key.

c)

when the table is in 1st Normal Form

d)

when there are no repeating groups of attributes

40.

What is a lossless-join decomposition?

a)

A way to simplify database queries

b)

A technique to combine multiple databases

c)

A method to ensure no information is lost during decomposition

d)

A process that loses data during decomposition

41.

Which of the following is a disadvantage of normalization?

a)

Increases data redundancy

b)

Can lead to complex queries

c)

Improves data integrity

d)

Enhances database performance

42.

Given the following two statements:

S1: Every table with two single-valued attributes is in 1NF, 2NF, 3NF and BCNF.

S2: AB→C,D→E,E→C is a minimal cover for the set of functional dependencies AB→C,D→E,AB→E,E→C. Which one of the following is CORRECT?

a)

S1 is TRUE and S2 is FALSE.

b)

Both S1 and S2 are TRUE.

c)

S1 is FALSE and S2 is TRUE.

d)

Both S1 and S2 are FALSE.

43.

Which of the following is TRUE?

a)

Every relation in 3NF is also in BCNF

b)

A relation R is in 3NF if every non-prime attribute of R is fully functionally dependent on every key of R

c)

Every relation in BCNF is also in 3NF

d)

No relation can be in both BCNF and 3NF

44.

A relation is in ___ if it is in Boyce Codd normal form and does not have any multivalued dependencies.

a)

1NF

b)

2NF

c)

3NF

d)

4NF

45.

Which of the following conditions for each nontrivial dependency of function X on function Y for a relation to be in third normal form.

a)

A super key is X.

b)

Y is a prime attribute.

c)

Either A or B

d)

None of the above

46.

Which type of anomaly occurs when adding new data to a database causes unintended changes to existing data?

a)

   A) Insertion anomaly 

b)

   B) Deletion anomaly 

c)

   C) Update anomaly 

d)

   D) Redundancy anomaly

47.

Which normal form is designed to eliminate insertion, deletion, and update anomalies?

a)

A) First Normal Form (1NF) 

b)

   B) Second Normal Form (2NF) 

c)

   C) Third Normal Form (3NF) 

d)

   D) Boyce-Codd Normal Form (BCNF) 

48.

A university database contains a relation `StudentCourses` with attributes `(StudentID, CourseID, Grade)`. The database administrator notices that when a student drops a course, it leads to student's record is completely removed. Which type of anomaly is observed in this scenario?

a)

   A) Insertion anomaly 

b)

B) Deletion anomaly 

c)

C) Update anomaly 

d)

   D) Dependency anomaly

49.

An e-commerce database maintains a relation `OrderDetails` with attributes `(OrderID, ProductID, Quantity)`. When a product's quantity changes, the database administrator notices that this information requires modifying multiple records, leading to inconsistencies. Which type of anomaly is evident here?

a)

   A) Insertion anomaly 

b)

   B) Deletion anomaly 

c)

C) Update anomaly 

d)

   D) Dependency anomaly

50.

In a manufacturing database, a relation `ProductInventory` has attributes `(ProductID, WarehouseID, Quantity)`. The database designer realizes that adding a new product to the inventory without assigning it to any warehouse is not allowed due to missing warehouse ID. Which type of anomaly is being prevented in this case?

a)

   A) Insertion anomaly 

b)

   B) Deletion anomaly 

c)

   C) Update anomaly 

d)

   D) Dependency anomaly

51.

A database system uses a relation `EmployeeSalary` with attributes `(EmployeeID, Salary)`. The database administrator notices that changing an employee's salary in multiple records every year is cumbersome and error-prone. Which type of anomaly is associated with this scenario?

a)

   A) Insertion anomaly 

b)

   B) Deletion anomaly 

c)

   C) Update anomaly 

d)

   D) Dependency anomaly

52.

A library database maintains a relation `BookLoans` with attributes `(BookID, MemberID, DueDate)`. When a member returns a book, the database administrator observes that deleting the corresponding record affects the book and member details. Which type of anomaly is evident here?

a)

    A) Insertion anomaly 

b)

    B) Deletion anomaly 

c)

    C) Update anomaly 

d)

    D) Dependency anomaly

53.

Let R(A,B,C,D) be a relation schema and F = {A->BC, AB->D, B->C} be the set of functional dependencies defined for R. Which will represent the closure of attribute set {B}?

a)

(A) (A,C,D)

b)

(B) (B,C)

c)

(C) (A,B,C)

d)

(D) (C,B)

e)

  (E) (B)

54.

Following are the functional dependencies for relation R(PQRSTU):

PQ->RS, ST->U, R->T, U->S, PT->R and T->P

Which of the following is TRUE?

a)

(A) (PQ)+ = (PRST)

b)

(B) (ST)+ = (PQRSTU)

c)

(C) (QT)+ = (PQRSTU)

d)

(D) (PQ)+ = (PQRTU)

55.

Considering the following relation and given dependencies:

(i) B->D

(ii) A-> C

(iii) ABC->D

(Iv) ABD->C

Which of the following FD is not correct:

a)

(A) (i) and (ii)

b)

(B) (iii) only

c)

(C) (iv) only

d)

(D) (ii) and (iv) only

56.

Consider the following functional dependency set

 F = {A->B, BC->E, ED->A, EF->G, E->F}

What will be the closure of (AC)?

a)

(A) (A,B,C,D,E,F,G)

b)

(B) (A,B,D,E,F)

c)

(C) (A,B,C,E)

d)

(D) (A,B,C,E,F,G)

57.

For the functional dependencies 𝐴→𝐷AD, 𝐵→𝐶BC, and 𝐶→𝐴CA, what is the closure of {𝐵}?

a)

A. {𝐵}

b)

B. {𝐵,𝐶}

c)

C. {𝐵,𝐶,𝐴}

d)

D. {𝐵,𝐶,𝐴,𝐷}

58.

 Given 𝐴𝐵→𝐶ABC, 𝐶→𝐷CD, and 𝐷→𝐴DA, what is the closure of {𝐴,𝐵}?

a)

A. {𝐴,𝐵,𝐶}

b)

B. {𝐴,𝐵,𝐶,𝐷}

c)

C. {𝐴,𝐵}

d)

D. {𝐴,𝐵,𝐷}

59.

Consider a relation scheme R = (A, B, C, D, E, H) on which the following functional dependencies hold: {A–>B, BC–> D, E–>C, D–>A}. What are the candidate keys of R?

a)

(a) AE, BE 

b)

(b) AE, BE, DE 

c)

(c) AEH, BEH, BCH 

d)

(d) AEH, BEH, DEH 

60.

 Which of the following is a non-trivial functional dependency?

a)

   A) `{A} → {A}`

b)

   B) `{A, B} → {A}`

c)

C) `{A} → {}`

d)

   D) `{A} → {B}`

61.

Which property does every functional dependency (FD) satisfy?

a)

   A) Augmentation

b)

   B) Reflexivity

c)

   C) Transitivity

d)

   D) Symmetry

62.

If `{A → B}` and `{B → C}` are given, which property of FD can be applied to derive a new dependency?

a)

A) Reflexivity

b)

B) Decomposition

c)

  C) Transitivity

d)

   D) Symmetry

63.

If the relation `R` has 100 tuples and each combination of values `{A, B}` uniquely determines `C`, how many distinct values of `D` can exist in the relation?

a)

   A) 1

b)

   B) 10

c)

   C) 100

d)

D) 1000

64.

Consider a relation `Employee(EmpID, EmpName, DeptID, Salary)` with the following functional dependencies:

   - `{EmpID} → {EmpName, DeptID, Salary}`

 

   How many attributes are in the closure of attribute set `{EmpID}`?

a)

   A) 1

b)

   B) 2

c)

   C) 3

d)

   D) 4

e)

E) None

65.

Consider the relation X(P,Q,R,S,T,U) with the following set of functional dependencies F = { {P,R} -> {S,T},   {P,S,U}->{Q,R} ) which of the following is trivial functional dependency in F+, where F+ is closure of F?

a)

(A)  {P,R} -> {S,T}

b)

(B)  {P,R} -> {R,T}

c)

(C)  {P,S} -> {S}

d)

(D)  {P,S,U} -> {Q}