.NET Programming MCQs with answers Page - 10

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. All control inherits either directly or indirectly from the base class control?

  • (A) Yes
  • (B) No
  • (C) Both
  • (D) None

A

Admin • 833.24K Points
Coach

Q. Which of the following can`t be used in our .NET application?

  • (A) .Net Assemblies
  • (B) ActiveX Control
  • (C) COM type libraries
  • (D) All of the above can be used

A

Admin • 833.24K Points
Coach

Q. Which access modifiers are used in the concept of a property?

  • (A) Get / set
  • (B) Try / catch
  • (C) Finally/throw
  • (D) None of the above

A

Admin • 833.24K Points
Coach

Q. Choose the form in which Postback occurs?

  • (A) Html
  • (B) Webforms
  • (C) Windows
  • (D) All of above

A

Admin • 833.24K Points
Coach

Q. Web.config file is used?

  • (A) Configures the time that the server-side code behind module is called
  • (B) To store the global information and variable definitions for the application
  • (C) To configure the web server
  • (D) To configure the web browser

A

Admin • 833.24K Points
Coach

Q. The first event triggers in an aspx page is?

  • (A) Page_Init()
  • (B) Page_Load()
  • (C) Page_Click()
  • (D) All of the above

A

Admin • 833.24K Points
Coach

Q. What is used to validate complex string patterns like an e-mail address?

  • (A) Required Field Validator
  • (B) Range Validator
  • (C) Regular Expression Validator
  • (D) Custom Validator

A

Admin • 833.24K Points
Coach

Q. Which of the following statements is correct about constructors?

  • (A) If we provide a one-argument constructor then the compiler still provides a zero-argument constructor.
  • (B) Static constructors can use optional arguments.
  • (C) Overloaded constructors cannot use optional arguments.
  • (D) If we do not provide a constructor, then the compiler provides a zeroargument constructor.

A

Admin • 833.24K Points
Coach

Q. How many times can a constructor be called during lifetime of the object?

  • (A) As many times as we call it.
  • (B) Only once.
  • (C) Any number of times before the object gets garbage collected.
  • (D) Any number of times before the object is deleted.

A

Admin • 833.24K Points
Coach

Q. A property can be declared inside a class, struct, Interface.

  • (A) True
  • (B) False
  • (C) none
  • (D) all

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