Examly題庫立即開始練習
國中教甄|資訊科技資訊科技112 年第 71 題單選題

Two’s complement is an approach to represent a signed number. Given an 8-bit number as follows 1011 0010, what is the decimal value of this number?

A77
B-77
C78
D-78正確答案
答案與詳解
D
正確答案
將8位元二補數1011 0010轉換為十進位,最高位元為1代表負數,取其二補數後得78,故為-78。

為什麼答案是 D

正確計算出二補數的絕對值為78,並根據MSB為1加上負號,結果為-78。

載入中…

資訊科技 相關題目

想練更多資訊科技考古題?

Examly 收錄 38 萬+ 道歷屆題目,每題都有像這樣的精選詳解。免費下載,立即開練。

黑皮