CPEN 4700 FINAL EXAM BASED ON
PREVIOUS TESTS QUESTIONS &
ANSWERS UPDATED 2026
HowBtoBdetermineBcycleBtimeBofBaBprocesser?B-
BAnswer1/frequencyBxB10^9,BunitsBisBsecondsBifBleftBinBnotation
SupposeByouBknowBthatBtheBclaimedBperformanceBforBaBCPUBisB6.3BGFLOPS(6300BMFLOPS).H
owBmanyBfloatingBpointBinstructionsBcanBitBdoBinBoneBcycle?BWhatBisBCPI?B-
BAnswermultiplyingBtheBnumberBofBinstructionsBperBcycleBwithBtheBclockBrateB(cyclesBperBsec
ondBgivenBinBHertz)BofBtheBprocessorBinBquestion.(6300BxB10^9)(cycletime)
CPIBisB1/FPI
WhileBRunningBaBprogramBonBthisBsystemByouBhaveB270BmillionBcacheBhitsBandB8BmillionBca
cheBmisses.BWhatBareBtheBhitBandBmissBratesBifBthisBprogram?B-BAnswer(Hit/total)*100
(Miss/Total)*100
WHatBisBtheBmaximumBmemoryBbandwidthBofBtheBDDr4B1600Bmemory?(UseBCorrectBtransfer
Brate)B-BAnswer(bitsBofBbus/8bytes)B/BcycleBtimeBB/sBifBnoBmoveBdecimal
(1600x10^6)*64*(1/8)=1.28x10^10BB/sB12.8BGB/s
HowBlongBdoesBitBtakeBtoBreadBtheBfirstBbytesBfromBRAMB(UseBCASBLatency)B-
BAnswerCasLatencyBxB(1/BclockspeedBxB10^6Bcyc/s)
12*(1/800x10^6)=1.5x10^-8=15ns
IgnoringBotherBCacheBlevelsBandBanyBotherBpartsBofBaBmemoryBsystemBandBjustBusingBtheBL
2BandBDDR4BmemoryBdescribedBaboveBwhatBisBtheBeffectiveBaverageBmemoryBacrossBtimeBw
hileBrunningBthrBprogramBfromBquestionB3?B-
BAnswerEAT(effectiveBaccessBtime)=BPBxBhitBmemoryBtimeB+B(1-P)BxBmissBmemoryBti
(.9712x(4(0.67ns)+(0.0288)(15)=3.02
ABsystemBwithB8BGBBofBRAMBhasB16BMBBcacheBwithB64-
byteBrefillBlines.BHowBmanyBlinesBareBinBthecache?BWhatBareBtheBsizesBofBtheBtag,Bindex,Ba
ndBbyteBfieldsB(inBbits)BifBtheBcacheBisBdirectBmapped?B8wayBsetBassociativeBmapped?BFullyB
associativeBmapped?B-BAnswerGB->2^33BifBGBB
2^20BifBMB
, 2^10BifBKBB
exponentB=B33
MbBtoBcache,BINDEXBisBfoundBbyB(2^21/2^6)=2^15/2^4BindexBisB11<exponet
64B=B2^6=6Bbytes
15,leftBoverBisBtag
ifB4-way,BreplacesBfirstBexponetBwithB2,B8BreplaceBwithB3,16BisB4BfullyBthereBisBnoBindex
6Bbytes,B15(eachBlineBhasB15),B11-tag
ABwayBtoBincreaseBperformanceBofBaBsystemBatBtheBcostBofBincreasedBpowerB-
BAnswerOverclocking
ThisBhardwareBinventionBfromBtheBsecondBgenerationBstillBformsBtheBbasisBforBallBmodernBco
mputersB-BAnswerTransistors
TheBconnectiionsBinBcomputerBsystemBwhichBjoinBtheBmajorBpartsBtogetherB-BAnswerBus
InBaBmultiBlevelBcacheBwhereBtheBlinesBgoBwhenBevictedBfromBaBlowerBlevelB-
BAnswerVictimBCache
InBaBvirtualBmemoryBsystemBwherBtheBaddressBtranslationBinfoBisBstoredB-BAnswerpageBtable
ThisBmemoryBorganizationBusesBrelativeBaddressingBtoBlocateBdataB-BAnswerSAM
InBaBcacheBmemory,BtheBunitBofBdataBthatBisBmovedBintoBorBoutBofBcache.B-
BAnswerValidBBit
ABcacheBfeatureBuseBtoBindicateBifBaBlineBhasBbeenBmodifiedB-BAnswerDirtyBBit
ABtypeBofBmemoryBwhichBhasBtheBpropertyBofBequalBaccessBtoBeveryBlocationB-BAnswerRAM
ThisBcacheBreplacementBalgorthimBmustBkeepBaBcountBofBhowBmanyBtimesBaBlineBisBaccesse
dB-BAnswerWriteBBack
PREVIOUS TESTS QUESTIONS &
ANSWERS UPDATED 2026
HowBtoBdetermineBcycleBtimeBofBaBprocesser?B-
BAnswer1/frequencyBxB10^9,BunitsBisBsecondsBifBleftBinBnotation
SupposeByouBknowBthatBtheBclaimedBperformanceBforBaBCPUBisB6.3BGFLOPS(6300BMFLOPS).H
owBmanyBfloatingBpointBinstructionsBcanBitBdoBinBoneBcycle?BWhatBisBCPI?B-
BAnswermultiplyingBtheBnumberBofBinstructionsBperBcycleBwithBtheBclockBrateB(cyclesBperBsec
ondBgivenBinBHertz)BofBtheBprocessorBinBquestion.(6300BxB10^9)(cycletime)
CPIBisB1/FPI
WhileBRunningBaBprogramBonBthisBsystemByouBhaveB270BmillionBcacheBhitsBandB8BmillionBca
cheBmisses.BWhatBareBtheBhitBandBmissBratesBifBthisBprogram?B-BAnswer(Hit/total)*100
(Miss/Total)*100
WHatBisBtheBmaximumBmemoryBbandwidthBofBtheBDDr4B1600Bmemory?(UseBCorrectBtransfer
Brate)B-BAnswer(bitsBofBbus/8bytes)B/BcycleBtimeBB/sBifBnoBmoveBdecimal
(1600x10^6)*64*(1/8)=1.28x10^10BB/sB12.8BGB/s
HowBlongBdoesBitBtakeBtoBreadBtheBfirstBbytesBfromBRAMB(UseBCASBLatency)B-
BAnswerCasLatencyBxB(1/BclockspeedBxB10^6Bcyc/s)
12*(1/800x10^6)=1.5x10^-8=15ns
IgnoringBotherBCacheBlevelsBandBanyBotherBpartsBofBaBmemoryBsystemBandBjustBusingBtheBL
2BandBDDR4BmemoryBdescribedBaboveBwhatBisBtheBeffectiveBaverageBmemoryBacrossBtimeBw
hileBrunningBthrBprogramBfromBquestionB3?B-
BAnswerEAT(effectiveBaccessBtime)=BPBxBhitBmemoryBtimeB+B(1-P)BxBmissBmemoryBti
(.9712x(4(0.67ns)+(0.0288)(15)=3.02
ABsystemBwithB8BGBBofBRAMBhasB16BMBBcacheBwithB64-
byteBrefillBlines.BHowBmanyBlinesBareBinBthecache?BWhatBareBtheBsizesBofBtheBtag,Bindex,Ba
ndBbyteBfieldsB(inBbits)BifBtheBcacheBisBdirectBmapped?B8wayBsetBassociativeBmapped?BFullyB
associativeBmapped?B-BAnswerGB->2^33BifBGBB
2^20BifBMB
, 2^10BifBKBB
exponentB=B33
MbBtoBcache,BINDEXBisBfoundBbyB(2^21/2^6)=2^15/2^4BindexBisB11<exponet
64B=B2^6=6Bbytes
15,leftBoverBisBtag
ifB4-way,BreplacesBfirstBexponetBwithB2,B8BreplaceBwithB3,16BisB4BfullyBthereBisBnoBindex
6Bbytes,B15(eachBlineBhasB15),B11-tag
ABwayBtoBincreaseBperformanceBofBaBsystemBatBtheBcostBofBincreasedBpowerB-
BAnswerOverclocking
ThisBhardwareBinventionBfromBtheBsecondBgenerationBstillBformsBtheBbasisBforBallBmodernBco
mputersB-BAnswerTransistors
TheBconnectiionsBinBcomputerBsystemBwhichBjoinBtheBmajorBpartsBtogetherB-BAnswerBus
InBaBmultiBlevelBcacheBwhereBtheBlinesBgoBwhenBevictedBfromBaBlowerBlevelB-
BAnswerVictimBCache
InBaBvirtualBmemoryBsystemBwherBtheBaddressBtranslationBinfoBisBstoredB-BAnswerpageBtable
ThisBmemoryBorganizationBusesBrelativeBaddressingBtoBlocateBdataB-BAnswerSAM
InBaBcacheBmemory,BtheBunitBofBdataBthatBisBmovedBintoBorBoutBofBcache.B-
BAnswerValidBBit
ABcacheBfeatureBuseBtoBindicateBifBaBlineBhasBbeenBmodifiedB-BAnswerDirtyBBit
ABtypeBofBmemoryBwhichBhasBtheBpropertyBofBequalBaccessBtoBeveryBlocationB-BAnswerRAM
ThisBcacheBreplacementBalgorthimBmustBkeepBaBcountBofBhowBmanyBtimesBaBlineBisBaccesse
dB-BAnswerWriteBBack