DBMS - Unit 4 - Question Bank - Reg 2021
DBMS - Unit 4 - Question Bank - Reg 2021
QUESTIONBANK
Regulation
Degree & Branch : B.TECH- IT
: 2023-2024
Academic Year
UNIT-4
QUESTION BANK
SEM/YEAR: IV/II
Course Outcome:
CO4: Removal of anomalies using Normalization concepts
Normalization, Need for Normalization,NF1, NF2, NF3, NF4, NF5, Case Study: Apply
Conversion rules and normalize the Database.
Course Competence
Q.No. Questions Outcome BT Level
A function that has no partial functional dependencies is in
_______form.
A. 4NF
1 CO4 BT1
B. 3NF
C. 2NF
D. BCNF
Course Competence
Q.No. Questions Outcome BT Level
__________ is used to change the values of some attributes in
existing tuples.
A. Update
2 CO4 BT1
B. Drop
C. Truncate
D. Select
A BCNF is :
A. loss less join and dependency preserving
B. loss less join but not dependency preserving
3 BT1
C. not loss less join but dependency preserving CO4
D. Partial Dependency and left join
Which of the following is a tuple-generating dependencies ?
A. Functional dependency
CO4
4 B. Equality-generating dependencies BT1
C. Multivalued dependencies
D. Non-functional dependency
The main task carried out in the __________ is to remove
repeating attributes to separate tables.
A. 2NF
10 BT1
B. 3NF
CO4
C. 4NF
D. 5NF
The different classes of relations created by the technique for
preventing modification anomalies are called:
A. Normal forms
11 B. Referential integrity constraints CO4 BT2
C. Functional dependencies
D. None of the above is correct.
The procedure of storing higher normal form relations which are
in lower normal form as a base relation is classified as
A. isolation of data
12 CO4 BT1
B. de-normalization of data
C. normalization of data
D. denomination of data
The normal form which only includes indivisible values or single
atomic values is classified as
A. third normal form
13 B. first normal form CO4 BT1
C. second normal form
D. fourth normal form
Course Competence
Q.No. Questions Outcome BT Level
Which of the following statements about normal forms is FALSE?
A. Divisible
16 CO4 BT1
B. Single atomic
C. Multiple
D. Numeric
A table that displays data redundancies yields ____________
anomalies
A. Insertion
17 CO4 BT1
B. Deletion
C. Update
D. All of the above
Anomalies are avoided by splitting the offending relation into
multiple relations,is also known as_______.
A. Accupressure
18 BT1
B. Decomposition
CO4
C. Precomposition
D. Both decomposition & precomposition
Which of the following is true ?
A. Closure Dependency
20 BT1
B. Transitive Dependency
CO4
C. Normal Dependency
D. Functional Dependency
Course Competence
Q.No. Questions Outcome BT Level
Inst_dept (ID, name, salary, dept name, building, budget) is
decomposed into
21 CO4 BT3
This comes under
A. Lossy-join decomposition
B. Lossy decomposition
C. Lossless-join decomposition
D. Both a and b
A relation that has no partial dependencies is in which normal
form
A. First
22 BT3
B. Second
CO4
C. Third
D. BCNF
First normal form disallows ___________.
A. indivisible values
23 CO4 BT1
B. divisible values
C. single atomic values
D. multivalued attributes
In 2NF
A. {p | COND(t)}
29 CO4 BT1
B. {t | COND(t)}
C. {p | COND(p)}
D. {p| P(t)}
Which of the following is the result of bad database design?
A. Repetition of Information
30 B. Inability to represent some information CO4 BT1
C. Inconsistent database state due to some transaction
D. All of the above
Third normal form (3NF) is based on the concept of
______________.
A. Partial Dependency
32 CO4 BT1
B. Multivalued Dependency
C. Transitive Dependency
D. Full Functional Dependency.
An attribute is called _________,if it is not a member of any
candidate key.
A. Facilitate data
38 B. Functional data CO4 BT3
C. Facilitate dependency
D. Functional dependency
PART B (4 Marks)
Course Competence
Q.No. Questions Outcome BT Level
Explain 2NF.
In the 2NF, relational must be in 1NF.
In the second normal form, all non-key attributes are fully
functional dependent on the primary key
Example: Let's assume, a school can store the data of teachers and the
subjects they teach. In a school, a teacher can teach more than one
subject.
TEACHER table:
TEACHER_ID SUBJECT TEACHER_AGE
25 Chemistry 30
25 Biology 30
47 English 35
83 Math 38
83 Computer 38
1 In the given table, non-prime attribute TEACHER_AGE is dependent BT2
on TEACHER_ID which is a proper subset of a candidate key. That's
why it violates the rule for 2NF.
To convert the given table into 2NF, we decompose it into two tables: CO4
TEACHER_DETAIL table:
TEACHER_ID TEACHER_AGE
25 30
47 35
83 38
TEACHER_SUBJECT table:
TEACHER_ID SUBJECT
25 Chemistry
25 Biology
47 English
83 Math
83 Computer
Write short note on normalization.
Ans:
Database Normalization is a design technique. Using this we can
design or re-design schemas in the database to reduce redundant data
and the dependency of data by breaking the data into smaller and more
2 relevant tables. BT1
CO4
The primary purpose of the normalization is to reduce the data
redundancy i.e. the data should only be stored once. This is to avoid
any data anomalies that could arise when we attempt to store the same
data in two different tables, but changes are applied only to one and
not to the other.
Course Competence
Q.No. Questions Outcome BT Level
Explain 1NF with suitable example.
Ans:
First Normal Form (1NF):
o A relation will be 1NF if it contains an atomic value.
o It states that an attribute of a table cannot hold multiple values.
It must hold only single-valued attribute.
o First normal form disallows the multi-valued attribute,
composite attribute, and their combinations.
Example:
3 Relation STUDENT in table 1 is not in 1NF because of multi-valued BT1
attribute STUD_PHONE. Its decomposition into 1NF has been shown CO4
in table 2.
4 CO4 BT2
Course Competence
Q.No. Questions Outcome BT Level
Illustrate functional dependency with example?
Ans:
Functional Dependency (FD) is a constraint that determines the
relation of one attribute to another attribute in a Database Management
System (DBMS). Functional Dependency helps to maintain the quality
of data in the database.
A functional dependency is denoted by an arrow “→”. The functional
dependency of X on Y is represented by X → Y.
Example:
Employee
Employee Name Salary City
number
5 BT2
CO4
1 Dana 50000 San Francisco