作者avogau ( 假 装)
看板TransCSI
标题Re: [问题] 中正,中山 几个考古题想请教
时间Sat Jul 4 00:12:37 2009
※ 引述《larryfeng (ㄚ峰)》之铭言:
: 又要麻烦大家了!
: 先感谢上次为我解题的高手
: 这次还有几个小题目不知道其详解
: 上来这里请教一下大家
: 以下是几个题目:
: 中山九十一
: 3.
: (a)请问使用2补数表式法(two’s complement)可表示的最大整数和最小整数为多少?(位
: 元长度16 bits)
: (最大整数我知道(2^15)-1,那最小整数为何是(-2^15)?)
最小数为 1000 0000 0000 0000
所以是 (-2^15)
: (b)承(a),使用1补数表示法可表示的最大整数和最小整数为多少? (位元长度16 bits)
: (最大整数我知道(2^15)-1,那最小整数为何是[(-2^15)-1]?)
最小数为 1000 0000 0000 0000
所以是 (-2^15)-1
: 中正九十六
: 1. Given the following three real values, what is the best order in which to
: add these values so that you will get the most accurate answer?
: X=3123*10^4 y=576*10^(-1) z=4421*10^3
: (a) x+z+y
: (b) y+x+z
: (c) z+y+x
: (d) It does not matter in this case
: Ans: (a) (请问一下顺序调换会有差异吗? 不太懂原因)
会有差
要尽量让两个差不多相加
不要一个很大的去跟一个很小的去运算
: 中正九十六
: 7. Which of the following statements is true?
: (a) Personal computer (PC) is an embedded system.
: (b) Laptop computer (also known as notebook computer) is an embedded system.
: (c) Printer is an embedded system.
: (d) Automatic teller machine (ATM) is not an embedded system.
: Ans: (D) 但我上去google一下,他说ATM也属嵌入式系统,该怎麽办@@?
所以可能是 (C)
: 中山八十三
: 1.
: b) What is the binary representation (by using excess-128) of the decimal
: number 110? Ans: 11101110
: (by using unsigned number 跟by using BCD 我都会,我以为差不多
: 结果用在by using excess-128就不OK了,不知道这之间有何差别,
: 希望高手能指点我一下。)
: (以上这几题是今天最头痛的题目,害得我吃不下饭睡不着觉,拜托众高手们指点我一下
: ,万分感谢,感谢,再感谢。)
110+128 = 238 => 11101110
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 118.168.102.37