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

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. _________parameters allows you to give a method parameter a default value so that you do not have to specify it every time you call the method.

  • (A) optional
  • (B) named
  • (C) out
  • (D) ref

A

Admin • 833.24K Points
Coach

Q. Duck typing is implemented by using_________ keyword.

  • (A) base
  • (B) ref
  • (C) object
  • (D) dynamic

A

Admin • 833.24K Points
Coach

Q. The ______ parentheses that follow _____ indicate that no information is passed to Main ().

  • (A) Empty, Namespace
  • (B) Empty, Main
  • (C) Empty, submain
  • (D) Empty, class

A

Admin • 833.24K Points
Coach

Q. it possible to store multiple data types in System.Array?

  • (A) Yes
  • (B) No
  • (C) Never
  • (D) None of these

A

Admin • 833.24K Points
Coach

Q. C# does not support:

  • (A) inheritance
  • (B) multiple inheritance
  • (C) polymorphism
  • (D) abstraction

A

Admin • 833.24K Points
Coach

Q. Which of the following jobs are NOT performed by Garbage Collector?
1.Freeing memory on the stack.
2.Avoiding memory leaks.
3.Freeing memory occupied by unreferenced objects.
4.Closing unclosed database collections.
5.Closing unclosed files.

  • (A) 3, 4
  • (B) 3, 5
  • (C) 1, 2, 3
  • (D) 1, 4, 5

A

Admin • 833.24K Points
Coach

Q. Which of the following is/are not types of arrays in C#?

  • (A) Jagged arrays
  • (B) Jazzed arrays
  • (C) Multidimensional
  • (D) Single-Dimensional

A

Admin • 833.24K Points
Coach

Q. A variable which is declared inside a method is called a________variable

  • (A) Local
  • (B) Static
  • (C) Serial
  • (D) Private

A

Admin • 833.24K Points
Coach

Q. Two methods with the same name but with different parameters.

  • (A) Loading
  • (B) Duplexing
  • (C) Multiplexing
  • (D) Overloading

A

Admin • 833.24K Points
Coach

Q. Which file contains configuration data for each unique URl resource used in project?

  • (A) assemblyinfo.cs
  • (B) webapplication.vsdisco
  • (C) global.asax
  • (D) web.config

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