MCQOPTIONS
Saved Bookmarks
| 1. |
Select the correct output for following set of code. static void Main(string[] args) { int X = 0; if (Convert.ToBoolean(X = 0)) Console.WriteLine("It is zero"); else Console.WriteLine("It is not zero"); Console.ReadLine(); } |
| A. | It is zero |
| B. | It is not zero |
| C. | Infinite loop |
| D. | None of the mentioned |
| Answer» C. Infinite loop | |