1)

What will be output of the following conversion ?

static void Main(string[] args)
{
char x = 'X';
string y = "x";
Console.WriteLine(Convert.ToInt32(x));
Console.WriteLine(Convert.ToInt32(Convert.ToChar(y)));
Console.ReadLine();
}


A) 88, 120

B) 120, 88

C) 88, 121

D) 121, 80

Answer:

Option A

Explanation:

 ASCII value of character ‘X’ is 88 and ASCII value of string “x” is 120. So, output: 88, 120