FINAL QUESTESTIONS AND
ANSWERS UPDATED 2026
WhichBofBtheBfollowingBdataBtypesBcorrespondsBtoBtheBfollowingBinstruction?
lbuBt0,B0(sp)B-BAnswerBunsignedBchar
ToBrequestBservicesBfromBtheBoperatingBsystem,BtheBservicesBnumberBmustBbeBplacedB
inBwhatBregister?B-BAnswerBa7
HowBmanyBfloating-pointBregistersBareBinBaBRISC-VBmaching?B-BAnswerB32
WhatBbestBdescribesBtheBregisterBthatBstoresBtheBaddressBofBtheBinstructionBafterBaBc
all?B-BAnswerBra
AB'blank'BisBanBanBinstructionBthatBdoesn'tBexistBonBtheBmachine,BbutBinsteadBexpand
edBbyBtheBassembler.B-BAnswerBPseudoBinstruction
AB'blank'BinstructionBisBanBinstructionBthatBisBexecutedBbasedBonBaBcondition.B-
BAnswerBBranch
WhichBofBtheBfollowingBC++BstatementsBcorrespondsBwithBtheBinstructionBbelow?
addBt0,Ba2,Ba4B-BAnswerBt0B=Ba2B+Ba4
ImmediateB-BAnswerBaBsmallBliteralBencodedBdirectlyBintoBtheBinstruction
HowBmanyBbitsBdoesBeachBRISC-VBresisterBstore?B-BAnswerB64
, WhichBofBtheBfollowingBallocatesB64BbitsBonBtheBstack?B-BAnswerBaddiBsp,Bsp,B-8
whichBofBtheBfollowingBstatementsBcorrespondsBtoBtheBinstructionBbelow?
slliBt0,Ba0,B3B-BAnswerBt0B=Ba0B<<B3
WhichBofBtheBfollowingBregistersBareBusedBforBfunctionBarguments?B-BAnswerBa4
a3
a1
WhichBofBtheBfollowingBcorrespondsBwithBtheBcodeBbelow?
t1B%=Ba0;B-BAnswerBremBt1,Bt1,Ba0
EncodeBbeqBt0,Bt1,B-8,BandBgiveByourBAnswerBinBhex:B-BAnswerB0xFE628CE3
decodeB0x02A9_DF33B-BAnswerBDIVUBt5,Bs3,Ba0
EncodeBaddiBt3,Bs5,B-40BandBgiveByourBAnswerBinBhex:B-BAnswerB0xFD8A8E13
DecodeB0xF9C3_C313B-BAnswerBXORIBt1,Bt2,B-100
TheBstackBpointerBmustBcontainBaBvalueBthatBisBalignedBtoBwhatBvalue?B-
BAnswerBTheBstackBpointerBmustBbeBaBmultipleBofB16
TheBinstructionB"callBhome"BisBanBaliasBforBwhichBofBtheBfollowingBrealBinstructions?B-
BAnswerBjalBra,Bhome