lenelex.com
Home
Quizzes
Games
Register
Log in
Question 1 of 20
What is the output of the following code snippet?
bool a = Convert.ToBoolean("0"); bool b = Convert.ToBoolean(2); Console.WriteLine(a ^ b);
A. True
B. False
C. Error
Links:
Converting to and from Boolean values
Boolean Data Type