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.
What is the primary difference between Math.Floor() and Math.Round() when applied to a value like 49.6?
A.
Math.Floor() completely removes the decimal portion, while Math.Round() always rounds the number to a higher integer.
B.
Math.Floor() strictly returns 49.0 by rounding down, while Math.Round() returns 50.0 by rounding to the nearest integer.
C.
Math.Floor() rounds the value up to 50.0, while Math.Round() strictly removes the decimal to return 49.0.
D.
Math.Floor() adjusts the precision based on system settings, while Math.Round() strictly requires a specific parameter for decimals.
1 / 12