欢迎来到天天文库
浏览记录
ID:43495477
大小:70.09 KB
页数:6页
时间:2019-10-08
《计算机科学基础(英文版)课后答案》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、CHAPTER3NumberRepresentationReviewQuestions1.Repetitivedivisionby2isused,enteringtheremainder(0or1)totheleftofanypreviousremainders.2.Multiplyeachbinarydigitbyitsweightandcombinetheresults.3.24.105.Sign-and-magnitude,one'scomplement,andtwo'scomplement.6.T
2、he“maximumunsignedinteger”isthelargestnumberthatcanbestoredinanintegerlocation.Foragivenbitallocation,n,thelargeststorableunsignedintegerwouldbe2n-1.7.Bitallocationisthenumberofbitsusedtorepresentaninteger.8.Thedecimal256wouldrequireatleast9bitsforstorage
3、.9.Unsignedintegersareusedforcounting,addressing,oranywherenegativenum-bersarenotused.10.Thelargestpositivenumberstorableinabitallocationof8bitsusingsign-and-magnituderepresentationis127;therefore,overflowwouldoccur.11.Therepresentationofpositivenumbersin
4、sign-and-magnitude,one'scomplement,andtwo'scomplementareallidentical.12.Negativenumbersinallthreerepresentationswillallstartwith'1'(theleft-mostbitwillbe'1').Therestofthenumberswillvarydependingontherepresentation.13.Thereare2valuesforzeroinbothsign-and-m
5、agnitude(00000000and10000000)andone'scomplement(00000000and11111111)representations.Two'scomple-mentrepresentationhasonly1valueforzero(00000000).14.ForabitallocationofNbits:Therangeofnumbersstorableinsign-and-magni-tudeisfrom-(2N-1-1)to+(2N-1-1);therangeo
6、fnumbersstorableinone'scomplementisfrom-(2N-1-1)to+(2N-1-1);therangeofnumbersstorableintwo'scomplementisfrom-(2N-1)to+(2N-1-1).34CHAPTER3NUMBERREPRESENTATION15.Ineachoftheserepresentations,a'1'intheleftmostbitpositionindicatesanega-tivenumber.16.Excess_Xi
7、susedprimarilytostoretheexponentialvalueofafraction.'X'repre-sentsthemagicnumberbeingused:normally(2N-1)or(2N-1-1)where"N"isthebitallocation.17.Normalizationisnecessarytomakecalculationseasier.18.Themantissaisthebitsequencetotherightofthedecimalpointafter
8、normaliza-tion.19.Thecomputermuststorethesignofthenumber,theexponentusedduringnormal-ization,andthemantissa.Multiple-ChoiceQuestions20.c21.a22.d23.d24.b25.c26.d27.d28.d29.d30.d31.c32.b33.d34.d35.a36.c37.b38.c39.b40.
此文档下载收益归作者所有