IndiaBIX
IndiaBIX
Start typing & press "Enter" or "ESC" to close
  • Home
  • Jobs
  • Results
  • Current Affairs
  • GK
  • Online Test
  • HR Interview
  • BLOG

Interfaces - General Questions (2)

  • Home
  • Computer Science & Engineering
  • C# Programming Questions and Answers
  • Interfaces - General Questions
9. 

Which of the following statements is correct about an interface?

A. One interface can be implemented in another interface.
B. An interface can be implemented by multiple classes in the same program.
C. A class that implements an interface can explicitly implement members of that interface.
D. The functions declared in an interface have a body.

Answer: Option C

Explanation:

No answer description available for this question. Let us discuss.
View Answer Discuss Workspace Report

10. 

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

A. If a class implements an interface partially, then it should be an abstract class.
B. A class cannot implement an interface partially.
C. An interface can contain static methods.
D. An interface can contain static data.
E. Multiple interface inheritance is not allowed.

Answer: Option A

Explanation:

No answer description available for this question. Let us discuss.
View Answer Discuss Workspace Report

11. 

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

A. All interfaces are derived from an Object class.
B. Interfaces can be inherited.
C. All interfaces are derived from an Object interface.
D. Interfaces can contain only method declaration.
E. Interfaces can contain static data and methods.

Answer: Option B

Explanation:

No answer description available for this question. Let us discuss.
View Answer Discuss Workspace Report

12. 

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

 

A. One class can implement only one interface.
B. In a program if one class implements an interface then no other class in the same program can implement this interface.
C. From two base interfaces a new interface cannot be inherited.
D. Properties can be declared inside an interface.
E. Interfaces cannot be inherited.

Answer: Option D

Explanation:

No answer description available for this question. Let us discuss.
View Answer Discuss Workspace Report

13. 

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?

A. 12 bytes
B. 24 bytes
C. 0 byte
D. 8 bytes
E. 16 bytes

Answer: Option B

Explanation:

No answer description available for this question. Let us discuss.
View Answer Discuss Workspace Report

14. 

Which of the following can be declared in an interface?

1 Properties

2 Methods

3 Enumerations

4 Events

5 Structures

 

A. 1, 3
B. 1, 2, 4
C. 3, 5
D. 4, 5

Answer: Option B

Explanation:

No answer description available for this question. Let us discuss.
View Answer Discuss Workspace Report

15. 

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()
{ }
}

A. A function cannot be declared inside an interface.
B. A subroutine cannot be declared inside an interface.
C. A Method Table will not be created for class MyClass.
D. MyClass is an abstract class.
E. The definition of fun1() in class MyClass should be void IMyInterface.fun1().

Answer: Option E

Explanation:

No answer description available for this question. Let us discuss.
View Answer Discuss Workspace Report

  • 1
  • 2

Questions & Answers

Aptitude Chemical Engineering Civil Engineering Computer Science & Engineering Current Affairs Data Interpretation Electrical & Electronics Engineering Electronics & Communication Engineering General Knowledge Logical Reasoning Mechanical Engineering Non Verbal Reasoning Verbal Ability Verbal Reasoning

Interviews

HR Interview

Jobs

Sarkari Jobs

Results

Rojgar ResultSarkari Result

Admission

Admission 2023

Admit Card

Admit Card 2023

Answer Key

Answer Key 2023
copyright
Privacy Policy
© 2025 IndiaBIX. All Rights Reserved.

Report