Aspire's Library

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

Previous Year Question (PYQs)



Given that numbers A and B are two 8 bit 2’s complement numbers with A = 11111111, B = 11111111. Then sum A + B is _________





Solution

2's Complement Addition (8-bit)

Given:

  • A = 11111111 → (−1)
  • B = 11111111 → (−1)

Sum: −1 + (−1) = −2

Convert −2 to 8-bit 2's complement:

  • +2 = 00000010
  • Invert = 11111101
  • Add 1 = 11111110

✅ Final Answer: 11111110



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...