1.

Which of these methods return a largest whole number less than or equal to variable X?(a) double Ciel(double X)(b) double Floor(double X)(c) double Max(double X)(d) double Min(double X)I had been asked this question in an interview for internship.My doubt is from Rounding Functions topic in division Reflections, Multithreaded Programming, Collection Classes and Mathematical Functions of C#

Answer»

The correct ANSWER is (b) double Floor(double X)

To EXPLAIN I WOULD say: double Floor(double X) RETURNS a largest whole number less than or EQUAL to variable X.



Discussion

No Comment Found

Related InterviewSolutions