csharp Variable Questions & Answers

Question 1: Which of the following methods is an entry point in the C# console program?

Question 2: Which of the following keyword is used to include a different namespace in a program?

Question 3: What will be the output of the following program?

public static void Main()
{ 
    int a; 
    Console.WriteLine(a); 
}

Question 4: What will be the output of the following code?

int i = 10, j;
Console.WriteLine(j=i*2); 

Question 5: What will be the output of the following program?

int i;
int j = i;
Console.WriteLine(j);