Dbms interview questions

379 views 52 slides Nov 25, 2019
Slide 1
Slide 1 of 52
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28
Slide 29
29
Slide 30
30
Slide 31
31
Slide 32
32
Slide 33
33
Slide 34
34
Slide 35
35
Slide 36
36
Slide 37
37
Slide 38
38
Slide 39
39
Slide 40
40
Slide 41
41
Slide 42
42
Slide 43
43
Slide 44
44
Slide 45
45
Slide 46
46
Slide 47
47
Slide 48
48
Slide 49
49
Slide 50
50
Slide 51
51
Slide 52
52

About This Presentation

https://youtu.be/PEGbGZaIw5Y


Slide Content

Interview questions

1. What is Database ?
Adatabaseisacollectionofinformationthatisorganized.Sothatitcan
easilybeaccessed,managedandupdated.
DBMS INTERVIEW QUESTIONS WITH ANSWER

2. What is DBMS ?
DBMSstandsforDatabaseManagementSystem.Itisacollectionof
programsthatenablesusertocreateandmaintainadatabase.
DBMS INTERVIEW QUESTIONS WITH ANSWER

3. What is a Database system ?
ThedatabaseandDBMSsoftwaretogetheriscalledasDatabasesystem.
DBMS INTERVIEW QUESTIONS WITH ANSWER

4. What are the advantages of DBMS ?
1.Redundancyiscontrolled.
2.Providingmultipleuserinterfaces.
3.Providingbackupandrecovery.
4.Unauthorizedaccessisrestricted.
5.Enforcingintegrityconstraints.
DBMS INTERVIEW QUESTIONS WITH ANSWER

5. What is normalization ?
Itisaprocessofanalysingthegivenrelationschemasbasedontheir
FunctionalDependencies(FDs)andprimarykeytoachievetheproperties
1.Minimizingredundancy
2.Minimizinginsertion,deletionandupdateanomalies.
1. as
DBMS INTERVIEW QUESTIONS WITH ANSWER

6. What is Data Model ?
Acollectionofconceptualtoolsfordescribingdata,datarelationshipsdata
semanticsandconstraints.
DBMS INTERVIEW QUESTIONS WITH ANSWER

7. What is E-R model ?
Thisdatamodelisbasedonrealworldthatconsistsofbasicobjects
calledentitiesandoftherelationshipamongtheseobjects.Entitiesare
describedinadatabasebyaassetofattributes.
DBMS INTERVIEW QUESTIONS WITH ANSWER

8. What is Object Oriented model ?
Thismodelisbasedoncollectionofobjects.Anobjectcontainsvalues
storedininstancevariableswithintheobject.Anobjectalsocontains
bodiesofcodethatoperateontheobject.Thesebodiesofcodearecalled
methods.Objectsthatcontainsametypesofvaluesandthesame
methodsaregroupedtogetherintoclasses.
DBMS INTERVIEW QUESTIONS WITH ANSWER

9. What is an Entity ?
Anentityisathingorobjectofimportanceaboutwhichdatamustbe
captured.
DBMS INTERVIEW QUESTIONS WITH ANSWER

10. What is DDL ?
DataDefinitionLanguage.
Adatabaseschemaisspecifiesbyasetofdefinitionsexpressedbya
speciallanguagecalledDDL.
DBMS INTERVIEW QUESTIONS WITH ANSWER

11. What is DML ?
DataManipulationLanguage
Thislanguagethatenableusertoaccessormanipulatedataasorganisedby
appropriatedatamodel.
ProceduralDMLorLowlevel:DMLrequiresausertospecifywhatdataare
neededandhowtogerthosedata.
Non-ProceduralDMLorHighlevel:DMLrequiresausertospecifywhatdata
areneededwithoutspecifyinghowtogerthosedata.
DBMS INTERVIEW QUESTIONS WITH ANSWER

12. What is DML Compiler ?
IttranslateDMLstatementsinaquerylanguageintolow-levelinstruction
thatthequeryevaluationenginecanunderstand.
DBMS INTERVIEW QUESTIONS WITH ANSWER

13. What is Query evaluation engine ?
Itexecuteslow-levelinstructiongeneratedbycompiler.
DBMS INTERVIEW QUESTIONS WITH ANSWER

14. What is Functional Dependency ?
FDisthestartingpointofnormalization.FDexistswhenarelation
betweentwoattributesallowsyoutouniquelydeterminethe
correspondingattribute’svalue.
DBMS INTERVIEW QUESTIONS WITH ANSWER

15. What is 1 NF (Normal Form) ?
Thefirstnormalformor1NFisthefirstandthesimplesttypeof
normalizationthatcanbeimplementedinadatabase.Themainaimsof
1NFareto:
1.Eliminateduplicativecolumnsfromthesametable.
2.Createseparatetablesforeachgroupofrelateddataandidentify
eachrowwithauniquecolumn(theprimarykey).
DBMS INTERVIEW QUESTIONS WITH ANSWER

16. What is Fully functional dependency ?
AfunctionaldependencyXYisfullfunctionaldependencyifremovalof
anyattributeAfromxmeansthatthedependencydoesnotholdany
more.
DBMS INTERVIEW QUESTIONS WITH ANSWER

17. What is 2NF ?
ArelationschemaRisin2NFifitisin1NF.
Everynon-primeattributeAinRisfullyfunctionallydependentonprimary
key.
DBMS INTERVIEW QUESTIONS WITH ANSWER

18. What is 3NF ?
Arelationisinthirdnormalformifitisinsecondnormalformandthere
arenofunctional(transitive)dependenciesbetweentwoormorenon-
primekeyattributes.
DBMS INTERVIEW QUESTIONS WITH ANSWER

19. What is BCNF ?
Boyce-CoddNormalForm
AtableisinBCNFifandonlyifitisin3NFandeverydeterminantisa
candidatekey.
DBMS INTERVIEW QUESTIONS WITH ANSWER

20. What is 4NF ?
FourthnormalformrequiresthatatablebeBCNFandcontainnomulti-
valueddependencies.
DBMS INTERVIEW QUESTIONS WITH ANSWER

21. What is 5NF ?
Atableisin5NForProject-JoinNormalForm(PJNF)ifitisin4NFandit
cannothavealosslessdecompositionintoanynumberofsmallertables.
DBMS INTERVIEW QUESTIONS WITH ANSWER

22. What is a query ?
AquerywithrespecttoDBMSrelatestousercommandsthatareusedto
interactwithadatabase.
DBMS INTERVIEW QUESTIONS WITH ANSWER

23. What is meant by query optimization ?
Thephasethatidentifiesanefficientexecutionplanforevaluatingaquery
thathastheleastestimatedcostisreferredtoasqueryoptimization.
DBMS INTERVIEW QUESTIONS WITH ANSWER

24. What is an attribute ?
Itisaparticularproperty,whichdescribestheentity.
DBMS INTERVIEW QUESTIONS WITH ANSWER

25. What is RDBMS ?
RelationalDataBaseManagementSystem.
ItisDBMSthatmaintaindatarecordsandindicesintables.
DBMS INTERVIEW QUESTIONS WITH ANSWER

26. What’s different between DBMS, RDBMS ?
DBMSprovidessystematicandorganizedwayofstoring,managingand
retrievingfromcollectionoflogicallyrelatedinformation.
RDBMSalsoprovideswhatDBMSprovidesbutabovethatitprovides
relationshipintegrity.
DBMS INTERVIEW QUESTIONS WITH ANSWER

27. What is SQL ?
StructuredQueryLanguage.
SQLisanANSI(AmericanNationalStandardsInstitute)standard
computerlanguageforaccessingandmanipulatingdatabasesystems.
SQLstatementsareusedtoretrieveandupdatedatainadatabase.
DBMS INTERVIEW QUESTIONS WITH ANSWER

28. What is Stored Procedure ?
AstoredprocedureisanamedgroupofSQLstatementthathavebeen
previouslycreatedandstoredintheserverdatabase.
DBMS INTERVIEW QUESTIONS WITH ANSWER

29. What is a view ?
Aviewmaybeasubsetofthedatabaseoritmaycontainvirtualdatathat
isderivedfromthedatabasefilesbutisnotexplicitlystored.
DBMS INTERVIEW QUESTIONS WITH ANSWER

30. What is Trigger ?
AtriggerisaSQLprocedurethatinitiatesanactionwhenanevent
(INSERT,DELETEorUPDATE)occurs.
DBMS INTERVIEW QUESTIONS WITH ANSWER

31. What is Index ?
Anindexisaphysicalstructurecontainingpointerstothedata.
DBMS INTERVIEW QUESTIONS WITH ANSWER

32. What is extension and intension ?
Extension:itisthenumberoftuplespresentinatableatanyinstance.
Thisistimedependent.
Intension:itisaconstantvaluethatgivesthename,structureoftableand
theconstraintslaidonit.
DBMS INTERVIEW QUESTIONS WITH ANSWER

33. What do you mean by atomicity and
aggregation ?
Atomicity:thisstatesthatdatabasemodificationsmustfollowan“allor
nothing”rule.Eachtransactionissaidtobe“atomic”.Ifonepartofthe
transactionfail,theentiretransactionfails.
Aggregation:afeatureoftheentityrelationshipmodelthatallowsa
relationshipsettoparticipateinanotherrelationshipset.Thisisindicated
onanERdiagrambydrawingadashedboxaroundtheaggregation.
DBMS INTERVIEW QUESTIONS WITH ANSWER

34. What is RDBMS KERNAL ?
TwoimportantpiecesofRDBMSarchitecturearethekernel,whichisthe
software,andthedatadictionary,whichconsistsofthesystem-leveldata
structureusedbythekerneltomanagethedatabase.
DBMS INTERVIEW QUESTIONS WITH ANSWER

35. Name the sub-system of a RDBMS ?
I/O,Security,LanguageProcessing,ProcessControl,Storage
Management,LoggingandRecovery,DistributionControl,Transaction
Control,MemoryManagement,LockManagement.
DBMS INTERVIEW QUESTIONS WITH ANSWER

36. How do you communicate with an RDBMS ?
YoucancommunicatewithanRDBMSusingStructuredQueryLanguage
(SQL)
DBMS INTERVIEW QUESTIONS WITH ANSWER

37. Disadvantage of File Processing System.
•Dataredundancy&inconsistency.
•Difficultinaccessingdata.
•Dataisolation.
•Dataintegrity.
•Concurrentaccessisnotpossible.
•Securityproblems.
DBMS INTERVIEW QUESTIONS WITH ANSWER

38. What is VDL ?
ViewDefinitionLanguage
Itspecifiesuserviewsandtheirmappingstotheconceptualschema.
DBMS INTERVIEW QUESTIONS WITH ANSWER

39. What is SDL ?
StorageDefinitionLanguage.
Thislanguageistospecifytheinternalschema.Thislanguagemay
specifythemappingbetweentwoschemas.
DBMS INTERVIEW QUESTIONS WITH ANSWER

40. Describe concurrency control ?
Concurrencycontrolistheprocessmanagingsimultaneousoperations
againstadatabasesothatdatabaseintegrityisnocompromised.There
aretwoapproachestoconcurrencycontrol.
Thepessimisticapproachinvolveslockingandtheoptimisticapproach
involvesversioning.
DBMS INTERVIEW QUESTIONS WITH ANSWER

41. Describe the difference between
homogeneous and heterogeneous distributed
database.
HomogeneousdatabaseisonethatusesthesameDBMSateachnode.
HeterogeneousdatabaseisonethatmayhavedifferentDBMSateach
node.
DBMS INTERVIEW QUESTIONS WITH ANSWER

42. What is a distributed database ?
Adistributeddatabaseisasinglelogicaldatabasethatisspreadacross
morethanonenodeorlocationsthatareallconnectedviasome
communicationlink.
DBMS INTERVIEW QUESTIONS WITH ANSWER

43. Explain the difference between two and
three-tire architectures.
Three-tirearchitectureincludesaclientandtwoserverlayers.The
applicationcodeisstoredontheapplicationserverandthedatabaseis
storedonthedatabaseserver.
Two-tirearchitectureincludesaclientandoneserverlayer.Thedatabase
storedonthedatabaseserver.
DBMS INTERVIEW QUESTIONS WITH ANSWER

44. Briefly describe the three types of SQL
commands.
Adatabaseisacollectionofinformationthatisorganized.Sothatitcan
easilybeaccessed,managedandupdated.
DBMS INTERVIEW QUESTIONS WITH ANSWER

45. List some of the properties of a relation ?
Relationsinadatabasehaveauniquenameandnomultivaluedattributes
exist.
Eachrowsisuniqueandeachattributewitharelationhasauniquename.
Thesequenceofbothcolumnsandrowsisirrelevant.
DBMS INTERVIEW QUESTIONS WITH ANSWER

46. Explain the differences between an intranet
and an extranet ?
AnIntranetdatabaseisaccessiblebyeveryonewhohasaccesstoa
website.
Anintranetdatabase limitsaccesstoonlypeoplewithinagiven
organization.
DBMS INTERVIEW QUESTIONS WITH ANSWER

47. What is SQL Deadlock ?
Deadlockisauniquesituationinamultiusersystemthatcausestwoor
moreuserstowaitindefinitelyforalockedresource.
DBMS INTERVIEW QUESTIONS WITH ANSWER

48. What is a Catalog?
Acatalogisatablethatcontainstheinformationsuchasstructureofeach
file,thetypeandstorageformatofeachdataitemandvariousconstraints
onthedata.
TheinformationstoredinthecatalogiscalledMetadata.
DBMS INTERVIEW QUESTIONS WITH ANSWER

49. Describe the three level of abstraction.
PhysicalLevel:thelowestlevelofabstractiondescribeshowdataarestored.
LogicalLevel:thenexthigherlevelofabstraction,describeswhatdataare
storedindatabaseandwhatrelationshipamongthosedata.
ViewLevel:thehighestlevelofabstractiondescribesonlypartofentire
database.
DBMS INTERVIEW QUESTIONS WITH ANSWER

50. How many types of relationship exist in
database design ?
1.One-to-one
2.One-to-many
3.Many-to-many
4.Many-to-one
DBMS INTERVIEW QUESTIONS WITH ANSWER

SUBSCRIBE FOR MORE