Difficulty: Easy
Correct Answer: 127
Explanation:
Introduction:
Seven-bit binary numbers are common in legacy character encodings and basic digital counters. The question asks for the highest-value number representable with 7 bits when interpreted as an unsigned quantity (no sign bit).
Given Data / Assumptions:
Concept / Approach:
For an n-bit unsigned integer, the minimum value is 0 and the maximum value is 2^n - 1. Setting all n bits to 1 yields the maximum value. For n = 7, the maximum is 2^7 - 1 = 128 - 1 = 127.
Step-by-Step Solution:
Verification / Alternative check:
Write the place values: 64 + 32 + 16 + 8 + 4 + 2 + 1 = 127. This matches 2^7 - 1.
Why Other Options Are Wrong:
Common Pitfalls:
Confusing signed with unsigned. In signed 7-bit (two's complement is defined for 8-bit, not 7), ranges differ. Here we clearly use unsigned 7-bit magnitude.
Final Answer:
127
Discussion & Comments