DotNet Technology MCQs | Page - 4
Dear candidates you will find MCQ questions of DotNet Technology here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.
β
Correct Answer: (C)
Properties of a class are actually methods that work like data members.
Q. Which of the following is NOT a .NET Exception class?
β
Correct Answer: (B)
StatckMemoryException
Q. Which of the following statements is correct about an Exception?
β
Correct Answer: (C)
It occurs at run-time.
Q. In C#.NET if we do not catch the exception thrown at runtime then which of the following will catch it?
β
Correct Answer: (B)
CLR
Q. Which of the following is the Object Oriented way of handling run-time errors?
β
Correct Answer: (C)
Exceptions
Q. Exceptions can be thrown even from a constructor, whereas error codes cannot be returned from a constructor.
β
Correct Answer: (A)
True
Q. All code inside finally block is guaranteed to execute irrespective of whether an exception occurs in the protected block or not.
β
Correct Answer: (A)
True
Q. It is compulsory for all classes whose objects can be thrown with throw statement to be derived from System.Exception class.
β
Correct Answer: (B)
False
Q. Which of the following is NOT an Exception?
β
Correct Answer: (D)
Incorrect Arithmetic Expression
Q. Which of the following is NOT a namespace in the .NET Framework Class Library?
β
Correct Answer: (A)
System.Process
Jump to