作者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