Monday, 23 June 2014

C# Basic Interview Questions

.NET Basic Interview Questions
  1. What is a IL?
  2. What is JIT?
  3. What is a CLR?
  4. What is a CTS?
  5. What is a CLS(Common Language Specification)?
  6. What is a Managed Code?
  7. What is a  Assembly ?
  8. What are different types of Assembly?
  9.  What is NameSpace?
  10. What is Difference between NameSpace and Assembly?
  11.  If you want to view a Assembly how to you go about it ?
  12.  What is ILDASM ?
  13. What is Manifest?
  14. Where is version information stored of a assembly ?
  15. Is versioning applicable to private assemblies?
  16. What is GAC ?
  17. What is concept of strong names ?
  18. What is use of SN.EXE ?
  19. How do we apply strong names to assembly ?
  20.  How do you sign an assembly ?
  21. How to add and remove a assembly from GAC?
  22.  What is Delay signing ?
  23. What is garbage collection?
  24.  Can we force garbage collector to run ?
  25. What is reflection?
  26. What are different type of JIT ?
  27.  What are Value types and Reference types ?
  28.  What is concept of Boxing and Unboxing ?
  29. What’s difference between VB.NET and C# ?
  30. What’s difference between System exceptions and Application exceptions?
  31. What is CODE Access security?
  32. What is a satellite assembly?
  33. How to prevent my .NET DLL to be decompiled?
  34. What’s the difference between Convert.toString and .toString() method ?
  35. What is Native Image Generator (Ngen.exe)?
  36. We have two version of the same assembly in GAC?
  37.  I want my client to make choice of which assembly to choose?
  38. What is CodeDom?


Threading
  1. What is Multi-tasking ?
  2. What is Multi-threading ?
  3. What is a Thread ?
  4. Can we have multiple threads in one App domain ?
  5.  Which namespace has threading ?
  6. Can you explain in brief how can we implement threading ?
  7. How can we change priority and what the levels of priority are provided by .NET ?
  8. What does Addressof operator do in background ?
  9. How can you reference current thread of the method ?
  10.  What's Thread.Sleep() in threading ?
  11. How can we make a thread sleep for infinite period ?
  12. What is Suspend and Resume in Threading ?
  13.  What the way to stop a long running thread ?
  14. How do i debug thread ?
  15. What's Thread.Join() in threading ?
  16.  What are Daemon thread's and how can a thread be created as Daemon?
  17.  When working with shared data in threading how do you implement synchronization ?
  18. Can we use events with threading ?
  19. How can we know a state of a thread? What is a monitor object?
  20.  What are wait handles ?
  21.  What is a mutex object ?
  22. what is ManualResetEvent  and AutoResetEvent  ?
  23. What is ReaderWriter Locks ?
  24. How can you avoid deadlock in threading ?
  25.  What’s difference between thread and process?

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. Can you explain different properties of Object Oriented Systems?
  7.  What’s difference between Association , Aggregation and Inheritance relationships?
  8. What are abstract classes ?
  9. What’s a Interface ?
  10. What is difference between abstract classes and interfaces?
  11. What is a delegate ?
  12. What are event’s ?
  13. Do events have return type ?
  14. Can event’s have access modifiers ?
  15. Can we have shared events ?
  16. What is shadowing ?
  17. What’s difference between Shadowing and Overriding ?
  18. What’s difference between delegate and events?
  19. If we inherit a class do the private variables also get inherited ?
  20. What are different accessibility levels defined in .NET ?
  21. Can you prevent a class from overriding ?
  22. What’s the difference between Class and structure’s ?
  23. What does virtual keyword mean ?
  24. What are shared (VB.NET)/Static(C#) variables?
  25. What is Dispose method in .NET ?
  26. Whats the use of “OverRides” and “Overridable” keywords ?
  27.  Where are all .NET  Collection classes located ?
  28. What is ArrayList ?
  29. What’s a HashTable ?
  30. What’s difference between HashTable and ArrayList ?
  31. What are queues and stacks ?
  32. What is ENUM ?
  33.  What is nested Classes ?
  34. What’s Operator Overloading in .NET?
  35. Can we have different access modifiers on get/set methods of a property ?
  36. If we write a goto  or a return statement in try and catch block will the finally block execute ?
  37.  What is Indexer ? Can we have static indexer in C# ?
  38.  In a program there are multiple catch blocks so can it happen that two catch blocks are executed ?
  39. What is the difference between System.String and System.StringBuilder classes?