.NET Programming MCQs with answers Page - 28

Here, you will find a collection of MCQ questions on .NET Programming. 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

R

Ram Sharma • 3.40K Points
Extraordinary

Q. What does CTS stand for in .NET?

  • (A) Common Type Structure
  • (B) Common Type System
  • (C) Code Type Safety
  • (D) Class Type Scheme

R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which C# type is used to represent a time interval?

  • (A) DateTime
  • (B) TimeSpan
  • (C) DateTimeOffset
  • (D) Clock

R

Ram Sharma • 3.40K Points
Extraordinary

Q. What is the base class for all classes in C#?

  • (A) Object
  • (B) BaseClass
  • (C) Class
  • (D) System

R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which keyword is used to declare a method that must be implemented in derived classes?

  • (A) sealed
  • (B) virtual
  • (C) abstract
  • (D) override

R

Ram Sharma • 3.40K Points
Extraordinary

Q. What does the `virtual` keyword indicate in a method declaration?

  • (A) Method cannot be overridden
  • (B) Method must be overridden
  • (C) Method can be overridden
  • (D) Method is sealed

R

Ram Sharma • 3.40K Points
Extraordinary

Q. What is the purpose of `override` keyword in C#?

  • (A) To overload a method
  • (B) To define a method
  • (C) To override a base class virtual method
  • (D) To cancel a method

R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which class is used to handle text file operations?

  • (A) FileReader
  • (B) TextHandler
  • (C) File
  • (D) FileStream

R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which of the following is a thread-safe collection in .NET?

  • (A) List<T>
  • (B) Dictionary<TKey, TValue>
  • (C) ConcurrentDictionary<TKey, TValue>
  • (D) ArrayList

R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which class in .NET represents a fixed-size sequential collection of elements of the same type?

  • (A) List<T>
  • (B) Array
  • (C) Queue
  • (D) Dictionary

R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which delegate is used for event handling in .NET?

  • (A) Event
  • (B) Action
  • (C) EventHandler
  • (D) Func

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