Difficulty: Medium
Correct Answer: 1111 0011
Explanation:
Introduction / Context:Binary arithmetic with signed numbers relies on two’s complement encoding. This question checks your ability to encode negatives and perform binary addition correctly within a fixed word size (8 bits).
Given Data / Assumptions:
Concept / Approach:To represent –N in two’s complement: write N in binary, invert all bits, then add 1. Add using binary rules; the carry beyond bit 7 is dropped. Interpret the final 8 bits as two’s complement.
Step-by-Step Solution:
+11 = 0000 1011 → invert 1111 0100 → add 1 → 1111 0101 (this is –11).+2 = 0000 0010 → invert 1111 1101 → add 1 → 1111 1110 (this is –2).Add: 1111 0101 + 1111 1110 = 1 1111 0011 (9-bit). Discard carry → 1111 0011.Interpret: MSB = 1 → negative. Magnitude check: invert 0000 1100; add 1 → 0000 1101 = 13 → result = –13, which matches –11 + –2 = –13.Verification / Alternative check:Decimal check: –11 + –2 = –13; result encoding 1111 0011 corresponds to –13 in 8-bit two’s complement. Range –128…+127 supports this result without overflow.
Why Other Options Are Wrong:
Common Pitfalls:Not discarding the end carry; forgetting the invert+1 rule; mixing sign-magnitude with two’s complement decoding.
Final Answer:1111 0011
Discussion & Comments