Aspire's Library

A Place for Latest Exam wise Questions, Videos, Previous Year Papers,
Study Stuff for MCA Examinations - NIMCET

Previous Year Question (PYQs)



Consider a 9-bit representation. Which of the following correctly gives the smallest number that can be represented in: 
(i) 1's complement, 
(ii) 2's complement





Solution

For an n-bit system:

  • 1’s complement range: $-(2^{n-1}-1)$ to $+(2^{n-1}-1)$ ⇒ smallest $=-(2^{8}-1)={-255}$.
  • 2’s complement range: $-2^{n-1}$ to $+(2^{n-1}-1)$ ⇒ smallest $=-2^{8}={-256}$.

(9-bit means sign + 8 magnitude bits.)



Online Test Series,
Information About Examination,
Syllabus, Notification
and More.

Click Here to
View More


Online Test Series,
Information About Examination,
Syllabus, Notification
and More.

Click Here to
View More

Ask Your Question or Put Your Review.

loading...