If Option Strict is on, you would use the statement to
assign the sum of two Integer variables to the Text property of the lblTotal control.
a. lblTotal.Text = Convert.ToInteger(intN1 + intN2)
b. lblTotal.Text = Convert.ToInt32(intN1 + intN2)
c. lblTotal.Text = Convert.ToString(intN1) + Convert.ToString(intN2)
d. none of the above
Which of the following statements prevents data loss due to implicit type conversions?
a. Option Explicit On
b. Option Strict On
c. Option Implicit Off
d. Option Convert Off
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here