Question

1.
2.
3.
4.
Answer (Detailed Solution Below)

Option 2 : 11011111 / 11011111

Advertisement

Detailed Solution

सही उत्तर 11011111 / 11011111 है।

Key Points
Helpful?
PrepSnapprepsnap.in • Part -A

Question:

Compute 45 - 78 using 8-bit 2's complement arithmetic. Which bit pattern represents the result? / 8-बिट 2's कॉम्प्लीमेंट अंकगणित से 45 - 78 की गणना करें। परिणाम को कौन-सा बिट पैटर्न दर्शाता है?

1.
00100001 / 00100001
2.
11011111 / 11011111
3.
11011110 / 11011110
4.
10100001 / 10100001

Correct Answer: 11011111 / 11011111

45 - 78 = -33. The 8-bit 2's complement of 33 (00100001) is 11011111. Option (c) is the 1's complement form and (d) is the sign-magnitude form, the classic traps. / 45 - 78 = -33; 33 का 8-बिट 2's कॉम्प्लीमेंट 11011111 है।

Downloaded from PrepSnap (prepsnap.in)