作者larryfeng (ㄚ峰)
看板TransCSI
标题[问题] 计算机概相一些观念厘清
时间Tue Jul 7 17:49:12 2009
1. Which of the following is not a graphic device?
(a) Card reader
(b) Trackball
(c) Joystick
(d) Digitizer table (这种题目是背诵题吗?)
ans: (a) (如果没有背过的话,可以做判断吗?)
2. Which of the following is not an interrupt?
(a) Power on
(b) Reset
(c) Overflow
(d) OS trap (答案我晓得,只是想请问 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)
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 ?)
5. Which date structure is most suitable for implementing Priority Queue?
(a) queue
(b) stack
(c) linked list
(d) heap
ans:(d) (请问一下答案为D的理由是?)
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 一样,希望可以教教我)
以上几题,拜托各位高手指点
感谢,再感谢!
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 218.173.172.205
※ little1i1ji:转录至看板 B881010XX 06/07 06:24