C# OOP MCQs

Question 1: Interface members have by default ______ accessibility.

Question 2: What to do if a class implements two interfaces which coincidently have one method with the same name and signature?

Question 3: Can one interface inherit from one or multiple interfaces in C#?

Question 4: Which of the following types can implement interfaces?

Question 5: Can we declare a protected member in an interface?

Question 6: Which of the following types can participate in inheritance in C#?

Question 7: Which of the following is not supported in C#?

Question 8: Which of the following statements is FALSE?

Question 9: A class can inherit one or more Struct.

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

class Shape
{
    protected int Sides { get; set; }
}

class Square : Shape
{
    public int GetSides()
    {
        return this.Sides;
    }
}

Shape sq = new Square();
sq.Sides = 4;