CSE 230 EXAM QUESTIONS AND ANSWERS WITH VERIFIED STUDY SOLUTIONS
Inhthehcompilationhprocess,htheh______hseparateshthehinputhsourcehcodehtexthintohtokens.h-
hans ✔✔LexicalhAnalyzerh(lexer)
SelecthwhichhofhthehfollowingharehNOThparthofhthehcompilationhprocess:h-
hans ✔✔ProgramhExecution
Testing
Debugging
Inhthehcompilationhprocess,htheh______hcombineshpartialhprogramshandhlibrarieshintohahsingle
hexecutable.h-hans ✔✔Linker
WhichhofhthehfollowhbesthmatcheshthehfunctionhofhthehLinkerhinhthehcompilationhprocess?h-
hans ✔✔Combineshpartialhprogramshandhlibrarieshintohahsinglehexecutable.
Theh______htranslateshassemblyhlanguagehcodehintohmachinehcode.h-hans✔✔Assembler
SelecththehhardwarehthathishactivehduringhthehWritebackhstagehofhthehinstructionhcycle:h-
hans ✔✔RegisterhFile
SelecththehhardwarehthathishactivehduringhthehMemoryhAccesshstagehofhthehinstructionhcycle:h
-hans✔✔DatahMemory
DuringhanhInstructionhFetchhstephwhichhelementsharehused?h-hans✔✔-hInstructionhMemory
=hProgramhCounter
,DuringhanhInstructionhDecodehstephwhichhelementsharehused?h-hans✔✔-
hReadhfromhregisterhfile
-hControlhUnit
Givenhanh8-word,h2-
wayhsethassociativehcache,handhthehsequencehofhaddresshaccesseshbelow,henterhthehnumberho
fhmisses.
5
19
19
24
24
24h-hans✔✔3
Givenhanh8-
word,hdirecthmappedhcache,handhthehsequencehofhaddresshaccesseshbelow,henterhthehnumber
hofhmisses.
2
23
24
2
2
2h-hans✔✔3
, Givenhanh8-
word,hdirecthmappedhcache,handhthehsequencehofhaddresshaccesseshbelow,henterhthehnumber
hofhmisses.
5
23
1
24
23
11h-hans✔✔5
Givenhanh8-
word,hdirecthmappedhcache,handhthehsequencehofhaddresshaccesseshbelow,henterhthehnumber
hofhmisses.
6
2
14
20
20
10h-hans✔✔5
Givenhanh8-word,h4-
wayhsethassociativehcache,handhthehsequencehofhaddresshaccesseshbelow,henterhthehnumberho
fhmisses.
7
Inhthehcompilationhprocess,htheh______hseparateshthehinputhsourcehcodehtexthintohtokens.h-
hans ✔✔LexicalhAnalyzerh(lexer)
SelecthwhichhofhthehfollowingharehNOThparthofhthehcompilationhprocess:h-
hans ✔✔ProgramhExecution
Testing
Debugging
Inhthehcompilationhprocess,htheh______hcombineshpartialhprogramshandhlibrarieshintohahsingle
hexecutable.h-hans ✔✔Linker
WhichhofhthehfollowhbesthmatcheshthehfunctionhofhthehLinkerhinhthehcompilationhprocess?h-
hans ✔✔Combineshpartialhprogramshandhlibrarieshintohahsinglehexecutable.
Theh______htranslateshassemblyhlanguagehcodehintohmachinehcode.h-hans✔✔Assembler
SelecththehhardwarehthathishactivehduringhthehWritebackhstagehofhthehinstructionhcycle:h-
hans ✔✔RegisterhFile
SelecththehhardwarehthathishactivehduringhthehMemoryhAccesshstagehofhthehinstructionhcycle:h
-hans✔✔DatahMemory
DuringhanhInstructionhFetchhstephwhichhelementsharehused?h-hans✔✔-hInstructionhMemory
=hProgramhCounter
,DuringhanhInstructionhDecodehstephwhichhelementsharehused?h-hans✔✔-
hReadhfromhregisterhfile
-hControlhUnit
Givenhanh8-word,h2-
wayhsethassociativehcache,handhthehsequencehofhaddresshaccesseshbelow,henterhthehnumberho
fhmisses.
5
19
19
24
24
24h-hans✔✔3
Givenhanh8-
word,hdirecthmappedhcache,handhthehsequencehofhaddresshaccesseshbelow,henterhthehnumber
hofhmisses.
2
23
24
2
2
2h-hans✔✔3
, Givenhanh8-
word,hdirecthmappedhcache,handhthehsequencehofhaddresshaccesseshbelow,henterhthehnumber
hofhmisses.
5
23
1
24
23
11h-hans✔✔5
Givenhanh8-
word,hdirecthmappedhcache,handhthehsequencehofhaddresshaccesseshbelow,henterhthehnumber
hofhmisses.
6
2
14
20
20
10h-hans✔✔5
Givenhanh8-word,h4-
wayhsethassociativehcache,handhthehsequencehofhaddresshaccesseshbelow,henterhthehnumberho
fhmisses.
7