What happens when you divide a floating point value by 0 in C#?

A. No exception occurs, and the special value Infinity is returned as the result.
B. The program will throw an exception of type System.DivideByZeroException.
C. The program will catch the exception, and return Undefined as the result.
D. The program will crash.

Answer: A

Computer Science & Information Technology

You might also like to view...

What is an algorithm?

What will be an ideal response?

Computer Science & Information Technology

A gigabyte is approximately 1 ______ bytes.

A. thousand B. million C. billion D. trillion

Computer Science & Information Technology