3 - What decimal number does the bit pattern 11001110 represent if it is a: • un
ID: 3903176 • Letter: 3
Question
3 - What decimal number does the bit pattern 11001110 represent if it is a:
• unsigned integer?
• sign-magnitude integer?
• two's complement integer?
4 - What decimal number does the bit pattern 01001110 represent if it is a:
• unsigned integer?
• sign-magnitude integer?
• two's complement integer?
5 -What is the binary representation of the decimal number 5.6 assuming the IEE 754 single precision format?
6 - What decimal number does the bit pattern 0xC3A88000 represent if it is:
• A two's complement integer?
• An unsigned integer?
• A floating point number assuming the IEE 754 single precision format
7 - Perform the following calculations assuming that the values are 8-bit decimal integers stored in two's complement format.
• 10101010 + 01101101
• 10101001 - 01101111
Explanation / Answer
1.a.: Decimal equivalant for unsigned number for 11001110: 206
Explanation: 1*2^7 + 1*2^6 + 0*2^5 + 0*2^4 + 1*2^3 + 1*2^2 + 1*2^1 + 0*2^0 = 206
1.b.: Signed Magnitude :-78: since the MSB is 1; that means the number is negative and remaing bits gives the magnitude: 1*2^6 + 0*2^5 + 0*2^4 + 1*2^3 + 1*2^2 + 1*2^1 + 0*2^0 = 78
1.c.: 2's compliment: -50:
since MSB is 1; that means number is negative and converting that back to binary we get 00110010; which is equal to 5; Hence the number is -50.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.