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...

One of the unique features of the Mac desktop is the _____.

A. Dock B. window C. Start key D. Home key

Computer Science & Information Technology

The ________ ________ displays when the user points to the video during the slide show

Fill in the blank(s) with correct word

Computer Science & Information Technology

Which of the following is an open source programming language?

Ada Java C# Python

Computer Science & Information Technology

Answer the following statements true (T) or false (F)

1. The principle of locality reflects the observation that memory references by the processor tend to cluster for instructions but not for data. 2. One of the assertions that locality is based on is that during any interval of time, a program references memory locations non-uniformly. 3. Locality is based on the assertion that the correlation between immediate past and immediate future memory reference patterns is low, and increases as the time interval increases. 4. Intuitively, the principle of locality makes sense.

Computer Science & Information Technology