1.

What is the use of Math class?(a) To use the mathematical functions with strings(b) To use the mathematical functions(c) To suppress the use of mathematical functions(d) To complex the calculationsThis question was addressed to me by my school teacher while I was bunking the class.This intriguing question comes from Inbuilt Classes in section Inbuilt Classes of Object Oriented Programming

Answer» RIGHT option is (B) To USE the mathematical functions

Best explanation: The Math class is provided with some special functions. These functions can be used to CALCULATE and get result of some special and usual mathematical functions. We don’t have to write the code to calculate the trigonometric function results, instead we can use Math functions.


Discussion

No Comment Found

Related InterviewSolutions