Programming Homework Help
City University of New York Binary Floating Point Number Questions
IncorrectQuestion 10 / 4 pts
Convert the 8 bit “toy” binary floating point number below to decimal notation:
(format is 8 bits: S EEEE FFF and the bias is 7, where S=sign, E=Exponent F=Fraction bits).
00111010 (bin) = _____ (dec).
For answer use (sign)x.x format, e.g. -2.5, +1.75, +0.0, etc.
Convert the decimal number below to the 5 bit “toy” binary floating point numbers:
(format is 5 bits: SEEFF and the bias is 1, where S=sign, E=Exponent F=Fraction bits):
+3.5(dec) = _______ (bin).
Convert the 8 bit “toy” binary floating point number below to decimal notation:
(format is 8 bits: S EEEE FFF and the bias is 7, where S=sign, E=Exponent F=Fraction bits).
00000000 (bin) = _____ (dec).
For answer use (sign)x.x format, e.g. -2.5, +1.75, +0.0, etc.
Convert the decimal number below to the 5 bit “toy” binary floating point numbers:
(format is 5 bits: SEEFF and the bias is 1, where S=sign, E=Exponent F=Fraction bits):
–2.5(dec) = _______ (bin).
Convert the decimal number below to the 5 bit “toy” binary floating point numbers:
(format is 5 bits: SEEFF and the bias is 1, where S=sign, E=Exponent F=Fraction bits):
+3.7(dec) = _______ (bin).
convert Hexadecimal 38 to binary:
convert Hexadecimal 11 to binary:
convert decimal 145 to binary:
convert decimal 252 to binary:
What is the result when unsigned char j= 0x37 is operated on with the expressions
i = j | 0xC1;
Result i contains 0x_________
What is the result when unsigned char j= 0xD4 is operated on with the expressions
i = j ^ 0x25;
Result i contains 0x_________
What is the result when a signed char i = 0xF2 shifted for each case:
1) logical shift right 2 bits: 0x
2) arithmetic shift right 1 bit: 0x
What is the result when unsigned char j= 0xAB is operated on with the expressions
i = j | 0xC1;
Result i contains 0x_________