MOOC Principle of Microcomputer-Huazhong University of Science and Technology 中國大學慕課答案_第1頁
MOOC Principle of Microcomputer-Huazhong University of Science and Technology 中國大學慕課答案_第2頁
MOOC Principle of Microcomputer-Huazhong University of Science and Technology 中國大學慕課答案_第3頁
MOOC Principle of Microcomputer-Huazhong University of Science and Technology 中國大學慕課答案_第4頁
MOOC Principle of Microcomputer-Huazhong University of Science and Technology 中國大學慕課答案_第5頁
已閱讀5頁,還剩101頁未讀 繼續(xù)免費閱讀

下載本文檔

版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領

文檔簡介

MOOCPrincipleofMicrocomputer-HuazhongUniversityofScienceandTechnology中國大學慕課答案quizforchapter11、問題:Whatisthenameofasetofsignallinesinacomputersystemresponsiblefortransmittingdatastoragelocations?計算機系統(tǒng)中負責傳輸數(shù)據(jù)存儲位置信息的信號線的名稱為?選項:A、Databus數(shù)據(jù)總線B、Addressbus地址總線C、Controlbus控制總線D、Statusbus狀態(tài)總線正確答案:【Addressbus地址總線】2、問題:Whatisthenameofasetofsignallinesthatplayamanagementandcontrolroleinthetransmissionandexchangeofdataincomputersystems?計算機系統(tǒng)中負責數(shù)據(jù)傳輸過程中管理和控制功能的信號線的名稱是?選項:A、Databus數(shù)據(jù)總線B、Addressbus地址總線C、Controlbus控制總線D、Statusbus狀態(tài)總線正確答案:【Controlbus控制總線】3、問題:Whatdoescomputerinstructionsreferto?計算機指令是指?選項:A、Asequenceofcommandstoachieveagiventask完成某個任務的命令序列B、Collectionofallcommandsofacomputer計算機命令的組合C、Commandsthatthecomputercanrecognizeandexecute計算機能識別和執(zhí)行的命令D、High-levelprogramminglanguagestatements高級程序設計語言的語句正確答案:【Commandsthatthecomputercanrecognizeandexecute計算機能識別和執(zhí)行的命令】4、問題:Whatdoescomputerprogrammean?計算機程序是指什么?選項:A、Commandsequencetoachieveagiventask完成某個任務的命令序列B、Collectionofallcommandsofacomputer計算機命令集合C、Commandsthatthecomputercanrecognizeandexecute計算機能識別和執(zhí)行的命令D、High-levelprogramminglanguagestatements高級語言語句正確答案:【Commandsequencetoachieveagiventask完成某個任務的命令序列】5、問題:Whatisthecodeofinstructionsinthecomputer?計算機中指令的編碼是采用哪種編碼?選項:A、ASCIIcodeASCII碼B、binarycode二進制碼C、Hexadecimalcode十六進制碼D、Decimalcode十進制碼正確答案:【binarycode二進制碼】6、問題:Whichcomponentinthecomputerisusedtopre-storeinstructionanddatainordertomaketheprogramrunautomatically?計算機中哪個部件用來預存指令和數(shù)據(jù)?選項:A、CPU中央處理器B、Memory存儲器C、IOinterfaceIO接口D、IOdeviceIO設備正確答案:【Memory存儲器】7、問題:Theprocessofcomputerinstructions’executiongenerallyincludesthefollowingsteps1:instructiondecoding2:performingoperations3:accessingdatamemory4:storingresults5:readinginstructions,whichofthefollowingisthecorrectorderoftheprocess?計算機指令的執(zhí)行通常包含以下步驟,1:指令譯碼;2:執(zhí)行操作;3:數(shù)據(jù)獲取;4:存儲結果;5:讀取指令。以下哪種順序是指令執(zhí)行的正確順序?選項:A、1-2-3-4-5B、2-3-4-5-1C、5-1-2-3-4D、5-2-1-3-4正確答案:【5-1-2-3-4】8、問題:Whichofthefollowingisthebinarynumberofthedecimalnumber3.25?十進制數(shù)3.25的二進制數(shù)是以下哪個?選項:A、11.01B、10.11C、11.001D、10.101正確答案:【11.01】9、問題:Whichofthefollowingisthehexadecimalnumberofthedecimalnumber105.25?十進制數(shù)105.25的十六進制數(shù)是以下哪個?選項:A、B、C、D、正確答案:【】10、問題:Whatisthebitwidthofabyteinacomputer?計算機中一個字節(jié)是多少位?選項:A、4B、8C、12D、16正確答案:【8】11、問題:Howmanybitsofahalfwordaredefinedina32-bitMIPScomputersystem?32位MIPS計算機中的半字是多少位?選項:A、16B、32C、64D、8正確答案:【16】12、問題:Whatcodeisusedforsignedintegernumbers’representationinmoderncomputers?現(xiàn)代計算機系統(tǒng)采用什么編碼表示符號整數(shù)?選項:A、originalcode原碼B、1'scomplement反碼C、2'scomplement補碼D、BCDcodeBCD碼正確答案:【2'scomplement補碼】13、問題:Itisknownthatacomputersystemstoresdatainmemoryinlittleendianness.Ifhalfworddataisstoredinthememoryataddress,whatisthedatastoredinthestorageunitataddress?已知某計算機系統(tǒng)為小字節(jié)序,的存儲單元存放半字數(shù)據(jù)存放在地址的存儲器中,試問地址為的數(shù)據(jù)的值是多少?選項:A、B、C、D、正確答案:【】14、問題:Itisknownthatacomputersystemstoresdatainmemoryinlittle-endianorder.Ifworddatadatastoredinthememoryunitataddress數(shù)據(jù)存儲在地址為isstoredinthememoryataddress,whatisthe?已知某計算機系統(tǒng)為小字節(jié)序,字的存儲器中,試問地址為的存儲單元的數(shù)據(jù)值為多少?選項:A、B、C、D、正確答案:【】15、問題:Itisknownthatacomputersystemstoresdatainmemoryinbigendianess.Iftheworddataisstoredinthememorywiththeaddress,whatisthedatastoredinthememoryunitwiththeaddress?已知某計算機采用大字節(jié)序,若字數(shù)據(jù)多少?選項:存儲在地址為的存儲器中,地址為的存儲單元數(shù)據(jù)值為A、B、C、D、正確答案:【】16、問題:Whatistherangeofvaluesthatcanberepresentedbynbits2'scomplementnumbers?2位的補碼表示的數(shù)的范圍為以下哪個?選項:A、-~~B、-~-1C、--1D、--1~正確答案:【-~-1】17、問題:Whichofthefollowingbytetypedatacalculationdoesnotoverflow?以下哪個字節(jié)類型數(shù)據(jù)運算不會產生溢出?選項:A、+B、89+64C、-64-89D、-正確答案:【+】18、問題:WhatisthebitwidthofchartypedatainClanguage?C語言中的char類型數(shù)據(jù)的位寬是多少?選項:A、8B、16C、32D、64正確答案:【8】19、問題:WhatisthebitwidthofshorttypedatainClanguagefor32-bitcomputer?32位計算機中C語言short類型數(shù)據(jù)位寬是多少?選項:A、8B、16C、32D、64正確答案:【16】20、問題:Itisknownthatthedatainaddress2000to2003are2,3,6,0,respectively.Ifa32-bitcomputersystemuseslittle-endianmodetomanagethismemory,whatistheinttypedatathattheCPUfetchesfromaddress2000?已知某32位計算機采用小字節(jié)序,若其存儲器中地址2000到2003的存儲單元中分別依序存儲數(shù)據(jù)2,3,6,0,若CPU從地址為2000的存儲器中獲取int型數(shù)據(jù),該數(shù)據(jù)的值是多少?選項:A、556B、236C、632D、393986正確答案:【393986】21、問題:Itisknownthatthedatainaddress2000to2003are2,3,6,0,respectively.Ifa32-bitcomputersystemuseslittle-endianmodetomanagethismemory,whatistheshorttypedatathattheCPUfetchesfromaddress2002?已知某32位計算機采用小字節(jié)序,若其存儲器中地址2000到2003的存儲單元中分別依序存儲數(shù)據(jù)2,3,6,0,若CPU從地址為2002的存儲器中獲取short型數(shù)據(jù),該數(shù)據(jù)的值是多少?選項:A、556B、770C、632D、393986正確答案:【770】22、問題:Whichofthefollowingmodulesareincludedinthecomputerhardwaresystem?計算機硬件系統(tǒng)包含以下哪些模塊?選項:A、Microprocessor微處理器B、Memory存儲器C、InputandoutputdevicesIO設備D、Bus總線正確答案:【Microprocessor微處理器#Memory存儲器#InputandoutputdevicesIO設備#Bus總線】23、問題:WhatarethebasiccomponentsofthecentralprocessingunitCPU?中央處理器CPU包含以下哪些部件?選項:A、ArithmeticLogicUnitALU算術邏輯運算單元ALUB、Controller控制器C、Registers寄存器D、Systembus系統(tǒng)總線正確答案:【ArithmeticLogicUnitALU算術邏輯運算單元ALU#Controller控制器#Registers寄存器】24、問題:WhichofthefollowingfunctionsareimplementedbythecontrollerinsidetheCPU?CPU中的控制器實現(xiàn)以下哪些功能?選項:A、Arithmeticandlogicaloperations算術邏輯運算B、Readinstruction讀指令C、Instructiondecoding指令譯碼D、Sendoutcontrolsignals發(fā)出控制信號正確答案:【Readinstruction讀指令#Instructiondecoding指令譯碼#Sendoutcontrolsignals發(fā)出控制信號】25、問題:WhatarethemainfunctionsoftheCPUinternalregisters?CPU中的寄存器主要實現(xiàn)哪些功能?選項:A、Storeoperands存儲操作數(shù)B、Storeintermediateresults存儲中間結果C、Storeoperationresultflag存儲操作結果標志D、Implementlogicaloperations實現(xiàn)邏輯運算正確答案:【Storeoperands存儲操作數(shù)#Storeintermediateresults存儲中間結果#Storeoperationresultflag存儲操作結果標志】26、問題:Whichofthefollowingtypesofsignalsdoesthedatabustransmit?數(shù)據(jù)總線傳輸以下哪些類型的信息?選項:A、Datainmemory存儲器中的數(shù)據(jù)B、Instructionsinmemory存儲器中的指令C、DataofIOdevicesIO設備中的數(shù)據(jù)D、StatusofIOdevicesIO設備的狀態(tài)正確答案:【Datainmemory存儲器中的數(shù)據(jù)#Instructionsinmemory存儲器中的指令#DataofIOdevicesIO設備中的數(shù)據(jù)#StatusofIOdevicesIO設備的狀態(tài)】27、問題:WhatarethemainfunctionsofIOinterfaces?IO接口的主要功能包含以下哪些?選項:A、bufferingdata緩存數(shù)據(jù)B、informationformatconversion信息格式轉換C、reportthestatusofIOdevicestoCPU向CPU反饋IO設備的狀態(tài)D、deliverthecommandofCPUtoIOdevices向IO設備傳送CPU發(fā)來的命令正確答案:【bufferingdata緩存數(shù)據(jù)#informationformatconversion信息格式轉換#reportthestatusofIOdevicestoCPU向CPU反饋IO設備的狀態(tài)#deliverthecommandofCPUtoIOdevices向IO設備傳送CPU發(fā)來的命令】28、問題:Whatbitwidthdatacanbeprocessedby32-bitcomputerviaoneinstruction?32位計算機一條指令能處理的數(shù)據(jù)的位寬為以下哪幾種?選項:A、8B、9C、16D、32正確答案:【8#16#32】29、問題:Whichofthefollowingdifferenttypesof2’scomplementnumbersrepresentthetruevalue-8?-8的補碼可表示為以下哪幾種?選項:A、B、C、D、inbyte字節(jié)inhalfword半字inword字inbyte字節(jié)正確答案:【word字inbyte字節(jié)#inhalfword半字#in】30、問題:Whichofthefollowingdifferenttypesof2’scomplementnumbersrepresentthetruevalue-128?-128的補碼可表示為以下哪幾種?選項:A、B、C、D、inbyte字節(jié)inhalfword半字inword字inhalfword半字正確答案:【word字inbyte字節(jié)#inhalfword半字#in】quizforchapter21、問題:Whatisthemeaningofthelabelbeforeassemblyinstructions?匯編指令前的標號表示什么含義?選項:A、Variableaddress變量的地址B、Instructionaddress指令的地址C、thefunctionoftheinstruction指令的功能D、Objectoftheinstruction指令的操作對象正確答案:【Instructionaddress指令的地址】2、問題:Whichofthefollowingpartsoftheassemblyinstructionindicatestheoperationoftheinstruction?匯編指令的哪部分指示指令的功能?選項:A、label標號B、opcode操作碼C、operand操作數(shù)D、comments注釋正確答案:【opcode操作碼】3、問題:WhichofthefollowsymbolsisusedtomarkthebeginningofcommentsinMIPSassemblylanguage?以下哪個符號標志MIPS匯編語言注釋的開始?C、$D、//E、/*正確答案:【#】4、問題:WhichoperandisthedestinationoperandintheMIPSassemblylanguageinstruction“adda,b,c”?MIPS匯編語言指令“adda,b,c”中哪個操作數(shù)為目的操作數(shù)?選項:A、aB、bC、cD、whatever任意正確答案:【a】5、問題:WhentranslatingtheClanguagestatement“a=(c+b)-(d+e);”intoMIPSassemblyinstructions,howmanyassemblyinstructionsshouldbeusedatleast?將C語言語句“a=(c+b)-(d+e);”翻譯為MIPS匯編語言指令,至少需要多少條指令?選項:A、1B、2C、3D、4正確答案:【3】6、問題:WhichofthefollowingregistersintheMIPSmicroprocessorhasaconstantvalueof0?MIPS微處理器以下哪個寄存器的值恒為0?選項:A、$zeroB、$t0C、$a0D、$v0正確答案:【$zero】7、問題:WhichofthefollowingtypesofMIPSassemblyinstructionshasonlytwooperands?以下哪類MIPS匯編指令僅包含兩個操作數(shù)?選項:A、Arithmeticinstructions算術運算指令B、Shiftinstructions移位指令C、Datatransferinstructions數(shù)據(jù)傳輸指令D、Unconditionaljumpinstructions無條件跳轉指令正確答案:【Datatransferinstructions數(shù)據(jù)傳輸指令】8、問題:WhichofthefollowingregistersintheMIPSmicroprocessorindicatesthetopofthestack?MIPS微處理器中以下哪個寄存器指示棧頂?選項:A、$spB、$pcC、$gpD、$v0正確答案:【$sp】9、問題:Ina32-bitcomputersystem,ifthestartingaddressof“intmax[10];”isA,whatistheaddressofmax[2]?在32位計算機中,如果數(shù)組“intmax[10];”的首地址為A,那么max[2]的地址是以下哪個?選項:A、AB、A+2C、A+4D、A+8正確答案:【A+8】10、問題:Ifitisknownthatthestartingaddressof“shortarray[10]”isstoredinregister$s0in32-bitMIPScomputersystem,howistheaddressofarray[2]representedinMIPSassemblylanguageinstructions?如果32位MIPS微處理器C語言定義的“shortarray[10]”數(shù)組首地址存儲在寄存器$s0中,那么MIPS微處理器匯編指令中如何表示array[2]的地址?選項:A、0($s0)B、2($s0)C、4($s0)D、8($s0)正確答案:【4($s0)】11、問題:Ifitisknownthata32-bitcomputerstoresdatainlittle-endianorder,anddefines"shortarray[4]={0,1,12,127};",andthestartingaddressofthearrayisA,WhatisthebytedatastoredintheaddressA+5?已知某32位小字節(jié)序計算機中定義數(shù)據(jù)“shortarray[4]={0,1,12,127};",且其首地址為A,那么地址為A+5的存儲單元中存放的數(shù)據(jù)值是多少?選項:A、0B、1C、2D、127正確答案:【0】12、問題:Inordertoimprovethememoryaccessingefficiency,computersoftenadoptboundaryalignmentstrategytostoredata.Whena32-bitcomputerstoreswordtypedatainboundaryalignmentaddress,whichofthefollowingcharacteristicsdoesthewordtypedata'saddresshave?為提高存儲器訪問效率,計算機常采用邊界對齊方式存儲數(shù)據(jù)。若32位計算機采用邊界對齊方式存儲字類型數(shù)據(jù),該字類型數(shù)據(jù)的存儲地址具有什么特點?選項:A、It'sanevennumber為偶數(shù)B、It'sanoddnumber為奇數(shù)C、It'saintegermultipleof4是4的整數(shù)倍D、It'saintegermultipleof8必須是8的整數(shù)倍正確答案:【It'saintegermultipleof4是4的整數(shù)倍】13、問題:AssumethevariablesgandhinthefollowingClanguageprogramisstoredinregister$s0,$s1,respectively.andtheshorttypearrayA'sstartingaddressisstoredinregister$s2,whichoneofthefollowingMIPSassemblyinstructionsequencesimplementstheCstatementsg=h+A[8];?若變量g,h分別存儲在寄存器$s0,$s1中,short類型數(shù)組A的首地址存儲在$s2中,以下哪個MIPS匯編指令序列實現(xiàn)C語言語句g=h+A[8];的功能?選項:A、lh$t0,32($s2)add$s0,$s1,$t0B、lh$t0,8($s2)add$s0,$s1,$t0C、lh$t0,16($s2)add$s1,$s0,$t0D、lh$t0,16($s2)add$s0,$s1,$t0正確答案:【lh$t0,16($s2)add$s0,$s1,$t0】14、問題:Howmanyfields(domains)isthemachineinstructionoftheMIPSR-typeinstructiondividedinto?MIPSR型指令的機器碼包含幾個域?選項:A、2B、4C、5D、6正確答案:【6】15、問題:WhichregisteristheRsregisteroftheMIPSRtypeinstruction"add$s0,$s1,$t0”?MIPS匯編指令"add$s0,$s1,$t0”機器指令的Rs域存放以下哪個寄存器的編號?選項:A、$s0B、$s1C、$t0D、$v0正確答案:【$s1】16、問題:Howmanyfields(domains)isthemachineinstructionoftheMIPSItypeinstructiondividedinto?MIPSI型指令的機器碼包含多少個域?選項:A、2B、4C、5D、6正確答案:【4】17、問題:WhichtypeofinstructiondoestheMIPSshiftinstruction“sll$s1,$s2,10”belongto?MIPS匯編指令“sll$s1,$s2,10”屬于哪種類型的指令選項:A、RtypeR型B、ItypeI型C、JtypeJ型D、Notsure不確定正確答案:【RtypeR型】18、問題:WhatisthehexadecimalrepresentationofImmfieldofthemachineinstructionrelatedtoMIPSassemblyinstruction“addi$t0,$s3,-32”?MIPS匯編指令“addi$t0,$s3,-32”機器碼的Imm域的十六進制值是以下哪個?選項:A、0x8020B、0xff20C、0x0020D、0xffe0正確答案:【0xffe0】19、問題:Whichtypedoesinstructionjalbelongto?jal指令屬于哪種類型的指令選項:A、RB、IC、JD、不確定正確答案:【J】20、問題:IftheaddressoftheMIPSassemblyinstruction“ag:jag”is0x00000008,whatisthehexadecimalrepresentationofthemachinecode'slower26bitsininstruction”jag”?已知MIPS匯編指令“ag:jag”的存儲地址為0x00000008,那么該指令機器碼的低26位的十六進制值是以下哪個?選項:A、0x0000008B、0x0000001C、0x0000002D、0x0000004正確答案:【0x0000002】21、問題:WhichregisteriscodedintheRsfieldintheMIPSconditionaljumpinstruction“beq$t2,$zero,L2”?MIPS條件跳轉指令“beq$t2,$zero,L2”機器碼的Rs域是以下哪個寄存器的編碼?選項:A、$t2B、$zeroC、L2D、$PC正確答案:【$t2】22、問題:IfthestartingaddressofthefollowingMIPSassemblyinstructionsequenceis0x80000,Whatisthevalueofthebeqinstruction'sImmfieldrepresentedinhexadecimal?MIPSassemblyinstructionsequence:loop:sll$s1,$s2,3addi$s1,$s2,4beq$s1,$t1,exitjloopexit:若已知以下MIPS匯編指令段的首地址為0x80000,那么該指令段中的beq指令機器碼的Imm域的十六進制值是以下哪個?MIP匯編指令序列:loop:sll$s1,$s2,3addi$s1,$s2,4beq$s1,$t1,exitjloopexit:選項:A、0x0000B、0xfffdC、0x0004D、0x0001正確答案:【0x0001】23、問題:IfthestartingaddressofthefollowingMIPSassemblyinstructionsequenceis0x00400000,Whatisthevalueofthejinstruction'slower26bitsrepresentedinhexadecimal?MIPSassemblyinstructionsequence:loop:sll$s1,$s2,3addi$s1,$s2,4beq$s1,$t1,exitjloopexit:已知以下MIPS匯編指令序列存儲的首地址為0x00400000,那么該指令段中的J指令機器碼的低26位的十六進制值是以下哪個?MIPS匯編指令段:loop:sll$s1,$s2,3addi$s1,$s2,4beq$s1,$t1,exitjloopexit:選項:A、0x0400000B、0x0100000C、0x008000D、0x0200000正確答案:【0x0100000】24、問題:Whichofthefollowinginstructionsistoloadunsignedbytetypedatafrommemorytoregister?以下哪條指令用來從存儲器裝載無符號字節(jié)數(shù)據(jù)到寄存器中?選項:A、lbB、lhuC、lwD、lbu正確答案:【lbu】25、問題:Ifitisknownthatthedatastoredineachmemoryunitstartingfromaddress0x80is0x80,0x81,0x82,0x83,respectively,thevalueofregister$t0is0x80,andAfterexecutingtheMIPSinstruction“l(fā)bu$t1,0($t0)”,Whatisthevalueofregister$t1?已知從地址為0x80開始的各個存儲單元中存儲的數(shù)據(jù)分別為0x80,0x81,0x82,0x83,若寄存器$t0的值為0x80,那么執(zhí)行完MIPS指令lbu$t1,0($t0)”后,$t1寄存器的值是以下哪個?選項:A、0x80B、0x81C、0xffffff80D、0xffffff81正確答案:【0x80】26、問題:Ifitisknownthatthedatastoredineachmemoryunitstartingfromaddress0x80is0x80,0x81,0x82,0x83,respectively,thevalueofregister$t0is0x80,andAfterexecutingtheMIPSinstruction“l(fā)b$t1,0($t0)”,Whatisthevalueofregister$t1?已知從地址為0x80開始的各個存儲單元中存儲的數(shù)據(jù)分別為0x80,0x81,0x82,0x83,若寄存器$t0的值為0x80,那么執(zhí)行完MIPS指令”lb$t1,0($t0)”后,$t1寄存器的值是以下哪個?選項:A、0x80B、0x81C、0xffffff80D、0xffffff81正確答案:【0xffffff80】27、問題:Ifitisknownthatthedatastoredineachmemoryunitstartingfromaddress0x80is0x80,0x81,0x82,0x83,respectively,thevalueofregister$t0is0x80,andAfterexecutingtheMIPSinstruction“l(fā)h$t1,0($t0)”,Whatisthevalueofregister$t1?已知從地址為0x80開始的各個存儲單元中存儲的數(shù)據(jù)分別為0x80,0x81,0x82,0x83,若寄存器$t0的值為0x80,那么執(zhí)行完MIPS指令”lh$t1,0($t0)”后,$t1寄存器的值是以下哪個?選項:A、0x8180B、0x8081C、0xffff8081D、0xffff8180正確答案:【0xffff8081】28、問題:Ifitisknownthatthedatastoredineachmemoryunitstartingfromaddress0x80is0x80,0x81,0x82,0x83,respectively,thevalueofregister$t0is0x80,andAfterexecutingtheMIPSinstruction“l(fā)w$t1,0($t0)”,Whatisthevalueofregister$t1?已知從地址為0x80開始的各個存儲單元中存儲的數(shù)據(jù)分別為0x80,0x81,0x82,0x83,若寄存器$t0的值為0x80,那么執(zhí)行完MIPS指令”lw$t1,0($t0)”后,$t1寄存器的值是以下哪個?選項:A、0x80818283B、0x83828180C、0x80838281D、0x83828081正確答案:【0x80818283】29、問題:WhichofthefollowingMIPSassemblyinstructionsisusedtopushthevalueofregister$s0ontothetopofthestack?以下哪段匯編指令序列可以將$s0壓入棧頂?選項:A、addi$sp,$sp,-12sw$s0,8($sp)B、addi$sp,$sp,-12sw$s0,4($sp)C、addi$sp,$sp,-12sw$s0,0($sp)D、addi$sp,$sp,-12sw$s0,12($sp)正確答案:【addi$sp,$sp,-12sw$s0,0($sp)】30、問題:WhichofthefollowingMIPSassemblyinstructionspopsthevalueofthetopofthestacktotheregister$s0?以下哪段匯編指令序列可以將從棧頂取出數(shù)據(jù)到$s0?選項:A、addi$sp,$sp,-4lw$s0,0($sp)B、addi$sp,$sp,4lw$s0,0($sp)C、lw$s0,0($sp)addi$sp,$sp,4D、lw$s0,0($sp)addi$sp,$sp,-4正確答案:【lw$s0,0($sp)addi$sp,$sp,4】31、問題:HowmanymemoryunitwillbeallocatedbyMIPSassemblypseudo-instructions”b0:.byte1,2,3,4”?偽指令”b0:.byte1,2,3,4”將分配多少個內存單元?選項:A、1B、2C、3D、4正確答案:【4】32、問題:HowmanymemoryunitwillbeallocatedbyMIPSassemblypseudo-instructions”b0:.half1,2,3,4”?偽指令”b0:.half1,2,3,4”將分配多少個內存單元?選項:A、1B、2C、4D、8正確答案:【8】33、問題:Iftheaddressofh0intheMIPSassemblypseudo-instruction”h0:.Half1,2,3,4”is0x2000,whatisbytetypedatainthememoryaddress0x2003?若偽指令”h0:.Half1,2,3,4”定義的變量h0的首地址是0x2000,那么地址為0x2003的存儲單元的值是以下哪個?選項:A、0x0B、0x1C、0x2D、0x3正確答案:【0x0】34、問題:HowmanymemeoryunitisallocatedforMIPSassemblypseudo-instruction.asciizabcd?偽指令.asciizabcd將分配多少個存儲單元?選項:A、1B、4C、5D、6正確答案:【5】35、問題:WhichofthefollowingMIPSassemblydirectivesisusedtodefineadatasegment?以下哪條偽指令用來定義數(shù)據(jù)段?選項:A、.alignB、.wordC、.dataD、.text正確答案:【.data】36、問題:ThedatasegmentdefinedbytheMIPSassemblydirectivesisasfollows.Whatistheaddressindicatedbythevariableh0andhowmanymemoryunitsareoccupiedbythisdatasegment?.data0x10010001.align2str:.asciiabcdstrn:.asciizabcdefgb0:.byte1,2,3,4,5h0:.half1,2,3,4w0:.word1,2,3,4以下數(shù)據(jù)段定義中h0的地址以及數(shù)據(jù)段占用的存儲單元數(shù)分別是多少?選項:A、0x10010016,47B、0x10010015,47C、0x10010012,44D、0x10010016,48正確答案:【0x10010016,47】37、問題:Whichofthefollowingarethecharacteristicsofassemblylanguage?以下哪些屬于匯編語言的特點?選項:A、Closelyrelatedtocomputerhardware與計算機硬件緊密相關B、Itisnoteasytobeidentified,butitcanbedirectlyexecutedbyacomputer.不易識別,能被計算機直接執(zhí)行C、Goodindependence,versatilityandportability獨立性強、多樣性和可移植D、Usemnemonicsandaddresssymbolstorepresentinstructions采用符號表示指令正確答案:【Closelyrelatedtocomputerhardware與計算機硬件緊密相關#Itisnoteasytobeidentified,butitcanbedirectlyexecutedbyacomputer.不易識別,能被計算機直接執(zhí)行#Usemnemonicsandaddresssymbolstorepresentinstructions采用符號表示指令】38、問題:Whichofthefollowingarethefeaturesofacomplexinstructionsetcomputer?以下哪些為復雜指令集計算機所具有的特點?選項:A、Instructionwordlengthisnotfixed指令的長度不固定B、Manyaddressingmodes較多尋址模式C、Noinstructionrestrictionsonmemoryaccess訪存指令不受限制D、Multipleinstructionformats較多指令格式正確答案:【Instructionwordlengthisnotfixed指令的長度不固定#Manyaddressingmodes較多尋址模式#Noinstructionrestrictionsonmemoryaccess訪存指令不受限制#Multipleinstructionformats較多指令格式】39、問題:whichofthefollowingcantheassemblyinstructionsinclude?匯編指令可包含以下哪幾部分?選項:A、label標號B、opcode操作碼C、operand操作數(shù)D、comments注釋正確答案:【label標號#opcode操作碼#operand操作數(shù)#comments注釋】40、問題:WhatarethetypeofMIPSassemblyinstructions?MIPS匯編指令包含以下哪幾種類型選項:A、RB、IC、JD、A正確答案:【R#I#J】41、問題:WhataretheoperandaddressingmodessupportedbytheMIPSinstruction?MIPS指令支持以下哪幾種操作數(shù)尋址選項:A、ImmediateAddressing立即尋址B、RegisterAddressing寄存器尋址C、Baseaddressing基址尋址D、DirectAddressing直接尋址正確答案:【ImmediateAddressing立即尋址#RegisterAddressing寄存器尋址#Baseaddressing基址尋址】42、問題:WhataretheinstructionaddressingmodessupportedbytheMIPSinstruction?MIPS指令支持以下哪幾種指令尋址模式選項:A、PCRelativeAddressingPC相對尋址B、RegisterIndirectAddressing寄存器間接尋址C、Baseaddressing基址尋址D、Pseudo-directaddressing偽直接尋址正確答案:【PCRelativeAddressingPC相對尋址#RegisterIndirectAddressing寄存器間接尋址#Pseudo-directaddressing偽直接尋址】43、問題:whichofthefollowingregistersareusedtostoretheresultoftheMIPSmultiplicationanddivisionoperation?以下哪幾個寄存器用來保存MIPS乘除法運算的結果選項:A、hiB、loC、$v0D、$v1正確答案:【hi#lo】44、問題:whichofthefollowingregistersisusedbytheMIPSCcompilertoholdtheparameterspassedfromthemainprogramtothesubroutine?以下哪幾個寄存器被MIPSC編譯器用來保存從主程序傳遞給子程序的參數(shù)?選項:A、$a0B、$v0C、$v1D、$a1正確答案:【$a0#$a1】45、問題:WhichMIPSassemblyinstructionsegmentsimplementthefollowingClanguagestatementfunctions,assumingthatthevariablesi,j,f,g,hcorrespondtotheregisters$s0,$s1,$s2,$s3,$s4?if(i==j)f=g+h;elsef=g-h;若變量i,j,f,g,h分別對應寄存器$s0,$s1,$s2,$s3,$s4,那么以下哪幾段匯編指令實現(xiàn)以下C語言語句功能?if(i==j)f=g+h;elsef=g-h;選項:A、bne$s0,$s1,elseadd$s2,$s3,$s4jexitelse:sub$s2,$s3,$s4exitB、beq$s0,$s1,elsesub$s2,$s3,$s4jexitelse:add$s2,$s3,$s4exit:C、beq$s0,$s1,elsesub$s2,$s3,$s4else:add$s2,$s3,$s4exitD、bne$s0,$s1,elseadd$s2,$s3,$s4else:sub$s2,$s3,$s4exit正確答案:【bne$s0,$s1,elseadd$s2,$s3,$s4jexitelse:sub$s2,$s3,$s4exit#beq$s0,$s1,elsesub$s2,$s3,$s4jexitelse:add$s2,$s3,$s4exit:】46、問題:Itisknownthatthevariablesiandkcorrespondtotheregisters$s0and$s2,andtheinitialvalueofiis0,saveisawordarray,andthefirstaddressisstoredintheregister$s3.WhichofthefollowingprogramblocksimplementthefollowingClanguageprogramblocks?while(save[i]==k)i+=1;若變量i,k分別對應寄存器$s0,$s2,變量i的初始值為0,save是整形數(shù)組,且首地址存儲在寄存器$s3中,以下哪幾段匯編指令實現(xiàn)以下C語言功能?while(save[i]==k)i+=1;選項:A、loop:sll$t1,$s0,2add$t1,$t1,$s3lw$t0,0($t1)bne$t0,$s2,exitaddi$s0,$s0,1jloopexit:B、loop:add$t1,$s0,$s3lw$t0,0($t1)bne$t0,$s2,exitaddi$s0,$s0,1jloopexit:C、loop:add$t1,$s0,$s3lw$t0,0($t1)bne$t0,$s2,exitaddi$s0,$s0,4jloopexit:D、loop:sll$t1,$s0,2add$t1,$t1,$s3lw$t0,0($t1)bne$t0,$s2,exitaddi$s0,$s0,1jloopexit:正確答案:【loop:sll$t1,$s0,2add$t1,$t1,$s3lw$t0,0($t1)bne$t0,$s2,exitaddi$s0,$s0,1jloopexit:#loop:add$t1,$s0,$s3lw$t0,0($t1)bne$t0,$s2,exitaddi$s0,$s0,4jloopexit:】47、問題:Ifthevariablesi,j,f,g,andhcorrespondtotheregisters$s0,$s1,$s2,$s3,and$s4,whichofthefollowingMIPSassemblylanguageinstructionsimplementthefollowingClanguagestatementfunction?if(ij)f=g+h;elsef=g-h;若變量i,j,f,g,h分別對應寄存器$s0,$s1,$s2,$s3,$s4,那么以下哪幾段匯編指令實現(xiàn)以下C語言語句功能?if(ij)f=g+h;elsef=g-h;選項:A、slt$t0,$s0,$s1beq$t0,$zero,elseadd$s2,$s3,$s4jexitelse:sub$s2,$s3,$s4exit:B、slt$t0,$s0,$s1bne$t0,$zero,elsesub$s2,$s3,$s4jexitelse:add$s2,$s3,$s4exit:C、slt$t0,$s1,$s0beq$t0,$zero,elsesub$s2,$s3,$s4jexitelse:add$s2,$s3,$s4exit:D、slt$t0,$s1,$s0bne$t0,$zero,elseadd$s2,$s3,$s4jexitelse:sub$s2,$s3,$s4exit:正確答案:【slt$t0,$s0,$s1beq$t0,$zero,elseadd$s2,$s3,$s4jexitelse:sub$s2,$s3,$s4exit:#slt$t0,$s0,$s1bne$t0,$zero,elsesub$s2,$s3,$s4jexitelse:add$s2,$s3,$s4exit:】48、問題:Ifthevariableicorrespondstotheregister$a0,thebaseaddressoftheinttypesavearrayisstoredintheregister$s0,whichofthefollowingMIPSassemblylanguageinstructionsimplementthefollowingClanguagestatementfunction?for(i=0;i10;i++)save[i]=i;若變量i對應寄存器$a0,字型數(shù)組save首地址存儲在寄存器$s0中,那么以下哪幾段匯編指令實現(xiàn)以下C語言語句功能?for(i=0;i10;i++)save[i]=i;選項:A、add$a0,$0,$0loop:sltiu$t0,$a0,10beq$t0,$0,exitsll$t0,$a0,2add$t0,$t0,$s0sw$a0,0($t0)addi$a0,$a0,1jloopexit:B、add$a0,$0,$0jcheckloop:sll$t0,$a0,2add$t0,$t0,$s0sw$a0,0($t0)addi$a0,$a0,1check:sltiu$t0,$a0,10bne$t0,$0,loopexit:C、add$a0,$0,$0loop:sltiu$t0,$a0,10bne$t0,$0,exitsll$t0,$a0,2add$t0,$t0,$s0sw$a0,0($t0)addi$a0,$a0,1jloopexit:D、add$a0,$0,$0jcheckloop:sll$t0,$a0,2add$t0,$t0,$s0sw$a0,0($t0)addi$a0,$a0,1check:sltiu$t0,$a0,10beq$t0,$0,loopexit:正確答案:【add$a0,$0,$0loop:sltiu$t0,$a0,10beq$t0,$0,exitsll$t0,$a0,2add$t0,$t0,$s0sw$a0,0($t0)addi$a0,$a0,1jloopexit:#add$a0,$0,$0jcheckloop:sll$t0,$a0,2add$t0,$t0,$s0sw$a0,0($t0)addi$a0,$a0,1check:sltiu$t0,$a0,10bne$t0,$0,loopexit:】49、問題:Whichofthefollowingarethecharacteristicsofthehigh-levelprogramminglanguages?高級語言具有以下哪些特征選項:A、hardwareindependent硬件無關B、Describealgorithms描述算法C、Goodindependence,versatilityandportability獨立性強,多樣性和可移植性D、Usemnemonicsandaddresssymbolstorepresentinstructions用符號表示指令正確答案:【hardwareindependent硬件無關#Describealgorithms描述算法#Goodindependence,versatilityandportability獨立性強,多樣性和可移植性】50、問題:whichofthefollowingcharacteristicsdotheReducedinstructionsetComputerinstructionshave?以下哪些特性為精簡指令集計算機所具有?選項:A、Allinstructionsarethesamelength所有指令等長B、Thefunctionofeachinstructionisassimpleaspossible每條指令的功能盡可能簡單C、Memorycanonlybeaccessedbyloadandstoreinstructions僅load和store指令可以訪問存儲器D、Mostoperationsareperformedonregisters絕大多數(shù)指令都操作寄存器正確答案:【Allinstructionsarethesamelength所有指令等長#Thefunctionofeachinstructionisassimpleaspossible每條指令的功能盡可能簡單#Memorycanonlybeaccessedbyloadandstoreinstructions僅load和store指令可以訪問存儲器#Mostoperationsareperformedonregisters絕大多數(shù)指令都操作寄存器】51、問題:WhichfieldsdotheMIPSItypeinstructionshave?MIPSI型指令機器碼具有以下哪些域?選項:A、RsB、RtC、ImmD、Rd正確答案:【Rs#Rt#Imm】52、問題:WhichofthefollowingMIPSassemblyinstructionsareconditionaljumpinstructions?以下哪幾條指令為條件跳轉指令?選項:A、beqB、bneC、jD、slt正確答案:【beq#bne】53、問題:whichofthefollowingregistersisusedbytheMIPSCcompilertoholdtheparametersreturnfromthesubroutinetothemainprocedure?以下哪幾個寄存器被MIPSC語言編譯器用來存儲從子程序返回給主程序的參數(shù)?選項:A、$a0B、$a1C、$v0D、$v1正確答案:【$v0#$v1】54、問題:whichofthefollowinginstructionsthattheMIPSmicroprocessorprovidestoaccesscharacters?以下哪幾條指令可以實現(xiàn)字符訪問?選項:A、lbB、lbuC、lhD、sb正確答案:【lb#lbu#sb】55、問題:whichofthefollowinginstructionscanimplementthefunctionofmultiply?以下哪幾條指令可以實現(xiàn)乘以選項:?A、sllB、sllvC、srlD、srlv正確答案:【sll#sllv】56、問題:whichofthefollowinginstructionscanperformthedivisionby?以下哪幾條指令可以實現(xiàn)除以選項:?A、sllB、sllvC、srlD、srlv正確答案:【srl#srlv】57、問題:whichofthefollowinginstructionscanperformthefunctionofnot?以下哪幾條指令可以直接實現(xiàn)取反的功能?選項:A、xorB、norC、andD、or正確答案:【xor#nor】58、問題:whichofthefollowinginstructions'Immfieldwillbeunsignedextendedwhenexecuting?以下哪幾條指令執(zhí)行時將Imm域進行無符號數(shù)擴展?選項:A、addiuB、sltiuC、andiD、ori正確答案:【andi#ori】59、問題:whichofthefollowinginstructions'Immfieldwillbesignedextendedwhenexecuting?以下哪幾條指令執(zhí)行時將Imm域進行符號數(shù)擴展?選項:A、addiuB、sltiuC、addiD、slti正確答案:【addiu#sltiu#addi#slti】60、問題:Theopcodesandoperandsofcomputerinstructionsarerepresentedinbinarycodeinthecomputer.計算機中的操作碼和操作數(shù)都是采用二進制編碼.選項:A、正確B、錯誤正確答案:【正確】61、問題:Inanassemblylanguageprogram,multipleassemblyinstructionscanbewrittenononeline.匯編語言程序中,一行可以寫多條匯編指令。選項:A、正確B、錯誤正確答案:【錯誤】62、問題:TheoperandsofMIPSarithmeticinstructionsmustberegisters.MIPS算術運算匯編指令的操作數(shù)必須是寄存器。選項:A、正確B、錯誤正確答案:【錯誤】63、問題:MIPSmachineinstruction'slengthisfixedto32bitsMIPS機器指令的長度固定為32位選項:A、正確B、錯誤正確答案:【正確】64、問題:AllMIPSRtypeinstructionshavethreeoperands.所有R型指令都有3個操作數(shù)。選項:A、正確B、錯誤正確答案:【錯誤】65、問題:AllMIPSItypeinstructionsbelongtodatatransferinstructions.所有I型指令都屬于數(shù)據(jù)傳送指令。選項:A、正確B、錯誤正確答案:【錯誤】66、問題:AllMIPSunconditianljumpinstructionsbelongtoJtypeinstructions.所有MIPS無條件跳轉指令都屬于J型指令。選項:A、正確B、錯誤正確答案:【錯誤】67、問題:ThereisasubiinstructioninMIPSinstructionset.MIPS指令集中有subi指令。選項:A、正確B、錯誤正確答案:【錯誤】68、問題:Assume$t1=0x12345678,$t0=87654321,afterexecutinginstructionadd$t2,$t1,$t0andaddu$t3,$t1,$t0,thevaluesof$t2and$t3aresame.若$t1=0x12345678,$t0=87654321,在執(zhí)行完指令add$t2,$t1,$t0andaddu$t3,$t1,$t0,$t2和$t3的值相同。選項:A、正確B、錯誤正確答案:【正確】69、問題:Afterexecutinginstructionmult$t0,$t1,theproductisstoredin$t0.執(zhí)行指令mult$t0,$t1,乘積存放在寄存器$t0中選項:A、正確B、錯誤正確答案:【錯誤】70、問題:Theinstructionjr$rabelongstoJtypeinstruction.指令jr$ra為J型指令選項:A、正確B、錯誤正確答案:【錯誤】71、問題:Whenexecutinginstructionjalsum,theMIPSmicroprocessorfirstmakes$ra=$pc,andthenmakes$pc=sum.執(zhí)行指令jalsum,時,MIPS微處理器首先執(zhí)行$ra=$pc操作,然后在執(zhí)行$pc=sum操作。選項:A、正確B、錯誤正確答案:【正確】72、問題:Stackisaspecialmemoryarea,thedatainitcanonlyworkinfirstinlastoutmode.棧是一個特殊存儲區(qū)域,棧中所有數(shù)據(jù)都采取先入后出管理模式。選項:A、正確B、錯誤正確答案:【錯誤】quizforchapter31、問題:ThefollowingfigureshowstheMIPSmicroprocessorcircuitblockdiagram.WhenthecontrolsignalRegWris1,itmeansthatthedataiswrittentothere

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
  • 4. 未經權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
  • 6. 下載文件中如有侵權或不適當內容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論