problem-set2-sol

problem-set2-sol - CS211 Problem set 2 Note: For the...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
CS211 Problem set 2 Note: For the questions below, the number in bracket shows which   mode is used to represent a number. I. Number representation and conversion 1. Convert 512(10) into a 32-bit two's complement binary number. Ans: 0000 0000 0000 0000 0000 0010 0000 0000 2. Convert -1023(10) into a 32-bit two's complement binary number. Ans: 1111 1111 1111 1111 1111 1100 0000 0001 3. Convert -4,000,000(10) into a 32-bit two's complement binary  number. Ans: 1111 1111 1100 0010 1111 0111 0000 0000 4. What decimal number does this two's complement binary number  represent: 1111 1111 1111 1111 1111 1110 0000 1100(2)? Ans: -500 5. What decimal number does this two's complement binary number  represent: 1111 1111 1111 1111 1111 1111 1111 1111(2)? Ans: -1 6. What decimal number does this two's complement binary number  represent: 0111 1111 1111 1111 1111 1111 1111 1111(2)? Ans: 2^31 – 1 = 2147483647
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 5

problem-set2-sol - CS211 Problem set 2 Note: For the...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online