What will be produced from the following predefined Math class method calls?
a. Console.WriteLine(Math.Abs(-98887.234));
b. Console.WriteLine(Math.Pow(4,3));
c. Console.WriteLine(Math.Sign(-56));
d. Console.WriteLine(Math.Sqrt(81));
e. Console.WriteLine(Math.Min(-56, 56));
a)
The method call " Math.Abs(-98887.234)" is "Abs" function under the Math Class.
So, the statement Console.WriteLine(Math.Abs(-98887.234)) displays the output result is 98887.234
b)
The method call "Math.Pow(4,3) " used "pow" function.
So, the statement Console.WriteLine(Math.Pow(4,3)) displays the output result is 64.
c)
The method call "Math.Sign(-56) " used "sign" function.
So, the statement Console.WriteLine(Math.Sign(-56)) display the output result is -1.
d)
The method call " Console.WriteLine(Math.Sqrt(81)); " used "Sqrt" function.
So, the statement "Console.WriteLine(Math.Sqrt(81))" displays the output result is 9.
e)
The method call "Math.Min(-56, 56)" is used "Min" function.
So, the statement "Console.WriteLine( Math.Min(-56, 56) )" displays the output result is -56.
Sample C# executable code by using given statements:
OUTPUT: