You can tell a lot about a built-in method when you see how it is used. What can you tell about the built-in Pow() method (used to raise a number to a power) from the following statement?double result = Math.Pow(2.0, 3.0);

What will be an ideal response?

From this statement, you know the following about the Pow() method:
1. It is in the Math class because the class name and a dot precede the method call.
2. It is public because you can write a program that uses it.
3. It is static because it is used with its class name and a dot, without any object.
4. It accepts two double parameters.
5. It returns a double or a type that can be promoted automatically to a double (such as an int) because its answer is stored in a double.

Computer Science & Information Technology

You might also like to view...

In order to ensure posts are from legitimate members, users might be asked to enter a ________

A) COPPA B) RSS C) CAPTCHA D) SMS

Computer Science & Information Technology

________ are used to list the contents of the left pane in Slide Master view

A) Icons B) Thumbnails C) Screen shots D) Outline text

Computer Science & Information Technology