πŸ“Š DotNet Technology
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.
πŸ’¬ Discuss
βœ… Correct Answer: (C) Properties of a class are actually methods that work like data members.
πŸ“Š DotNet Technology
Q. Which of the following is NOT a .NET Exception class?
  • (A) Exception
  • (B) StatckMemoryException
  • (C) DivideByZeroException
  • (D) OutofMemoryException
πŸ’¬ Discuss
βœ… Correct Answer: (B) StatckMemoryException
πŸ“Š DotNet Technology
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.
πŸ’¬ Discuss
βœ… Correct Answer: (C) It occurs at run-time.
πŸ“Š DotNet Technology
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
πŸ’¬ Discuss
βœ… Correct Answer: (B) CLR
πŸ“Š DotNet Technology
Q. Which of the following is the Object Oriented way of handling run-time errors?
  • (A) OnError
  • (B) HERESULT
  • (C) Exceptions
  • (D) Error Codes
πŸ’¬ Discuss
βœ… Correct Answer: (C) Exceptions
πŸ“Š DotNet Technology
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
πŸ’¬ Discuss
βœ… Correct Answer: (A) True
πŸ“Š DotNet Technology
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
πŸ’¬ Discuss
βœ… Correct Answer: (A) True
πŸ“Š DotNet Technology
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
πŸ’¬ Discuss
βœ… Correct Answer: (B) False
πŸ“Š DotNet Technology
Q. Which of the following is NOT an Exception?
  • (A) Stack Overflow
  • (B) Division By Zero
  • (C) Insufficient Memory
  • (D) Incorrect Arithmetic Expression
πŸ’¬ Discuss
βœ… Correct Answer: (D) Incorrect Arithmetic Expression
πŸ“Š DotNet Technology
Q. Which of the following is NOT a namespace in the .NET Framework Class Library?
  • (A) System.Process
  • (B) System.Security
  • (C) System.Threading
  • (D) System.Drawing
πŸ’¬ Discuss
βœ… Correct Answer: (A) System.Process

Jump to