C# (C Sharp) MCQs with answers Page - 27

Here, you will find a collection of MCQ questions on C# (C Sharp). Go through these questions to enhance your preparation for upcoming examinations and interviews.

To check the correct answer, simply click the View Answer button provided for each question.

Have your own questions to contribute? Click the button below to share your MCQs with others!

+ Add Question

A

Admin • 833.24K Points
Coach

Q. What is the C# keyword which is used to change data and behaviour of a base class by replacing a member of the base class with a new derived member?

  • (A) overrides
  • (B) protected
  • (C) base
  • (D) new

A

Admin • 833.24K Points
Coach

Q. Which keyword is used to declare an interface in C#?

  • (A) interface
  • (B) Interface
  • (C) implement
  • (D) Implement

A

Admin • 833.24K Points
Coach

Q. In C#, by default, the default interface methods are ___.

  • (A) virtual
  • (B) sealed
  • (C) private
  • (D) public

A

Admin • 833.24K Points
Coach

Q. In C#, the objects created using new operator are stored in ___.

  • (A) Cache Memory
  • (B) Stack Memory
  • (C) Heap Memory
  • (D) None of the above

A

Admin • 833.24K Points
Coach

Q. Which of the following cannot be used to declare an interface in C#?

  • (A) Methods
  • (B) Properties
  • (C) Events
  • (D) Structures

A

Admin • 833.24K Points
Coach

Q. Which of the access specifier is used in interface in C#?

  • (A) private
  • (B) public
  • (C) protected
  • (D) All of the above

A

Admin • 833.24K Points
Coach

Q. Which type of class does not have its own objects but acts as a base class for its subclass in C#?

  • (A) Abstract Class
  • (B) Static Class
  • (C) Sealed Class
  • (D) Protected Class

A

Admin • 833.24K Points
Coach

Q. Which modifier is used to while redefining an abstract method by a derived class in C#?

  • (A) Overloads
  • (B) New
  • (C) Overrides
  • (D) Virtual

A

Admin • 833.24K Points
Coach

Q. A C# pointer is used to store the ___ of another type.

  • (A) Value
  • (B) Memory address
  • (C) Size of the type
  • (D) Reference of the variable

A

Admin • 833.24K Points
Coach

Q. C# pointer can only be declared to hold the memory address of ___.

  • (A) value types and arrays
  • (B) reference types
  • (C) pointer types
  • (D) reference and pointer types

Add MCQ in this Category

If you want to share an MCQ question in this category, it's a great idea! It will be helpful for many other students using this website.

Share Your MCQ