十六進位數(AB)和(99)做OR運算後,其十六進位數之值為
十六進位數(AB)和(99)做OR運算後,其十六進位數之值為??
請問要怎麼運算?
3.十六進位數(AB)和(99)做OR運算後,其十六進位數之值為何?
(A)AB
(B)BF
(C)FB
(D)BB。
回答 (2)
✔ 最佳答案
AB = 10101011
99 = 10011001
1 or 1 = 1
1 or 0 = 1
0 or 1 = 1
0 or 0 = 0
AB or 99 = 10111011
3.
答案是: (D) BB。
AB16
= 10x16 + 11
= (8 + 2) x 16 + (8 + 2 + 1)
= (1x2³ + 0x2² + 1x2 + 0) x 16 + (1x2³ + 0x2² + 1x2 + 1)
= 101010112
9916
= 9x16 + 9
= (8 + 1)x16 + (8 + 1)
= (1x2³ + 0x2² + 0x2 + 1)x16 + (1x2³ + 0x2² + 0x2 + 1)
= 100110012
OR 的運算:
0 OR 0 = 0
0 OR 1 = 1
1 OR 0 = 1
1 OR 1 = 1
101010112
100110012
運算的結果
= 10111011
= (1x2³ + 0x2² + 1x2 + 1)x16 + (1x2³ + 0x2² + 1x2 + 1)
= 11x16 + 11
= BB16
參考: 賣女孩的火柴
收錄日期: 2021-04-13 19:53:48
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20140102000010KK04359
檢視 Wayback Machine 備份