more queries
Printed From: One Stop GATE
Category: GATE Technical Discussions
Forum Name: GATE CS
Forum Discription: General Technical Discussions, Queries, doubts etc. for GATE in CS.
URL: http://forum.onestopgate.com/forum_posts.asp?TID=119
Printed Date: 15Feb2025 at 7:12pm
Topic: more queries
Posted By: Vimal
Subject: more queries
Date Posted: 02Feb2007 at 11:17am
Q A computer uses a floating point representation comprising a signed magnitude fractional mantissa and an excess-16 base 8 exponent. What decimal number is represented by floating point number whose exponent is 1001 and mantissa 101000 and the sign bit set????
a) -6250 b)-20480 c)-320 d)-0.00122
Q Floating point numbers ina computer are represented by a 10bit mantissa(including sign bit and a 6 bit exponent) The approx value of the maximum number that can be represented is (assuming mantissa is stored in normalised form)
a)2^64 b)2^63 c)2^32 d)2^31
|
Replies:
Posted By: Ajay
Date Posted: 02Feb2007 at 3:04pm
Quote: |
Q A computer uses a floating point representation comprising a signed magnitude fractional mantissa and an excess-16 base 8 exponent. What decimal number is represented by floating point number whose exponent is 1001 and mantissa 101000 and the sign bit set????
a) -6250 b)-20480 c)-320 d)-0.00122 | Refer http://forum.gatementor.com/viewtopic.php?p=14706&highlight=#14706 - http://forum.gatementor.com/viewtopic.php?p=14706&highlight=#14706 for initial insights.
Actual solutions ( courtesy Pankesh/Sukanto) 10011 = 19 But Here Excess- 16 Representation is Givem so that 19 - 16 = 3
Now According the normalized Mantissa Field 0.101000000 mantissa will be 0.625...
thus the Final answer is 0.625 * 8^3 = -320 (as sign bit is 1)
Q Floating point numbers ina computer are represented by a 10bit mantissa(including sign bit and a 6 bit exponent) The approx value of the maximum number that can be represented is (assuming mantissa is stored in normalised form)
a)2^64 b)2^63 c)2^32 d)2^31[/quote]
anser is 2^N (where N = 2^n-1 ; n = 6) ie 2^31 (assuming the exponent in signe magnitute form) _________________ Regards Ajay Kumar
|
|