NIMCET 2022 — Computer PYQ
NIMCET | Computer | 2022The maximum and minimum value represented in signed 16 bit 2’s complement representation are
Choose the correct answer:
- A.
-16384 and 16383
- B.
0 and 32767
- C.
-32768 and 32767
(Correct Answer) - D.
0 and 65535
-32768 and 32767
Explanation
To find the range of a signed n-bit 2's complement number, we use the standard range formula:
Range=[−(2n−1) to (2n−1−1)]
Given that the number of bits n=16:
1. Calculate the Minimum Value:
Min Value=−(216−1)
Min Value=−(215)
Min Value=−32768
2. Calculate the Maximum Value:
Max Value=+(216−1−1)
Max Value=+(215−1)
Max Value=32768−1
Max Value=32767
∴The range is −32768 to 32767
∴Correct Option: C
Explanation
To find the range of a signed n-bit 2's complement number, we use the standard range formula:
Range=[−(2n−1) to (2n−1−1)]
Given that the number of bits n=16:
1. Calculate the Minimum Value:
Min Value=−(216−1)
Min Value=−(215)
Min Value=−32768
2. Calculate the Maximum Value:
Max Value=+(216−1−1)
Max Value=+(215−1)
Max Value=32768−1
Max Value=32767
∴The range is −32768 to 32767
∴Correct Option: C

