To represent an unsigned decimal number N in binary, the minimum number of bits n must satisfy 2^n > N−1. For N = 100, 2^6 = 64 which is less than 100, while 2^7 = 128 which is greater than or equal to 100. Therefore 7 bits can represent all numbers from 0 to 127, including 100, and 6 bits are insufficient. Hence, 7 bits is the smallest bit-length that can encode the decimal number 100 in binary.
Option A:
Option A suggests 6 bits, but 6 bits can represent numbers only from 0 to 63, which does not include 100. Since 100 exceeds 63, 6 bits are not enough to encode it in binary. Therefore, 6 bits underestimate the required capacity.
Option B:
Option B gives 7 bits, and 7 bits can represent values from 0 to 127, easily covering 100. It is also the smallest n such that 2^n ≥ 101, so it is the minimal correct choice. Thus, 7 bits is the correct minimum bit-length for representing 100 in binary.
Option C:
Option C suggests 8 bits, which can represent values from 0 to 255 and therefore can represent 100, but it is not the minimum number of bits required. While 8 bits are sufficient, the question asks specifically for the minimum, making this option excessive. Hence, 8 bits is correct in range but not minimal.
Option D:
Option D suggests 9 bits, which can represent an even larger range from 0 to 511, including 100. However, it is even more excessive than 8 bits and clearly not minimal. Therefore, although 9 bits would work, it does not satisfy the requirement of minimum bit-length.
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!