C# Interview Question and Answers

21. When do you absolutely have to declare a class as abstract?
 
  • When at least one of the methods in the class is abstract.
  • When the class itself is inherited from an abstract class, but not all base abstract methods have been overridden.
 
Your Name Your Email-ID
Your Answer
22. Does C# have its own class library?
  Not exactly. In common with all .NET languages (example : VisualBasic.NET, Jscript.NET) C# has access to the .NET class library. C# does not have its own class library.
 
Your Name Your Email-ID
Your Answer
23. Does C# have a 'throws' clause?
  No, unlike Java, C# does not require (or even allow) the developer to specify the exceptions that a method can throw.
 
Your Name Your Email-ID
Your Answer
24. What is a multicast delegate?
  It’s a delegate that points to and eventually fires off several methods.
 
Your Name Your Email-ID
Your Answer
25. What is the difference between the Debug class and Trace class?
  Documentation looks the same. Use Debug class for debug builds, use Trace class for both debug and release builds.
 
Your Name Your Email-ID
Your Answer
12345678910 Page 5 of 10