230 Quiz 1-4 Midterm
1 Questions and
Answers Updated
2026\2027 A+
IncreasingBorderBofBdataBaccessBtime(1BisBfastestBaccessBtimeBandB7BisBslowest):BSSD,B
L1BCache,BHDD,BRAM,BCPUBregisters,BL2BCacheB-
BAnswerB1.BCPUBregistersB2.BL1BCacheB3.BL2BCacheB4.BRAMB5.BSSDB6.BHDD
WhatBUnixBcommandBcanBbeBusedBtoBoutputBtheBcontentsBofBaBspecificBfile?B-
BAnswerBcat
WhatBUnixBcommandBisBusedBtoBlistBfiles,BincludingBthoseBthatBbeginBwithBaBdotB(.)?B
-BAnswerBlsB-a
TheBCentralBProcessingBUnitB(CPU)BexecutesBinstructionsBstoredBinBtheBmemory.BWhich
BofBtheBfollowingBactivitiesBdoesBtheBCPUBperform?B-BAnswerBDOES:B
StoreBaBbyteBorBwordBfromBaBregisterBtoBaBlocationBinBmainBmemory.
LoadBaBbyteBorBwordBfromBmainBmemoryBintoBaBregister.B
PerformBanBarithmeticBoperationBonBtheBcontentsBofBtwoBregisters,BandBstoreBtheBres
ultBinBaBregister.B
DOESBNOT:B
CheckBifBtheBpreviousBcontentsBofBtheBregisterBareBdeletedBbeforeBloadingBaBbyteBorB
wordBintoBtheBregister.
SupposeByouBhaveBaBfileB"test1"BandBanotherBfileB"test2"BandByouBtypeBtheBfollowing
Bcommand:BcatBtest1B>>Btest2.BWhichBofBtheBfollowingBisBtrue?B-
BAnswerBtest1BisBappendedBtoBtest2
, ABprocessBisBanBabstractionBofBaBrunningBprogram.BABvirtualBmachineBsuchBasBVirtual
BoxBisBanBabstractionBof:B-BAnswerBtheBentireBcomputer
__BisBaBsoftwareBpackageBthatBmanagesBcomputerBmemory,BconcurrentBprogramming,B
interactionBbetweenBapplicationsBandBhardware,BandBI/OBcommunicationBinBaBcompute
rBsystem.B-BAnswerBOS
TheB______BUnixBcommandBisBusedBtoBgetBdocumentationBforBotherBUnixBcommands.
B(ItBworksBonBitself,Btoo.)B-BAnswerBman
$BmkdirBtmp/foo/baz/bing
WhenBexecutedBasBaboveBtheBcommandBfails.BToBallowBdirectoriesBtoBbeBcreatedBrecu
rsivelyByouBmustBuseBtheB______Boption/flag.B-BAnswerB-p
OnBaBUnixBsystem,BaBcompilerBtranslatesBaBsourceBfileBtoBanB_________B-
BAnswerBassemblyBprogram
OnBUnixB(andBWindowsBandBOSX)BaBfileBisBaBsequenceBofBbytes.B-BAnswerBTrue
WhatBisBtheBlargestBpositiveBnumberBthatBcanBbeBrepresentedBbyBaBsignedB4-
bitBintegerBinBtwo'sBcomplementBrepresentation?B-BAnswerB7
ForBanBnBbitBsignedBinteger,BtheBtwo'sBcomplementBrepresentationBofBaBnegativeBinteg
erBxBisBtheBsameBasBsubtractingBtheBabsoluteBvalueBofBxBfromBwhatBvalue?B-
BAnswerB2^n
TheBXORBofBanBn-bitBnumberBandBitsBone'sBcomplementBis...B-BAnswerB(2^n)B-B1
WhatBisBtheBsmallestBnegativeBnumberB(thatBis,BlargestBinBmagnitude)BthatBcanBbeBre
presentedBbyBaBsignedB4-bitBintegerBinBone'sBcomplementBrepresentation?B-BAnswerB-7