C# Programming: Interfaces Online Test

Which of the following statements is correct about the C#.NET code snippet given below?

interface IMyInterface

{

void fun1();

int fun2();

}

class MyClass: IMyInterface

{

void fun1()

{ }

int IMyInterface.fun2()

{ }


Which of the following can be declared in an interface?

1. Properties

2. Methods

3. Enumerations

4. Events

5. Structures


A class implements two interfaces each containing three methods. The class contains no instance data. Which of the following correctly indicate the size of the object created from this class?


Which of the following statements is correct about an interface used in C#.NET?


Which of the following statements is correct about Interfaces used in C#.NET?

































Description:

Thank you for taking the C# programming test on Interfaces. It is a multiple choice test composed of 15 questions. You will have 10 minutes to complete the test.

Discussion

Your Facebook Friends on WizIQ