.NET Programming MCQs with answers Page - 11

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. A property can be declared inside a namespace or a procedure.

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

A

Admin • 833.24K Points
Coach

Q. Which of the following statements is correct about properties used in C#.NET?

  • (A) Every property must have a set accessor and a get accessor.
  • (B) Properties cannot be overloaded.
  • (C) Properties of a class are actually methods that work like data members.
  • (D) A property has to be either read only or a write only.

A

Admin • 833.24K Points
Coach

Q. Which of the following is NOT a .NET Exception class?

  • (A) Exception
  • (B) StatckMemoryException
  • (C) DivideByZeroException
  • (D) OutofMemoryException

A

Admin • 833.24K Points
Coach

Q. Which of the following statements is correct about an Exception?

  • (A) It occurs during compilation.
  • (B) It occurs during linking.
  • (C) It occurs at run-time.
  • (D) It occurs during loading of the program.

A

Admin • 833.24K Points
Coach

Q. In C#.NET if we do not catch the exception thrown at runtime then which of the following will catch it?

  • (A) Compiler
  • (B) CLR
  • (C) Linker
  • (D) Loader

A

Admin • 833.24K Points
Coach

Q. Which of the following is the Object Oriented way of handling run-time errors?

  • (A) OnError
  • (B) HERESULT
  • (C) Exceptions
  • (D) Error Codes

A

Admin • 833.24K Points
Coach

Q. Exceptions can be thrown even from a constructor, whereas error codes cannot be returned from a constructor.

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

A

Admin • 833.24K Points
Coach

Q. All code inside finally block is guaranteed to execute irrespective of whether an exception occurs in the protected block or not.

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

A

Admin • 833.24K Points
Coach

Q. It is compulsory for all classes whose objects can be thrown with throw statement to be derived from System.Exception class.

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

A

Admin • 833.24K Points
Coach

Q. Which of the following is NOT an Exception?

  • (A) Stack Overflow
  • (B) Division By Zero
  • (C) Insufficient Memory
  • (D) Incorrect Arithmetic Expression

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