操作系统习题.docx
《操作系统习题.docx》由会员分享,可在线阅读,更多相关《操作系统习题.docx(12页珍藏版)》请在冰豆网上搜索。
操作系统习题
-本页仅作为预览文档封面,使用时请删除本页-
操作系统习题(英文版)(共10页)
Chapter1–ComputerSystemsOverview
True/FalseQuestions:
1.T/F–Theoperatingsystemactsasaninterfacebetweenthecomputerhardwareandthehumanuser.
2.T/F–Oneoftheprocessor’smainfunctionsistoexchangedatawithmemory.
3.T/F–User-visibleregistersaretypicallyaccessibletosystemprogramsbutarenottypicallyavailabletoapplicationprograms.
4.T/F–Dataregistersaregeneralpurposeinnature,butmayberestrictedtospecifictaskssuchasperformingfloating-pointoperations.
5.T/F–TheProgramStatusWordcontainsstatusinformationintheformofconditioncodes,whicharebitstypicallysetbytheprogrammerasaresultofprogramoperation.
6.T/F–TheprocessingrequiredforasingleinstructiononatypicalcomputersystemiscalledtheExecuteCycle.
7.T/F–AfetchedinstructionisnormallyloadedintotheInstructionRegister(IR).
8.T/F–Aninterruptisamechanismusedbysystemmodulestosignaltheprocessorthatnormalprocessingshouldbetemporarilysuspended.
9.T/F–Toaccommodateinterrupts,anextrafetchcycleisaddedtotheinstructioncycle.
10.T/F–Theminimuminformationthatmustbesavedbeforetheprocessortransferscontroltotheinterrupthandlerroutineistheprogramstatusword(PSW)andthelocationofthecurrentinstruction.
11.T/F–Oneapproachtodealingwithmultipleinterruptsistodisableallinterruptswhileaninterruptisbeingprocessed.
12.T/F–Multiprogrammingallowstheprocessortomakeuseofidletimecausedbylong-waitinterrupthandling.
13.T/F–Inatwo-levelmemoryhierarchy,theHitRatioisdefinedasthefractionofallmemoryaccessesfoundintheslowermemory.
14.T/F–Cachememoryexploitstheprincipleoflocalitybyprovidingasmall,fastmemorybetweentheprocessorandmainmemory.
15.T/F–Incachememorydesign,blocksizereferstotheunitofdataexchangedbetweencacheandmainmemory
16.T/F–TheprimaryproblemwithprogrammedI/OisthattheprocessormustwaitfortheI/OmoduletobecomereadyandmustrepeatedlyinterrogatethestatusoftheI/Omodulewhilewaiting.
MultipleChoiceQuestions:
1.Thegeneralroleofanoperatingsystemisto:
a.Actasaninterfacebetweenvariouscomputers
b.Provideasetofservicestosystemusers
c.Managefilesforapplicationprograms
d.Noneoftheabove
2.Thefourmainstructuralelementsofacomputersystemare:
a.Processor,Registers,I/OModules&MainMemory
b.Processor,Registers,MainMemory&SystemBus
c.Processor,MainMemory,I/OModules&SystemBus
d.Noneoftheabove
3.Thetwobasictypesofprocessorregistersare:
a.User-visibleandControl/Statusregisters
b.ControlandStatusregisters
c.User-visibleanduser-invisibleregisters
d.Noneoftheabove
4.Addressregistersmaycontain:
a.Memoryaddressesofdata
b.Memoryaddressesofinstructions
c.Partialmemoryaddresses
d.Alloftheabove
5.AControl/Statusregisterthatcontainstheaddressofthenextinstructiontobefetchediscalledthe:
a.InstructionRegister(IR)
b.ProgramCounter(PC)
c.ProgramStatusWord(PSW)
d.Alloftheabove
6.Thetwobasicstepsusedbytheprocessorininstructionprocessingare:
a.FetchandInstructioncycles
b.InstructionandExecutecycles
c.FetchandExecutecycles
d.Noneoftheabove
7.Afetchedinstructionisnormallyloadedintothe:
a.InstructionRegister(IR)
b.ProgramCounter(PC)
c.Accumulator(AC)
d.Noneoftheabove
8.Acommonclassofinterruptsis:
a.Program
b.Timer
c.I/O
d.Alloftheabove
9.Whenanexternaldevicebecomesreadytobeservicedbytheprocessor,thedevicesendsthistypeofsignaltotheprocessor:
a.Interruptsignal
b.Haltsignal
c.Handlersignal
d.Noneoftheabove
10.Informationthatmustbesavedpriortotheprocessortransferringcontroltotheinterrupthandlerroutineincludes:
a.ProcessorStatusWord(PSW)
b.ProcessorStatusWord(PSW)&Locationofnextinstruction
c.ProcessorStatusWord(PSW)&Contentsofprocessorregisters
d.Noneoftheabove
11.Oneacceptedmethodofdealingwithmultipleinterruptsisto:
a.Defineprioritiesfortheinterrupts
b.Disableallinterruptsexceptthoseofhighestpriority
c.Servicetheminround-robinfashion
d.Noneoftheabove
12.Inauniprocessorsystem,multiprogrammingincreasesprocessorefficiencyby:
a.Increasingprocessorspeed
b.Takingadvantageoftimewastedbylongwaitinterrupthandling
c.Eliminatingallidleprocessorcycles
d.Alloftheabove
13.Asoneproceedsdownthememoryhierarchy.,frominboardmemorytoofflinestorage),thefollowingcondition(s)apply:
a.Increasingcostperbit
b.Decreasingcapacity
c.Increasingaccesstime
d.Alloftheabove
14.Small,fastmemorylocatedbetweentheprocessorandmainmemoryiscalled:
a.WORMmemory
b.Cachememory
c.CD-RWmemory
d.Noneoftheabove
15.Whenanewblockofdataiswrittenintocachememory,thefollowingdetermineswhichcachelocationtheblockwilloccupy:
a.Blocksize
b.Cachesize
c.Writepolicy
d.Noneoftheabove
16.DirectMemoryAccess(DMA)operationsrequirethefollowinginformationfromtheprocessor:
a.AddressofI/Odevice
b.Startingmemorylocationtoreadfromorwriteto
c.Numberofwordstobereadorwritten
d.Alloftheabove
Questions
,,,
Problems
,,,,
Chapter2–OperatingSystemOverview
True/FalseQuestions:
1.T/F–Anoperatingsystemcontrolstheexecutionofapplicationsandactsasaninterfacebetweenapplicationsandthecomputerhardware.
2.T/F–Theoperatingsystemmaintainsinformationthatcanbeusedforbillingpurposesonmulti-usersystems.
3.T/F–Theoperatingsystemtypicallyrunsinparallelwithapplicationprograms,onit’sownspecialO/Sprocessor.
4.T/F–Oneofthedrivingforcesinoperatingsystemevolutionisadvancementintheunderlyinghardwaretechnology.
5.T/F–Inthefirstcomputers,usersinteracteddirectlywiththehardwareandoperatingsystemsdidnotexist.
6.T/F–Inabatch-processingsystem,thephrase“controlispassedtoajob”meansthattheprocessorisnowfetchingandexecutinginstructionsinauserprogram.
7.T/F–Uniprogrammingtypicallyprovidesbetterutilizationofsystemresourcesthanmultiprogramming.
8.T/F–Inatimesharingsystem,auser’sprogramispreemptedatregularintervals,butduetorelativelyslowhumanreactiontimethisoccurrenceisusuallytransparenttotheuser.
9.T/F–Aprocesscanbedefinedasaunitofactivitycharacterizedbyasinglesequentialthreadofexecution,acurrentstate,andanassociatedsetofsystemresources.
10.T/F–Avirtualmemoryaddresstypicallyconsistsofapagenumberandanoffsetwithinthepage.
11.T/F–Implementingprioritylevelsisacommonstrategyforshort-termscheduling,whichinvolvesassigningeachprocessinthequeuetotheprocessoraccordingtoitslevelofimportance.
12.T/F–Complexoperatingsystemstodaytypicallyconsistofafewthousandlinesofinstructions.
13.T/F–Amonolithickernelarchitectureassignsonlyafewessentialfunctionstothekernel,includingaddressspaces,interprocesscommunicationandbasicscheduling.
14.T/F–Thehardwareabstractionlayer(HAL)mapsbetweengenerichardwarecommands/responsesandthoseuniquetoaspecificplatform.
MultipleChoiceQuestions:
17.Aprimaryobjectiveofanoperatingsystemis:
a.Convenience
b.Efficiency
c.Abilitytoevolve
d.Alloftheabove
18.Theoperatingsystemprovidesmanytypesofservicestoend-users,programmersandsystemdesigners,including:
a.Built-inuserapplications
b.Errordetectionandresponse
c.Relationaldatabasecapabilitieswiththeinternalfilesystem
d.Alloftheabove
19.Theoperatingsystemisunusualinit’sroleasacontrolmechanism,inthat:
a.Itrunsonaspecialprocessor,completelyseparatedfromtherestofthesystem
b.Itfrequentlyrelinquishescontrolofthesystemprocessorandmustdependontheprocessortoregaincontrolofthesystem
c.Itneverrelinquishescontrolofthesystemprocessor
d.Noneoftheabove
20.Operatingsystemsmustevolveovertimebecause:
a.Hardwaremustbereplacedwhenitfails
b.Userswillonlypurchasesoftwarethathasacurrentcopyrightdate
c.Newhardwareisdesignedandimplementedinthecomputersystem
d.Alloftheabove
21.Amajorproblemwithearlyserialprocessingsystemswas:
a.Setuptime
b.Lackofinputdevices
c.Inabilitytogethardcopyoutput
d.Alloftheabove
22.Anexampleofahardwarefeaturethatisdesirableinabatch-processingsystemis:
a.Privilegedinstructions
b.Acompletelyaccessiblememoryarea
c.Largeclockcycles
d.Noneoftheabove
23.Acomputerhardwarefeaturethatisvitaltotheeffectiveoperationofamultiprogrammingoperatingsystemis:
a.Verylargememory
b.Multipleprocessors
c.I/OinterruptsandDMA
d.Alloftheabove
24.Theprincipleobjectiveofatimesharing,multiprogrammingsystemisto:
a.Maximizeresponsetime
b.Maximizeprocessoruse
c.Provideexclusiveaccesstohardware
d.Noneoftheabove
25.Whichofthefollowingmajorlineofcomputersystemdevelopmentcreatedproblemsintimingandsynchronizationthatcontributedtothedevelopmentoftheconceptoftheprocess
a.Multiprogrammingbatchoperationsystems
b.Timesharingsystems
c.Realtimetransactionsystems
d.Alloftheabove
26.Thepagingsysteminamemorymanagementsystemprovidesfordynamicmappingbetweenavirtualaddressusedinaprogramand:
a.Avirtualaddressinmainmemory
b.Arealaddressinmainmemory
c.Arealaddress