.NET Programming MCQs with answers Page - 20

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 IL stand for in the context of .NET?

  • (A) Intermediate Language
  • (B) Internal Logic
  • (C) Instruction Level
  • (D) Inline Loader

R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which keyword is used to inherit a class in C#?

  • (A) inherits
  • (B) base
  • (C) extend
  • (D) :

R

Ram Sharma • 3.40K Points
Extraordinary

Q. What is boxing in C#?

  • (A) Converting value type to object type
  • (B) Converting object to value type
  • (C) Storing a class in memory
  • (D) Wrapping method inside a class

R

Ram Sharma • 3.40K Points
Extraordinary

Q. What does the `params` keyword allow in C#?

  • (A) Optional parameters
  • (B) Multiple constructors
  • (C) Passing a variable number of arguments
  • (D) Named arguments

R

Ram Sharma • 3.40K Points
Extraordinary

Q. What is the return type of `Console.ReadLine()`?

  • (A) char
  • (B) int
  • (C) string
  • (D) void

R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which of these is NOT a valid loop in C#?

  • (A) for
  • (B) foreach
  • (C) loop
  • (D) do-while

R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which method is used to convert a string to an integer in C#?

  • (A) ToInt()
  • (B) Convert.ToInt32()
  • (C) ParseInt()
  • (D) Int.Parse()

R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which feature in C# allows memory management automatically?

  • (A) JIT
  • (B) Manual Disposal
  • (C) Garbage Collection
  • (D) Stack Allocation

R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which of the following is NOT a visibility modifier in C#?

  • (A) public
  • (B) private
  • (C) protected
  • (D) external

R

Ram Sharma • 3.40K Points
Extraordinary

Q. What is the purpose of `ref` keyword in method parameters?

  • (A) Pass argument by value
  • (B) Allow multiple return values
  • (C) Pass argument by reference
  • (D) Make parameter optional

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