1. Core Theory: Range Formula of an n-bit System
Agar hamare paas $n$ bits hain, toh 2's complement representation mein ek bit sign ke liye reserve hoti hai (MSB), aur bache hue $(n-1)$ bits magnitude specify karte hain. Lekin 2's complement mein zero ($0$) ka ek hi representation ($000\dots0$) hota hai, jis wajah se negative side par ek extra number represent ho pata hai.
| Bits ($n$) | Representation Format | Minimum Value | Maximum Value | Zero Representations | Unique Values |
|---|---|---|---|---|---|
| 8-Bit | Signed Magnitude | $-(2^7 - 1) = -127$ | $+(2^7 - 1) = +127$ | 2 ($+0, -0$) | 255 unique |
| 1's Complement | $-(2^7 - 1) = -127$ | $+(2^7 - 1) = +127$ | 2 ($+0, -0$) | 255 unique | |
| 2's Complement | $\mathbf{-2^7 = -128}$ | $\mathbf{+(2^7 - 1) = +127}$ | 1 ($00000000$) | 256 unique ($2^8$) | |
| 9-Bit | 1's Complement | $-255$ | $+255$ | 2 ($+0, -0$) | 511 unique |
| 2's Complement | $\mathbf{-256}$ | $\mathbf{+255}$ | 1 | 512 unique ($2^9$) | |
| 16-Bit | 1's Complement | $-32767$ | $+32767$ | 2 ($+0, -0$) | 65535 unique |
| 2's Complement | $\mathbf{-32768}$ | $\mathbf{+32767}$ | 1 | 65536 unique ($2^{16}$) |
2. The 30-Second Rule & Instant Option Elimination
NIMCET mein powers of $2$ ($2^{15}, 2^{19}$, etc.) calculate karte baithna time waste hai. In 3 rules ko dimag mein baitha lo:
2's complement mein hamesha ek extra negative number hota hai kyunki $0$ positive side ki limit ka hissa ban jata hai.
Invariant Equation:
$$\text{Min} + \text{Max} = -2^{n-1} + (2^{n-1} - 1) = \mathbf{-1}$$
Sum hamesha strictly $-1$ hi aayega!
• Minimum negative value hamesha EVEN number hoti hai (jaise $-128, -256, -512, -32768$).
• Maximum positive value hamesha ODD number hoti hai (jaise $+127, +255, +511, +32767$).
Agar option mein Max Even ya Min Odd dikhe, use foran eliminate karo!
Agar koi bhi option symmetric range dikhaye (jaise $-128 \text{ to } +128$ ya $-127 \text{ to } +127$ ya $-32768 \text{ to } +32768$), toh wo 2's complement ka kabhi nahi ho sakta. Symmetric ranges sirf 1's complement ya Signed Magnitude ki hoti hain!
3. Official NIMCET PYQs Showcase (2012 to 2026)
I. In 9-bit 1's complement, range is $-255$ to $+255$, and two representations of zero exist. II. In 9-bit 2's complement, range is $-256$ to $+255$, and both 1's and 2's complement represent exactly 512 total combinations. III. Maximum positive number representable is $+255$ in both 9-bit systems. Which of the above statements is/are CORRECT?