0% found this document useful (0 votes)
81 views32 pages

Dbms DPP

The document contains a series of multiple-choice questions and answers related to database design and entity-relationship models. Key topics include entity participation, referential integrity, and the conversion of ER diagrams to relational schemas. The document also discusses attributes, relationships, and normalization in databases.

Uploaded by

kunalsvlogs2000
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)
81 views32 pages

Dbms DPP

The document contains a series of multiple-choice questions and answers related to database design and entity-relationship models. Key topics include entity participation, referential integrity, and the conversion of ER diagrams to relational schemas. The document also discusses attributes, relationships, and normalization in databases.

Uploaded by

kunalsvlogs2000
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

37

GADOTIITEN UTSA2417 UT EIHT

ER Model Question
DPP
It1. If there are 'n' entities in E1 and 'm' entities in E2, what is the possible number of
entities participating in the relationship R, if there is total participation from E1 side?

(a) Minimum n

(b) Maximum n

(c) Exactly n

(d) At least n and at most m

ANSWER: C
It2. In a database system, the __ represents the structural blueprint of the database,
defining its organization and relationships. Meanwhile, the __ refers to the current
state of the database, capturing all the data at a specific point in time.

(a) relation, domain


(b) instance, schema
(c) schema, instance
(d) relation, schema

ANSWER: C
3. Suppose R is a relationship type with three participating entity types E1, E2, E3. If
the number of entities in E1, E2 and E3 are 5, 10, and 4, respectively, the cardinality of
the set of all possible instances of R is: MCQ

A. 19 Xi
B. 200
C. 2^200
D. 3^200

Ans : C
4. Suppose X is a composite attribute of an entity type and has three components - C1,
C2 and C3, where only C2 is multi-valued. If domain sets of C1, C2 and C3 have 5, 3,
and 4 elements respectively, what is the size of the domain of X? MCQ

A.60
B. 12
C. 120
D. 160

Ans : D
DAI
5. Which of the following is true? MSQ
A. Participation at weak entity set side should be total participation.
B. Mapping between strong entity set and weak entity set must be M:1
C. Multi-valued attribute and weak entity set representation is allowed in ER diagram
and as well as in RDBMS.
D. Multi-valued attributes represented by double oval circle.

Ans : A,D
DII
6. Which of the following statements correctly describe referential integrity? MCQ

A) Every foreign-key value must correspond to an existing primary-key value in a


related table.
B) Every primary-key value must be linked to a primary-key value in another related
table.
C) Every primary-key value should match a foreign-key value in a different table.
D) Every foreign-key value should match another foreign-key value in a linked table.

Ans : A
py
7. When converting a many-to-many self-referencing relationship into a relational
schema, how many relations need to be created? MCQ

A) Three relations are formed


B) One relation is formed
C) Four relations are formed
D) Two relations are formed

Ans : D
8.

What is the minimum number of references needed in an optimized relational


database schema derived from the given Entity-Relationship Diagram (ERD) NAT
Answer: 4
9. If there are 'n' entities in E1 and 'm' entities in E2, what is the possible number of
entities participating in the relationship R, if there is total participation from E1 side?
DIE DPP

(a) Minimum n Xt

(b) Maximum n

(c) Exactly n

(d) At least n and at most m

Ans : C
10. In a database system, the __ represents the structural blueprint of the database,
defining its organization and relationships. Meanwhile, the __ refers to the current state
of the database, capturing all the data at a specific point in time. MCQ

(a) relation, domain


Xi
(b) instance, schema
(c) schema, instance
(d) relation, schema

Ans : C
DIO
11. To accurately represent the given Entity-Relationship (ER) diagram in a relational
database, what is the smallest number of tables needed? MCQ

(a) 3

(b) 1

(c) None of the above

(d) 2

Ans : D
DIE
12. Consider a table with two columns, X and Y, where X is the primary key and Y
serves as a foreign key referencing X with ON DELETE CASCADE.
How many additional records must be removed to maintain referential integrity when
the tuple (4, 5) is deleted? MCQ
X Y (a) 2
3 4
(b) 5
4 5
(c) 3
5 6
7 4 (d) 4
9 7
11 4
8 6
12 13
10 9
6 8
Ans : 5
13 12
13. Which of the following statements correctly describe referential integrity? MCQ

(a) Every foreign-key value must correspond to an existing primary-key value in a


related table.
(b) Every primary-key value must be linked to a primary-key value in another related
table.
(c) Every primary-key value should match a foreign-key value in a different table.

(d) Every foreign-key value should match another foreign-key value in a linked table

Ans : A
DPI
14. When converting a many-to-many self-referencing relationship into a relational
schema, how many relations need to be created? MCQ
(a) Three relations are formed
(b) One relation is formed
(c) Four relations are formed
(d) Two relations are formed

Ans : D
DIA
15. Let P(x, y, z) and Q(m, n, o) be two relations where m is a foreign key in Q
referencing
the primary key of P. Consider the following four operations on P and Q:
1. Adding a record to P
2. Adding a record to Q
3. Removing a record from P
4. Removing a record from Q
Which of the following statements correctly describes referential integrity violation in
this scenario? MCQ
(a) Only operations 1 and 4 can violate referential integrity.
(b) None of 1, 2, 3, or 4 will cause a referential integrity violation.
(c) Only operations 2 and 3 can violate referential integrity.
(d) All of 1, 2, 3, and 4 can cause a referential integrity violation

Ans : C
DIA
16. Match the following with Respect to RDBMS: MCQ

List-I List-II

Entity Integrity (a) 1. Ensures no duplicate rows in a table.

Domain Integrity (b) 2. Ensures valid entries for a column.

Referential Integrity (c) 3. Prevents deletion of referenced rows.

4. Applies specific business rules that


User-Defined Integrity(d) do not fall under entity or domain
constraints.
Choose the Correct Answer Set:

Option a (Entity) b (Domain) c (Referential) d


(User-defined)
A 1 2 3 4
B 3 1 2 4
C 1 3 4 2
D 2 4 1 3

Ans : A
DI
17. What is the minimum number of tables required to store the attributes A, B, C, D,
R₁, R₂,R₃, R₄, and R₅ while ensuring proper database normalization? MCQ
(a) 3
(b) 4
(c) 5
(d) 6

Ans : 5
18. Which of the following represents a valid attribute set for one of the table
corresponding to the correct answer to the previous question? MCQ
(a) (c₁, c₂)
(b) (a₁, a₂)
(c) (b₁, b₁, c₁, a₁)
(d) (a₁, b₁, c₁)

Ans : C
DI
19. Observe the given Entity-Relationship (ER) Diagram. Based on this diagram,
determine the minimum number of relational database tables that are required when
converting it into a relational model___________ NAT

Ans : 9
20. Given the Entity-Relationship Diagram (ERD) shown below, which of the following
relational representations would be invalid when converting the ERD into a relational
model? MCQ
(a) Person (NID, Name)
(b) Qualification (NID, ExamID, QualifiedDate)
(c) Exam (ExamID, NID, ExamName)
(d) Exam (ExamID, ExamName)

Ans : C
Pg
21. Which approach should be followed to transform a weak entity set into a strong
entity set in an entity-relationship diagram? MCQ

(a) Generalization
(b) Aggregation
(c) Specialization
(d) Adding suitable attributes

Ans : D
DIE
22. In a many-to-one relationship between the entity sets r1 and r2, how can this be
represented using functional dependencies, if Pk(r) represents the primary key
attribute of relation r? A. B. C. D. Pk(r2) → (a) Minimum n

(a) Pk(r2) → Pk(r1)


(b) Pk(r2) → Pk(r1) and Pk(r1) → Pk(r2)
(c) Pk(r1) → Pk(r2)
(d) Pk(r1) or Pk(r1) → Pk(r2)

Ans : C
23. How many tables are required at a minimum and maximum to transform an ER
model consisting of two entities and a single relationship between them, where both
entities have partial participation constraints?
(a) Minimum 1, Maximum 2

(b) Minimum 1, Maximum 3

(c) Minimum 2, Maximum 3

(d) Minimum 2, Maximum

Ans : C
DEO
24. Consider two entities, M and N, in an E-R model where each entity has simple,
single-valued attributes. There are two relationships, R1 and R2, between M and N:
R1 represents a one-to-many relationship between M and N.
R2 represents a many-to-many relationship between M and N.
What is the minimum number of tables required to represent M, N, R1, and R2 in the
relational model? MCQ
(a) 7

(b) 3

(c) 4

(d) 6
Ans : B
É

You might also like