Tuesday, 28 March 2017

61 Best DotNet Basics Interview Questions and Answers

.NET is a framework/infrastructure that is developed by Microsoft which is used to develop, run and deploy wen based ,window based applications and XML Web services.
  1. What is an IL code?
  2. What are different types of JIT?
  3. What is the difference between managed and unmanaged code?
  4. But when we create a destructor the performance falls down?
  5. What is CTS?
  6. What is Namespace?
  7. Where is the version information stored of an assembly?
  8. What is GAC?
  9. What are stack and heap?
  10. How can we avoid boxing and unboxing?
  11. How can I know from which source the exception occurred?
  12. What are different types of collections in .NET?
  13. What are Queues and stack collection?
  14. What are the generic equivalent for array list,stack, queues and hashtable?
  15. Is CAS supported in .NET 4.0?
  16. Can you mention some scenarios where we can use serialization?
  17. Why IL code is not fully compiled?
  18. What is Native Image Generator (Ngen.exe)?
  19. What is a garbage collector?
  20. So how can we clean unmanaged objects and also maintain performance?
  21. What is a CLS (Common Language Specification)?
  22. What is Difference between NameSpace and Assembly?
  23. Is versioning applicable to private assemblies?
  24. How to add and remove an assembly from GAC?
  25. What are Value types and Reference types?
  26. How to prevent my .NET DLL to be decompiled?
  27. What if we do not catch the exception?
  28. What is the difference between arraylist and list?
  29. Can you explain generics in .NET?
  30. What is the use of IEnumerable, ICollection, Ilist and IDictionary?
  31. What is sandboxing?
  32. When should we use binary serialization as compared to XML serialization?
  33. Who compiles the IL code and how does it work?
  34. So does it mean that NGEN.EXE will always improve performance?
  35. What are generations in Garbage collector (Gen 0, 1 and 2)?
  36. Can we force garbage collector to run?
  37. What is an Assembly?
  38. What is ILDASM?
  39. What is the use of strong names?
  40. If we have two versions of the same assembly in GAC how to we make a choice?
  41. What is concept of Boxing and Unboxing?
  42. What is the difference between Convert.toString and .toString () method?
  43. What are system level exceptions and application level exceptions?
  44. Are Arraylist faster or Arrays?
  45. Can you explain the concept of generic collection?
  46. What is code access security (CAS)?
  47. How can we create a windows service using .NET?
  48. Can you explain the concept of “Short Circuiting”?
  49. How does JIT compilation work?
  50. What is a CLR?
  51. Garbage collector cleans managed code, how do we clean unmanaged code?
  52. What is the difference between finalize and dispose?
  53. What are the different types of Assembly?
  54. What is Manifest?
  55. What is Delay signing?
  56. What is reflection?
  57. How performance is affected due to boxing and unboxing?
  58. How can we handle exceptions in .NET?
  59. Can two catch blocks be executed?
  60. What are hashtable collections?
  61. What is the difference between dictionary and hashtable?
  62. So how does CAS actually work?
  63. What is serialization and deserialization in .NET?
  64. What is the difference between “Typeof” and “GetType” ?

1 comment: