Quiz Yourself: Additional Features
Test your knowledge of the C# programming language additional features.
We'll cover the following...
We'll cover the following...
Technical Quiz
1.
Why must we call methods directly on the Math class (e.g., Math.Sqrt(9)) instead of creating a new Math object?
A.
Because the Math class is marked as static, meaning it cannot be instantiated and all its members belong to the type itself.
B.
Because creating a Math object requires passing a specific mathematical precision context into the class constructor.
C.
Because the Math class is a struct, which means it is passed by value and does not support the new keyword.
D.
Because the methods inside the Math class are private, preventing direct instantiation from external namespaces.
1 / 12