C#MathQuiz.md - brainchildservices/curriculum GitHub Wiki

  1. What is the use of Math class?

    • It is used to provide static methods and constants for logarithmic, trigonometric, and other useful mathematical functions.
  2. What is a field in Math class?

    • A field is a variable that is declared in a class or struct.
  3. What are the two different fields in Math class?

    • Math.E Field: This field represents the natural logarithmic base, specified by the constant, e.
    • Math.PI Field: It represents the ratio of the circumference of a circle to its diameter, specified by the constant, PI(π).
  4. Define Math.Round() function.

    • The Math.round() function returns the value of a number rounded to the nearest integer.
  5. Define Math.Truncate() function.

    • Math.Truncate() is a math class method which is used to compute an integral part of a specified decimal number or double-precision floating-point number
  6. Define Math.Floor() function.

    • Returns the largest integral value less than or equal to the specified number.
  7. Name the function which gives the square root

    • _ Math.Sqrt()_
  8. Name the math function for finding this:3^3=27

    • Math.Pow()