DBMS 2 MCQ
DBMS 2 MCQ
MCQ on DBMS
A. Data
B. Fields
C. Redundancy
D. Database
A. Insert
B. Update
C. Delete
D. All of the above
A. 1NF
B. 2NF
C. 3NF
D. BCNF
4. 2NF relations are those that are in 1NF with all the attribute types dependent on the ___ key.
A. Primary
B. Foreign
C. Composite
D. Alternate
A. Transition Dependency
B. No Transition Dependency
C. Relational Dependency
D. No Relational Dependency
6. 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
A. When a relation is in 2NF and does not contain transitive partial dependencies, it will be in 3NF.
B. Data duplication is reduced by using 3NF.
C. It helps maintain the integrity of the data.
D. All of the above
10. Non-prime attributes cannot be transitively dependent, so the relation must have the ___ normal
form.
A. First
B. Second
C. Third
D. Fourth
11. There needs to be 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. Every element of Y is a part of some candidate key, i.e, Y is a prime attribute.
C. Either A or B
D. None of the above
13. If more than one value of B is present for a single value of A in a dependency A -> B, then the
relationship is ___.
A. Single
B. Multi-valued
C. Both a and b
D. None of the above
14. A table is in BCNF if it is in 3NF and if every determinant is a ___________ key.
a) Dependent
b) Normal
c) Candidate
d) Both Normal and Candidate
15. In a given relationship R, if an attribute A uniquely defines all other attributes, then the attribute
A is a key attribute which is also known as the _________ key.
a) Candidate
b) Join
c) Functional
d) None of the Mentioned
16. Every time attribute A appears, it is matched with the same value of attribute B, but not the same
value of attribute C. Therefore, it is true that:
a) A -> B
b) A -> C
c) A -> (B,C)
d) (B,C) -> A
A. {A}
B. {A}, {C, D}
C. {A}, {C, D}, {A, D}
D. {C, D}
18. Which functional dependency types is/are not present in the following dependencies?
Empno -> EName, Salary, Deptno, DName
DeptNo -> DName
EmpNo -> DName
A. 0NF
B. 1NF
C. 2NF
D. 3NF
21. If one attribute is determinant of second, which in turn is determinant of third, then the relation
cannot be:
A. Well-structured
B. 1NF
C. 2NF
D. 3NF
22. R(A,B,C,D) is a relation, Which of the following does not have a lossless join dependency
preserving BCNF decomposition
A. A->B, B->CD
B. A->B, B->C,C->D
C. AB->C, C->AD
D. A->BCD
23. Assume a relation X (M, N, O, P, Q) that has the following functional dependencies:
MNO -> PQ and
P -> MN
The total number of superkeys of X would be:
a. 12
b. 10
c. 7
d. 2
24. Which of the following is not Armstrong’s Axiom?
a) Reflexivity rule
b) Transitivity rule
c) Pseudotransitivity rule
d) Augmentation rule
25. The relation employee(ID,name,street,Credit,street,city,salary) is decomposed into
employee1 (ID, name)
employee2 (name, street, city, salary)
This type of decomposition is called
a) Lossless decomposition
b) Lossless-join decomposition
c) All of the mentioned
d) None of the mentioned
26. Inst_dept (ID, name, salary, dept name, building, budget) is decomposed into
instructor (ID, name, dept name, salary)
department (dept name, building, budget)
This comes under
a) Lossy-join decomposition
b) Lossy decomposition
c) Lossless-join decomposition
d) Both Lossy and Lossy-join decomposition
27. Suppose relation R(A,B,C,D,E) has the following functional dependencies:
A -> B
B -> C
BC -> A
A -> D
E -> A
D -> E
Which of the following is not a key?
a) A
b) E
c) B, C
d) D
28. Let a relation be R(ABCDE)
FD = {AB->C, C->D, D->E, E->B}
Then which normal form it satisfies.
(A).1NF
(B).BCNF
(C).2NF
(D).3NF
29. Consider a schema R(X, Y, Z, W) and functional dependencies X->Y and W->Z then the
decomposition of R into T1(X, Y) and T2(Z, W) is
(A).Lossless decomposition
(B).Lossy decomposition
(C).Either lossless or lossy
(D).None of these
31. For a database relation R(a,b,c,d) where the domains of a,b,c, and d include only atomic values,
only the following functional dependencies and those that can be inferred from them hold
a->c, b->d the relation is in
(A).First normal form but not in second normal form
(B).Second normal form but not in third normal form
(C).Third normal form
(D).All of the above