For n-bit 2's complement representation, the range of signed integers is from -2^(n-1) to 2^(n-1) - 1. For n = 4, this becomes -2^3 to 2^3 - 1, which is -8 to +7. Hence, the representable range in 4-bit 2's complement is -8 to +7.
Option A:
Option A, -7 to +8, reverses the endpoints and allows +8, which is not representable in 4-bit 2's complement. The positive limit is +7, not +8.
Option B:
Option B is correct because it aligns with the general formula for 2's complement ranges and matches 4-bit examples used in digital design. Values outside this range would overflow.
Option C:
Option C, -8 to +8, would contain 17 distinct integers, which cannot fit into 4 bits since 4 bits can represent only 16 distinct patterns.
Option D:
Option D, -7 to +7, is symmetric around zero and describes a sign-magnitude or ones-complement-like range, not the asymmetric 2's complement range.
Comment Your Answer
Please login to comment your answer.
Sign In
Sign Up
Answers commented by others
No answers commented yet. Be the first to comment!