作者zptdaniel ()
看板TransCSI
标题Re: [问题] 计算机概相一些观念厘清
时间Tue Jul 7 18:41:27 2009
※ 引述《larryfeng (ㄚ峰)》之铭言:
: 1. Which of the following is not a graphic device?
: (a) Card reader
: (b) Trackball
: (c) Joystick
: (d) Digitizer table (这种题目是背诵题吗?)
: ans: (a) (如果没有背过的话,可以做判断吗?)
这种题目算是考...你看的东西多不多而已
不过graphic device 是绘图装置 所以Card reader应该就很明显了
: 2. Which of the following is not an interrupt?
: (a) Power on
: (b) Reset
: (c) Overflow
: (d) OS trap (答案我晓得,只是想请问 OS trap 是什麽意思?)
微软的经典对话框 什麽程式即将关闭blah blah blah...
应该算是OS trap?
: 3. For the following items, which one is unnecessary when designing a number
: format?
: (a) CPU types
: (b) Data types
: (c) Number of registers
: (d) Addressing modes (不懂题目真的的意思 无法作答@@)
: ANS:(C)
何者不是设计number format的必要条件
: 4. If the macro
: #define RECTANGLE_AREA ( x,y )( (x) * (y) )
: has been defined. Then the line
: rectArea = RECTANGLE_AREA (a+4,b+7); will be expanded to
: (1) rectArea = 11;
: (2) rectArea = (a+4*b+7);
: (3) rectArea = ( (a+4)*(b+7) );
: (4) RECTANGLE_AREA ( a+4, b+7 );
: ANS:(2) (可是我怎麽觉得是 3 ?)
(3)吧 因为题目是给(x) * (y) 不是 x*y
: 5. Which date structure is most suitable for implementing Priority Queue?
: (a) queue
: (b) stack
: (c) linked list
: (d) heap
: ans:(d) (请问一下答案为D的理由是?)
priority queue 是从当中取出priority最高的资料
所以用heap.heap 未指明就是说max heap,
每次均可由heap得到priority最高的一笔资料.
: 6. Consider an 8-bit binary number with the following bit pattern:
: 10101110
: (a)What is the decimal number if the bit pattern represents a floating number of
: the following formal :SEEEMMMM ( S:sing E:exponent M:mantissa ).
"The sign is 0 for 6."
^^^^^^^^^^^^^^^^^^^^^^ ??? 你题目可能打太长了,我猜有内容被截掉.
: (b)What are the maximal and the minimal positive numbers that can be
: represented by this format?
: (理念没有学过,不知道该如何下手?)
: (如同上次的 IEEE754 一样,希望可以教教我)
(a)
1 010 1110 = (-1)^1 * 2^(-2) * 0.1110 = -0.00111(2)
S EEE MMMM S E M ^代表二进位
请自行转成十进位
(b)
maximal positive numbers = 2^3*0.1111 = 111.1 = 7.5
minimal ....=2^(-4)*0.1111 = 0.00001111 =(请自行转换)
有错请指教~感恩!
--
这流浪的人,努力让梦成真。
That's the way I live, that's the way I did.
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 123.194.100.216