Most common C# Interview questions

1. What’s the advantage of using System.Text.StringBuilder over System.String? Can you store multiple data types in System.Array? No.
2. What’s the difference between the System.Array.CopyTo() and System.Array.Clone()?
3. How can you sort the elements of the array in descending order?
4. What’s the .NET datatype that allows the retrieval of data by a unique key?
5. What’s class SortedList underneath?
6. Will finally block get executed if the exception had not occurred?
7. What’s the C# equivalent of C++ catch (…), which was a catch-all statement for any possible exception?
8. Can multiple catch blocks be executed?
9. Why is it a bad idea to throw your own exceptions?
10. What’s a delegate?
11. What’s a multicast delegate?
12. How’s the DLL Hell problem solved in .NET?
13. What are the ways to deploy an assembly?
14. What’s a satellite assembly?
15. What namespaces are necessary to create a localized application?
16. What’s the difference between // comments, /* */ comments and /// comments?
17. How do you generate documentation from the C# file commented properly with a command-line compiler?
18. What’s the difference between and XML documentation tag?
19. Is XML case-sensitive?
20. What debugging tools come with the .NET SDK?
21. What does the This window show in the debugger?
22. What does assert() do?
23. What’s the difference between the Debug class and Trace class?
24. Why are there five tracing levels in System.Diagnostics.TraceSwitcher?
25. Where is the output of TextWriterTraceListener redirected?

No comments:

Post a Comment