0% found this document useful (0 votes)
12 views21 pages

DBMSDPP11 by Vijay Agarwal Sir

Uploaded by

Aveen Ranjan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views21 pages

DBMSDPP11 by Vijay Agarwal Sir

Uploaded by

Aveen Ranjan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 21

Computer Science & IT

Engineering

DPP 11; Top 250 Questions


of DBMS Part- 11

DBMS : DPP 11 By- Vijay Agarwal Sir


[MCQ] Let R (a, b, c) and s(d, e, f) be two relation in which d is the
foreign key of S that refers to the primary key of R. Consider the
following four operations on R and S.
(i) Insert into R (ii) Insert into S
(iii) Delete from R (iv) Delete from S
Which of the following is true about the referential integrity
constraint above?

A None of (i), (ii), (iii), or (iv) can cause its violation

B All of (i), (ii), (iii), and (iv) can cause its violation

C Both (i) and (iv) can cause its violation

D Both (ii) and (iii) can cause its violation


[MCQ] Consider the following relation
Supervision(EmployeeID, Name, EmployeeID Name SupervisorID
SupervisorID)pertaining to a 1 A 4
company’s database: 2 A 3
The key SupervisorID acts as a 3 B 1
Foreign key in the relation 4 C 5
5 D 2
Supervision. 6 E 5
The following operations are 7 B 3
performed on the relation: 8 A 1
I: Insert a new employee having EmployeeID==‘9’and Name = A and
SupervisorID as ‘1’;
II: Set SupervisorID as ‘NULL’ where EmployeeID==2 OR
EmployeeID==4;
III: Set SupervisorID as ‘0’ where EmployeeID==1;
Which of the above operation(s) is/are ALLOWED?
A. I only B. I and II only C. III only D. I and III only
[NAT] Consider the following SQL Query:
Create table department
{
a integer;
b integer;
primary key (a);
foreign key (b) reference department ON
DELETE CASCADE
};
The Tuples (a, b) currently in the table department are:
(0, 2) (1, 2) (2, 1) (3, 0) (5, 0) (7, 3) (4, 2) (6, 1)
Consider the following query
Delete from department where a = 0
The number of Tuples that must be additionally deleted to preserve
referential integrity is _______.
[NAT]
Consider the following relation Supervision (EmployeeID,
Name, SupervisorID) pertaining to a company’s database:
The key SupervisorID acts as a Foreign key in the relation
Supervision. The schema follows “On Delete Cascade” constraint.
The employee having EmployeeID ‘5’ is deleted from the relation
Supervision. The number of tuples remaining in the relation are
_______. EmployeeID Name SupervisorID
1 A 4
2 A 6
3 B 2
4 C 5
5 D 2
6 E 3
7 B 4
8 A 1
[MCQ] Consider the following statements:
P: Insertion of tuples into referenced relation may cause foreign
key violation.
Q: Insertion of tuples into referencing relation may cause foreign
key violation.
Which of the following is/are CORRECT?

A. P only

B. Q only

C. Both P and Q

D. Neither P nor Q
[MCQ] Consider the following statements:
P: Updation of tuples into referenced relation may cause foreign
key violation.
Q: Updation of tuples into referencing relation may cause foreign
key violation.
Which of the following is/are INCORRECT?

A. P only

B. Q only

C. Both P and Q

D. Neither P nor Q
[MCQ]
Consider the following relationship entity diagram (ERD)

Which of the following possible relations will not hold if the above
ERD is mapped into a relation model?
A Person (NID, Name) B Qualification (NID, ExamID,
QualifiedDate)
C Exam (ExamID, NID, D Exam (ExamID, ExamName)
ExamName)
[MCQ]
Consider the following ERD:
Which of the following is the minimum number of relational table
and foreign key required for above ERD?

A. 3, 2

B. 1, 1

C. 2, 1

D. None of these
[NAT]
Consider the following ER diagram
Total number of RDBMS table in the above diagram?
[NAT]

Consider the following ER diagram:


The minimum number of RDBMS table required for this ER diagram is ____.
[MCQ] Consider the following ER model:
Which of the following is the minimum number of relational
tables and minimum number of foreign key required for
conversion into relational table?
A. 6, 4

B. 4, 5

C. 5, 4

D. 4, 6
Common data for Question No. 1,2
& 3 Consider the following ER-
diagram
[MCQ]

#Q.1 The minimum number of tables needed to represent A, B, C, D, R1, R2, R3, R4,
R5 is

A 3 B 4

C 5 D 6
[MCQ]

#Q.2 Above ER diagram, consists of Entity types B and D. These are connected by
R4 which does not have its own attribute.
Which one of the following is correct?

A Relationship R4 is many to one so R4 can be merged with that of B.

B Relationship R4 is many to one so R4 can be merged with that of D.

C Both a and b

D None of these
[MCQ]

#Q.3 Which of the following is a correct attribute set for one of the tables for the
correct answer to the above question?

A (a1,b1,c1)

B (b1,b1,c1,a1)

C (c1,c2)

D (a1,a2)
MCQ
Suppose 𝑅1 (A, B) and 𝑅2 (C, D) are two relation schemes. Let 𝑟1 and 𝑟2 be
the corresponding relation instances. B is a foreign key that refers to C in
𝑅2 . If data in 𝑟1 and 𝑟2 satisfy referential integrity constraints, which of
the following is ALWAYS TRUE?

A ΠB(r1)-ΠC(r2)=ϕ B ΠC(r2)-ΠB(r1)=ϕ

C ΠB(r1)=ΠC(r2) D ΠB(r1)-ΠC(r2) ≠ϕ
[NAT]

Consider a relational schema R(ABCDEFGHIJK) with the following FD’s set F


F: [AB→C, BD →EF, AD →GH, A→I, H→JK]
If a relation R is decomposed into lossless join & Dependency preserving 2NF &
3NF Decomposition. The minimum number of tables (Relation) required for 2NF
decomposition R is ‘A’ and for 3NF decomposition of R is ‘B’ respectively then the
value of 2A + B is .
Video Solution of DPP 11

Link: https://unacademy.com/a/Top-250-Questions-on-DBMS.html%27

Video Solution of DPP 11 LINK


THANK YOU!
Here’s to a cracking journey ahead!

You might also like