.NET Programming MCQs with answers Page - 43

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

A

Admin • 833.24K Points
Coach

Q. Which collection allows key-value pairs in .NET?

  • (A) List
  • (B) Array
  • (C) Dictionary
  • (D) Queue

A

Admin • 833.24K Points
Coach

Q. What is LINQ?

  • (A) Language Integrated Query
  • (B) Logical Integrated Query
  • (C) Linked Interface Query
  • (D) Local Indexed Query

A

Admin • 833.24K Points
Coach

Q. What is the base class of all classes in .NET?

  • (A) System.Class
  • (B) System.Base
  • (C) System.Object
  • (D) System.Root

A

Admin • 833.24K Points
Coach

Q. Which keyword is used to prevent inheritance in C#?

  • (A) stop
  • (B) sealed
  • (C) static
  • (D) private

A

Admin • 833.24K Points
Coach

Q. Which method is used to release unmanaged resources?

  • (A) Dispose()
  • (B) Close()
  • (C) Finalize()
  • (D) Delete()

A

Admin • 833.24K Points
Coach

Q. What is a namespace in .NET?

  • (A) A class
  • (B) A method
  • (C) A container for classes
  • (D) A variable

A

Admin • 833.24K Points
Coach

Q. Which of the following is a value type?

  • (A) String
  • (B) Array
  • (C) Struct
  • (D) Class

A

Admin • 833.24K Points
Coach

Q. What is boxing in .NET?

  • (A) Converting reference type to value type
  • (B) Converting value type to reference type
  • (C) Casting object to string
  • (D) Memory allocation

A

Admin • 833.24K Points
Coach

Q. What is unboxing?

  • (A) Value type to reference type
  • (B) Reference type to value type
  • (C) Object to string
  • (D) Class to struct

A

Admin • 833.24K Points
Coach

Q. Which keyword is used to define an abstract class?

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

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