OperatingdSystemdQuestionsd&dAnswers
ThisdsetdofdOperatingdSystemdMultipledChoicedQuestionsd&dAnswersd(MCQs)dfocusesdond“Basics”.
1. Whatdisdoperatingdsystem?
a) collectiondofdprogramsdthatdmanagesdhardwaredresources
b) systemdservicedproviderdtodthedapplicationdprograms
c) linkdtodinterfacedthedhardwaredanddapplicationdprograms
d) alldofdthedmentionedd
Answer:dd
2. Todaccessdthedservicesdofdoperatingdsystem,dthedinterfacedisdprovideddbydthed
a) Systemdcalls
b) API
c) Library
d) Assemblydinstructions
dAnswer:da
3. Whichdonedofdthedfollowingdisdnotdtrue?
a) kerneldisdthedprogramdthatdconstitutesdthedcentraldcoredofdthedoperatingdsystem
b) kerneldisdthedfirstdpartdofdoperatingdsystemdtodloaddintodmemorydduringdbooting
c) kerneldisdmadedofdvariousdmodulesdwhichdcandnotdbedloadeddindrunningdoperatingdsystem
d) kerneldremainsdindthedmemorydduringdthedentiredcomputerdsessiond
Answer:dc
4. Whichdonedofdthedfollowingderrordwilldbedhandledbydthedoperatingdsystem?
a) powerdfailure
b) lackdofdpaperdindprinter
c) connectiondfailuredindthednetwork
d) alldofdthedmentionedd
Answer:dd
5. Whatdisdthedmaindfunctiondofdthedcommanddinterpreter?
a) todgetdanddexecutedthednextduser-specifieddcommand
b) todprovidedthedinterfacedbetweendthedAPIdanddapplicationdprogram
c) todhandledthedfilesdindoperatingdsystem
d) nonedofdthedmentionedd
Answer:da
6. Bydoperatingdsystem,dthedresourcedmanagementdcandbeddonedviad
a) timeddivisiondmultiplexing
b) spaceddivisiondmultiplexing
c) timedanddspaceddivisiondmultiplexing
d) nonedofdthedmentionedd
Answer:dc
7. Ifdadprocessdfails,dmostdoperatingdsystemdwritedthederrordinformationdtodad
a) logdfile
b) anotherdrunningdprocess
c) newdfile
d) nonedofdthedmentionedd
Answer:da
8. Whichdfacilityddynamicallydaddsdprobesdtodadrunningdsystem,dbothdinduserdprocessesdanddindthedkernel?
a) DTrace
b) DLocate
c) DMap
d) DAddd
Answer:da
,9. Whichdonedofdthedfollowingdisdnotdadrealdtimedoperatingdsystem?
a) VxWorks
b) WindowsdCE
c) RTLinux
d) PalmdOS
dAnswer:dd
10. ThedOSdXdhasd
a) monolithicdkernel
b) hybriddkernel
c) microkernel
d) monolithicdkerneldwithdmodulesd
Answer:db
OperatingdSystemdQuestionsd&dAnswersd–dProcesses
ThisdsetdofdOperatingdSystemdMultipledChoicedQuestionsd&dAnswersd(MCQs)dfocusesdond“Processes”.
1. Thedsystemsdwhichdallowdonlydonedprocessdexecutiondatdadtime,daredcalledd
a) uniprogrammingdsystems
b) uniprocessingdsystems
c) unitaskingdsystems
d) nonedofdthedmentionedd
ViewdAnswer
Answer:db
Explanation:dThosedsystemsdwhichdallowsdmoredthandonedprocessdexecutiondatdadtime,daredcalleddmultiprogrammingdsyste
ms.dUniprocessingdmeansdonlydonedprocessor.
2. Indoperatingdsystem,deachdprocessdhasditsdownd
a) addressdspacedanddglobaldvariables
b) opendfiles
c) pendingdalarms,dsignalsdanddsignaldhandlers
d) alldofdthedmentionedd
ViewdAnswer
Answer:dddExplanati
on:dNone.
3. IndUnix,dWhichdsystemdcalldcreatesdthednewdprocess?
a) fork
b) create
c) new
d) nonedofdthedmentionedd
ViewdAnswer
Answer:dadExplanati
on:dNone.
4. Adprocessdcandbedterminateddduedtod
a) normaldexit
b) fatalderror
c) killeddbydanotherdprocess
d) alldofdthedmentionedd
ViewdAnswer
Answer:dddExplanati
on:dNone.
,5. Whatdisdthedreadydstatedofdadprocess?
a) whendprocessdisdscheduleddtodrundafterdsomedexecution
b) whendprocessdisdunabledtodrunduntildsomedtaskdhasdbeendcompleted
c) whendprocessdisdusingdthedCPU
d) nonedofdthedmentionedd
ViewdAnswer
Answer:da
Explanation:dWhendprocessdisdunabledtodrunduntildsomedtaskdhasdbeendcompleted,dthedprocessdisdindblockeddstatedanddifdpro
cessdisdusingdthedCPU,ditdisdindrunningdstate.
6. Whatdisdinterprocessdcommunication?
a) communicationdwithindthedprocess
b) communicationdbetweendtwodprocess
c) communicationdbetweendtwodthreadsdofdsamedprocess
d) nonedofdthedmentionedd
ViewdAnswer
Answer:dbdExplanati
on:dNone.
7. Adsetdofdprocessesdisddeadlockdifd
a) eachdprocessdisdblockeddanddwilldremaindsodforever
b) eachdprocessdisdterminated
c) alldprocessesdaredtryingdtodkilldeachdother
d) nonedofdthedmentionedd
ViewdAnswer
Answer:dadExplanati
on:dNone.
8. Adprocessdstackddoesdnotdcontaind
a) Functiondparameters
b) Localdvariables
c) Returndaddresses
d) PIDdofdchilddprocessd
ViewdAnswer
Answer:dddExplanati
on:dNone.
9. Whichdsystemdcalldreturnsdthedprocessdidentifierdofdadterminateddchild?
a) wait
b) exit
c) fork
d) get
ViewdAnswer
Answer:dadExplanati
on:dNone.
10. Thedaddressdofdthednextdinstructiondtodbedexecuteddbydthedcurrentdprocessdisdprovideddbydthed
a) CPUdregisters
b) Programdcounter
c) Processdstack
d) PipedA
nswer:db
, OperatingdSystemdQuestionsd&dAnswersd–dProcessdSynchronization
ThisdsetdofdOperatingdSystemdMultipledChoicedQuestionsd&dAnswersd(MCQs)dfocusesdond“ProcessdSynchronization”.
1. Whichdprocessdcandbedaffecteddbydotherdprocessesdexecutingdindthedsystem?
a) cooperatingdprocess
b) childdprocess
c) parentdprocess
d) initdprocess
dViewdAnswer
Answer:da
2. Whendseveraldprocessesdaccessdthedsameddatadconcurrentlydanddthedoutcomedofdthedexecutionddependsdondthed
particulardorderdindwhichdthedaccessdtakesdplace,disdcalled?
a) dynamicdcondition
b) racedcondition
c) essentialdcondition
d) criticaldcondition
dViewdAnswerdAns
wer:db
3. Ifdadprocessdisdexecutingdinditsdcriticaldsection,dthendnodotherdprocessesdcandbedexecutingdindtheirdcriticaldsection.dThisdc
onditiondisdcalled?
a) mutualdexclusion
b) criticaldexclusion
c) synchronousdexclusion
d) asynchronousdexclusion
dViewdAnswer
Answer:da
4. Whichdonedofdthedfollowingdisdadsynchronizationdtool?
a) thread
b) pipe
c) semaphore
d) socketdVie
wdAnswerdAn
swer:dc
5. Adsemaphoredisdadshareddintegerdvariabled
a) thatdcandnotddropdbelowdzero
b) thatdcandnotdbedmoredthandzero
c) thatdcandnotddropdbelowdone
d) thatdcandnotdbedmoredthandoned
ViewdAnswer
Answer:da
6. Mutualdexclusiondcandbedprovideddbydthed
a) mutexdlocks
b) binarydsemaphores
c) bothdmutexdlocksdanddbinarydsemaphores
d) nonedofdthedmentionedd
ViewdAnswer
Answer:dc
Explanation:dBinarydSemaphoresdaredknowndasdmutexdlocks.
7. Whendhighdprioritydtaskdisdindirectlydpreempteddbydmediumdprioritydtaskdeffectivelydinvertingdthedrelativedprioritydofdt
hedtwodtasks,dthedscenariodisdcalledd
a) prioritydinversion
b) prioritydremoval