Bookmark this page
Difficulty Level: AllBeginnerIntermediateExpert
Ques 1. What’s the advantage of using System.Text.StringBuilder over System.String?
Ques 2. Can you store multiple data types in System.Array?
Ques 3. What’s the difference between the System.Array.CopyTo() and System.Array.Clone()?
Ques 4. How can you sort the elements of the array in descending order?
Ques 5. What’s the .NET datatype that allows the retrieval of data by a unique key?
Ques 6. What’s class SortedList underneath?
Ques 7. Will finally block get executed if the exception had not occurred?
Ques 8. What’s the C# equivalent of C++ catch (…), which was a catch-all statement for any possible exception?
Ques 9. Can multiple catch blocks be executed?
Ques 10. Why is it a bad idea to throw your own exceptions?
Ques 11. What’s a delegate?
Ques 12. What’s a multicast delegate?
Ques 13. How’s the DLL Hell problem solved in .NET?
Ques 14. What are the ways to deploy an assembly?
Ques 15. What’s a satellite assembly?
Ques 16. What namespaces are necessary to create a localized application?
Ques 17. What’s the difference between // comments, /* */ comments and /// comments?
Ques 18. How do you generate documentation from the C# file commented properly with a command-line compiler?
Ques 19. What’s the difference between and XML documentation tag?
XML documentation tag?
Ques 20. Is XML case-sensitive?
Ques 21. What debugging tools come with the .NET SDK?
Ques 22. What does the This window show in the debugger?
Ques 23. What does assert() do?
Ques 24. What’s the difference between the Debug class and Trace class?
Ques 25. Why are there five tracing levels in System.Diagnostics.TraceSwitcher?
Ques 26. Where is the output of TextWriterTraceListener redirected?
Ques 27. How do you debug an ASP.NET Web application?
Ques 28. What are three test cases you should go through in unit testing?
Ques 29. Can you change the value of a variable while debugging a C# application?
Ques 30. Explain the three services model (three-tier application).
Ques 31. What are advantages and disadvantages of Microsoft-provided data provider classes in ADO.NET?
Ques 32. What’s the role of the DataReader class in ADO.NET connections?
Ques 33. What is the wildcard character in SQL? Let’s say you want to query database with LIKE for all employees whose name starts with La.
Ques 34. Explain ACID rule of thumb for transactions.
Ques 35. What connections does Microsoft SQL Server support?
Ques 36. Which one is trusted and which one is untrusted?
Ques 37. Why would you use untrusted verificaion?
Ques 38. What does the parameter Initial Catalog define inside Connection String?
Ques 39. What’s the data provider name to connect to Access database?
Ques 40. What does Dispose method do with the connection object?
Ques 41. What is a pre-requisite for connection pooling?