6.What is the valid Size of float datatype? A) 10 Bytes B) 6 Bytes C) 4 Bytes D) 8 Bytes View Answer Report DiscussAnswer: Option C Explanation:Currently no explanation available Improve this answer lets discuss in forum
7.What is the precision value of float datatype? A) Upto 6 digit B) Upto 8 digit C) Upto 9 digit D) Upto 7 digit View Answer Report DiscussAnswer: Option D Explanation:Currently no explanation available Improve this answer lets discuss in forum
8.Which of the following statement is a convenient declaration and initialization of a floating point number: A) float variable = 22.502D B) float variable = (Double) 22.502D C) float variable = (float) 22.502D D) float variable = (Decimal)22.502D View Answer Report DiscussAnswer: Option CExplanation:We cannot implicitly convert a “double” number directly to any other datatype. Here, we have to cast the double number as float. float somevariable = (float)22.502D;orDouble somevariable = (Double)22.502D;