Which exception will the following code generate?

```
Dim num1 As Integer, num2 As Integer = 1000000
num1 = num2 * num2
```
(A) NullReferenceException
(B) ArgumentOutOfRangeException
(C) OverflowException
(D) InvalidCastException

(C) OverflowException

Computer Science & Information Technology

You might also like to view...

A switch statement variable must be ________

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

What will be output by the following statements?

double x = 1.23456789; cout << fixed; cout << setprecision(5) << x << endl; cout.precision(3); cout << x << endl; cout << x << endl; a. 1.2346 1.23 1.23 b. 1.23457 1.235 1.23456789 c. 1.2346 1.23 1.23456789 d. 1.23457 1.235 1.235

Computer Science & Information Technology