Tuesday, April 01, 2008

.NET Interview questions and Answers: 6

OOPS

  1. What is Object Oriented Programming ?
  2. What’s a Class ?
  3. What’s a Object ?
  4. What’s the relation between Classes and Objects ?
  5. What are different properties provided by Object-oriented systems ?
  6. Twist :- Can you explain different properties of Object Oriented Systems?
  7. Twist :- What’s difference between Association , Aggregation and Inheritance relationships?
  8. How can we acheive inheritance in VB.NET ?
  9. What are abstract classes ?
  10. What’s a Interface ?
  11. What is difference between abstract classes and interfaces?
  12. What is a delegate ?
  13. What are event’s ?
  14. Do events have return type ?
  15. Can event’s have access modifiers ?
  16. Can we have shared events ?
  17. What is shadowing ?
  18. What’s difference between Shadowing and Overriding ?
  19. What’s difference between delegate and events?
  20. If we inherit a class do the private variables also get inherited ?
  21. What are different accessibility levels defined in .NET ?
  22. Can you prevent a class from overriding ?
  23. What’s the use of “MustInherit” keyword in VB.NET ?
  24. Why can not you specify accessibility modifier in Interface ?
  25. What are similarities between Class and structure ?
  26. What’s the difference between Class and structure’s ?
  27. What does virtual keyword mean ?
  28. What are shared (VB.NET)/Static(C#) variables?
  29. What is Dispose method in .NET ?
  30. Whats the use of “OverRides” and “Overridable” keywords ?
  31. Where are all .NET Collection classes located ?
  32. What is ArrayList ?
  33. What’s a HashTable ?
  34. Twist :- What’s difference between HashTable and ArrayList ?
  35. What are queues and stacks ?
  36. What is ENUM ?
  37. What is nested Classes ?
  38. What’s Operator Overloading in .NET?
  39. In below sample code if we create a object of class2 which constructor will fire first ?
  40. What’s the significance of Finalize method in .NET?
  41. Why is it preferred to not use finalize for clean up?
  42. How can we suppress a finalize method?
  43. What’s the use of DISPOSE method?
  44. How do I force the Dispose method to be called automatically, as clients can forget to call Dispose method?
  45. In what instances you will declare a constructor to be private?
  46. Can we have different access modifiers on get/set methods of a property ?
  47. If we write a goto or a return statement in try and catch block will the finally block execute ?
  48. What is Indexer ?
  49. Can we have static indexer in C# ?
  50. In a program there are multiple catch blocks so can it happen that two catch blocks are executed ?
  51. What is the difference between System.String and System.StringBuilder classes?


No comments: