Pages

Friday, December 30, 2011

C#.NET-InterviewQuestions

0 comments


Here are some common questions asked during technical interview, i have mentioned the answers for the questions which have short explanation, for rest of the questions which need some explanation i have written separate articles for them, you can get the answers in the articles posted on this blog site.


Q1. What are delegates?

Q2. What are multicast delegates? If the methods returns some values , then those methods can be used with multicast delegates? I.e. methods with return types can be used with multicast delegates?

Ans – No , method which are returning values could only be used with single cast delegate as in multicast delegate it will not be sure while executing which method is returning which value as multifunction are there in multicast delegate.

Q3. Difference between arrays.tocopy and arrays.toclone ?

Q4. Any method can be overridden or not?

Q5. Difference between Virtual and Abstract methods, which can be overridden?

Q6. Difference between string and stringbuilder, which is faster?

Q7. What is reflection?

Q8. How to load a dll file using reflection which is not referenced, write code syntax?

Q9. What is generic date type?

Q10. Is List is type safe if so then why?

Q11. State some methods of List or any other collection generic type.?

Q12. What are dictionary classes?

Q13. How to identify whether dictionary contains given key or not ?

Q14. State any method to find the exact given value in the list or dictionary ?

Q15. How you can return two values from a method in a pair?

Q16. What is object serialization and deserialization?

Q17. Difference between constant and readonly ?

Q18. Difference between abstract and interface?

Q19. What are static variables?

Q20. How you are calling storedprocedures from .net?

Q21. What is a thread pooling?

Q22. What is a worker thread?

Q23. How worker thread can access the Main [UI] thread?

Ans - Using Delegates.

Leave a Reply