UGC NET Paper 2 (Computer Science)Hard

The 8-bit two's complement representation of -45 is:

  1. A. 10101101
  2. B. 11010010
  3. C. 11010011
  4. D. 10101100

Correct answer: C. 11010011

45 = 00101101; invert to 11010010 and add 1 giving 11010011; 11010010 is the 1's complement.

More UGC NET Computer Science and Applications questions

Exams that ask this topic