1.

Which of these classes contains only floating point functions?(a) Math(b) Process(c) System(d) ObjectI got this question at a job interview.Question is taken from Rounding Functions topic in chapter Reflections, Multithreaded Programming, Collection Classes and Mathematical Functions of C#

Answer»

The CORRECT choice is (a) MATH

The explanation: Math class contains all the floating point functions that are USED for general PURPOSE mathematics methods. Example : sin(), cos(), EXP(), sqrt() etc.



Discussion

No Comment Found

Related InterviewSolutions