C# Class MCQs

Question 16: Which of the following statements is TRUE?

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

public static void Main(string[] args)
{
	display();
}

static void display(int i =10){
    Console.Write(i);
}

Question 18: What the following statement does?

Object.ReferenceEqual(obj1, obj2)

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

public static void Main(string[] args)
{
	String str1, str2; 
    str1 = "Hello"; 
    str2 = "Hello";
		
	Console.Write(Object.ReferenceEquals(str1, str2));
}

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

public static void Main(string[] args)
{
	string str1 = "Hi";
	string str2 = String.Copy(str1);
		
	Console.Write(Object.ReferenceEquals(str1, str2));
}