db.q5.1
db.q5.1
DATABASE&SQL
TESTSEDITION
1 . What is the primary purpose of an Entity Relationship (ER) model in Relational
DatabaseManagementSystems(RDBMS)?
A. Datastorage
B. Datamanipulation
C. Datavisualization
D.Dataorganization
2.Definetheterm"entity"inthecontextofanERmodel:
A. Acharacteristicofanobject
B. Adistinctobject
C. Arelationshipbetweenobjects
D. Apropertyofanobject
3.ExplainthedifferencebetweenanentityandanattributeinanERmodel:
A. Entities represent objects while attributes represent
characteristicsofthoseobjects
B. Entities represent characteristics of objects while attributes represent the
objectsthemselves
C. Entitiesareusedforcategorizationwhileattributesareusedforspecialization
D. Entitiesareusedforspecializationwhileattributesareusedforcategorization
4.WhatisarelationshipinanERmodel?Provideanexample.
A. Aconnectionbetweenentities,like"EmployeeworksforCompany"
B. Acharacteristicofanentity,like"EmployeeID"
C. Acategoryofentities,like"Employee"
D. Ahierarchyofentities,like"ManagerisatypeofEmployee"
5.DescribethecardinalityconstraintsusedinanERmodelandtheirsignificance:
A. They define the primary key of an entity and their significance is inuniquely
identifyingeachentity
B. They define the types of attributes a certain entity can have and their
significanceisincategorizingentities
C. They define the number of entities involved in a relationship and
theirsignificanceisinspecifyinghowinstancesofentitiesrelateto
oneanother
D. Theydefinethetypesofrelationshipsanentitycanhaveandtheirsignificance
isinorganizingentitiesintogroups
6.WhatisspecializationinthecontextofERmodeling?
A. Itreferstotheprocessofcombiningmultipleentitiesintoasingleentity
B. It refers to the process of dividing a single entity into multiple
sub-entitiesbasedoncharacteristics
C. Itreferstotheprocessofcreatingnewattributesforanentity
D. Itreferstotheprocessofcreatingrelationshipsbetweenentities
7.HowdoesgeneralizationdifferfromspecializationinERmodeling?
A. Generalizationistheoppositeofspecialization.
B. Generalization combines entities while specialization divides
entities.
C. Generalizationcreatesnewentitieswhilespecializationremovesentities.
D. Generalizationisthesameasspecialization.
8.DefinetheconceptofcategorizationasappliedinanERmodel.
A. Itreferstotheprocessofdividingentitiesintodifferenttypes.
B. Itreferstotheprocessofcombiningentitiesintoasingleentity.
C. Itreferstotheprocessofcreatingrelationshipsbetweenentities.
D. Itreferstotheprocessofcreatingnewattributesforanentity.
. Explain the role of keys in establishing relationships between entities in an ER
9
model.
A. Keysareusedtodefinethenumberofentitiesinvolvedinarelationship.
B. Keysareusedtouniquelyidentifyeachentitywithinanentityset.
C. Keysareusedtocategorizeentitiesbasedontheirattributes.
D. Keysareusedtospecifythetypesofrelationshipsanentitycanhave.
10.DiscusstheimportanceofnormalizationinthedesignprocessofanERmodel.
A. Itensuresthateachattributewithinanentityhasauniquevalue.
B. It reduces redundancy and dependency by organizing data into
multiplerelatedtables.
C. Itestablishesrelationshipsbetweenentitiesbasedontheirkeys.
D. Itvisualizesthedatastructureofanentityinahierarchicalformat.
SECTIONB(Attemptany3)
1 .Compareandcontrasttheadvantagesanddisadvantagesofusingageneralization
hierarchyversusmultiplespecializationhierarchiesinanERmodel.
AdvantagesofaGeneralizationHierarchy:
E. S implifies Design: Combines similar entities into one parent, reducing
repetition.
F. SharedFeatures:Childentitiesinheritcommonattributesfromtheparent.
G. Flexibility: Focuses on shared features, making it easier to group similar
entities..
DisadvantagesofaGeneralizationHierarchy:
1 . L essDetail:Uniqueattributesforspecificentitiesmaybeoverlooked.
2. ComplexSearches:Findingspecificentitiescanrequiremorefiltering.
3. Hard to Expand: Managing more entities and relationships becomes tricky as
themodelgrows.
AdvantagesofMultipleSpecializationHierarchies:
1 . M oreDetail:Clearlyseparatesentitieswithuniquefeatures.
2. EasytoUnderstand:Specificentitiesaremodeledmoreexplicitly.
3. BetterSearches:Queriesforspecificentitiesaresimplerandmoredirect.
DisadvantagesofMultipleSpecializationHierarchies:
1 . R epetition:Commonattributesmaybeduplicatedacrossentities.
2. ComplicatedDesign:Requirescarefulplanningtoavoidoverlaps.
3. HardtoMaintain:Changesneedtobeupdatedinmultipleplaces.
se generalization for simplicity and shared features. Use specialization when you
U
needmoredetailsandclarityabouteachentity.
.SozzoPropertyConsultantsmaintainatableofPropertiesbelow,thatareavailable
2
for the public to consume. Using specialization, design an ER model, including the
attributes,toachievebetterdataorganization.
. Using an example scenario, illustrate how you would represent a many-in-many
3
relationship between entities in the ER model,includingthenecessaryattributeand
cardinalityconstraints.
Entities:
● Student:torepresentstudentsinthesystem
Attributes:(
studentID studentName
, )
● Course:torepresentcoursesinthesystem
Attributes: (
sourseID courseName
, )
● Enrollment:introductionofanassociativeentity/junction
Attributes:(
studentID,courseID,date
)
Relationship:
nrolls:AStudentenrollsinoneormoreCourses,andeachCourseistakenbyoneor
E
moreStudents.i.eStudent↔Enrolls↔Course
CardinalityvsConstraintsvsParticipation:
● Student↔Enrollment
Minimum:0(Optional,astudentmaynotenrollinanycourse).
Maximum:*(Astudentcanenrollinmultiplecourses)i.e(1:M)/(0..*)
● Course↔Enrollment
Minimum:1(Mandatory,acoursemusthaveatleastonestudentenrolled)
Maximum:*(Acoursecanhavemanystudentsenrolled)i.e(M:1)/(1..*)
. Discuss the role of the weak entities in an ER model and provide examples of
4
scenarioswheretheiruseisappropriate.
RoleofWeakEntities:
Scenario:
● Student:thisisastrongentityandcanexistindependently
studentID(uniqueidentifier),
Attributes: studentName
● Course:thisisastrongentityandcanexistindependently
Attributes:
sourseID(uniqueidentifier),
courseName
StudentIDand
PK/FK:Acombinationof CourseID
.Explainhowyouwouldhandlecomplexrelationships,suchasternaryrelationships,
5
inanERmodelprovidingadetailedexampleanddiscussinganypotentialchallenges.
reatedfor:SEC9
C
M
🏹isnotliabletoanydamages.
adeforPersonalrevision
Thereforeسهمساخن